/* =============================================
   GOLDEN HOUR SALON — components.css
   Buttons, cards, menu items, music toggle, chatbot
============================================= */

/* ══════════════════════════════════════
   PAGE LOADER (loading curtain)
══════════════════════════════════════ */
.page-loader {
  position: fixed; inset: 0;
  z-index: 9999;
  background: var(--bg-dark);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
  will-change: opacity;
  animation: forceHideLoader 0s 6s forwards;
}
.page-loader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }

@keyframes forceHideLoader {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

.loader-shimmer-logo {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-shimmer-logo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(205,151,119,.18);
  border-top-color: var(--accent);
  animation: loaderSpin 1.8s linear infinite;
}
.loader-shimmer-logo img {
  height: 90px; width: auto;
  animation: loaderPulse 2.2s ease-in-out infinite;
}

@keyframes loaderSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes loaderPulse {
  0%, 100% { opacity: .55; transform: scale(.97); }
  50%      { opacity: 1;   transform: scale(1); }
}

.btn-primary {
  display: inline-block;
  background: var(--bg-dark);
  color: var(--b50);
  padding: 13px 32px;
  border: none;
  border-radius: var(--r-pill);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: background .25s ease, transform .2s ease;
}
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(205,151,119,.32); }

.btn-secondary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 13px 32px;
  border: none;
  border-radius: var(--r-pill);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: opacity .25s ease, transform .2s ease;
}
.btn-secondary:hover { opacity: .88; transform: translateY(-1px); }

.btn-secondary-light {
  display: inline-block;
  background: var(--b50);
  color: var(--text);
  padding: 12px 26px;
  border: 1px solid var(--b300);
  border-radius: var(--r-pill);
  font-size: .72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all .25s ease;
}
.btn-secondary-light:hover { border-color: var(--accent); color: var(--accent); }

.btn-outline {
  display: inline-block;
  border: 1.5px solid var(--tw3);
  color: var(--tw3);
  padding: 12px 28px;
  border-radius: var(--r-pill);
  font-size: .72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: transparent;
  position: relative; z-index: 10;
  transition: all .3s ease;
}
.btn-outline:hover { background: var(--tw6); color: var(--b50); border-color: var(--tw6); }

.btn-text {
  display: inline-block;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 10px;
  transition: color .2s;
}
.btn-text:hover { color: var(--accent); }

.review-card {
  background: var(--bg-card);
  padding: 42px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(78,52,46,.05);
  box-shadow: 0 14px 38px rgba(62,39,35,.08);
}
.stars {
  font-size: 1.15rem;
  color: var(--accent);
  letter-spacing: 4px;
  margin-bottom: 20px;
}
.review-text { font-family: var(--serif); font-size: 1.3rem; font-style: italic; font-weight: 300; line-height: 1.55; margin-bottom: 22px; color: var(--text); text-align: left; }
.reviewer-name { font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--b400); font-weight: 500; display: block; text-align: left; }

.menu-cat-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(78,52,46,.12);
  padding-bottom: 12px;
  margin-bottom: 28px;
  color: var(--text);
}
.category-notice { font-size: .82rem; font-style: italic; color: var(--b400); margin-bottom: 28px; line-height: 1.55; }

.menu-item {
  margin-bottom: 22px;
  padding-bottom: 18px;
  padding-left: 20px;
  border-bottom: 1px dashed rgba(78,52,46,.1);
  border-left: 3px solid var(--tw2);
}
.item-header { display: flex; justify-content: space-between; font-family: var(--serif); font-size: 1.25rem; font-weight: 400; }
.item-desc { font-size: .82rem; color: var(--b400); margin-top: 7px; font-weight: 300; line-height: 1.6; }

/* ══════════════════════════════════════
   TEAM CARDS
══════════════════════════════════════ */
.team-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(78,52,46,.05);
  box-shadow: 0 14px 38px rgba(62,39,35,.08);
}
.team-photo-frame  { height: 380px; overflow: hidden; position: relative; }
.team-inline-photo { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.team-photo-center { object-position: center center !important; }
.team-photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(78,52,46,.16);
  pointer-events: none;
}
.team-info         { padding: 32px; }
.team-info h5      { font-family: var(--serif); font-size: 1.55rem; font-weight: 400; margin-bottom: 5px; color: var(--text); }
.stylist-specialty { display: block; font-size: .7rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 18px; }
.team-info p       { font-size: .88rem; line-height: 1.65; color: var(--text); font-weight: 300; }

/* ══════════════════════════════════════
   SUITE CARDS
══════════════════════════════════════ */
.suite-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid rgba(78,52,46,.05);
  box-shadow: 0 14px 38px rgba(62,39,35,.08);
}
.suite-img-frame   { height: 205px; overflow: hidden; }
.suite-inline-img  { width: 100%; height: 100%; object-fit: cover; }
.suite-info        { padding: 28px; flex-grow: 1; display: flex; flex-direction: column; }
.suite-number      { font-size: .6rem; letter-spacing: 2.5px; color: var(--accent); font-weight: 600; margin-bottom: 7px; display: block; }
.suite-info h5     { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; margin-bottom: 10px; color: var(--text); }
.suite-info p      { font-size: .85rem; line-height: 1.6; color: var(--text); font-weight: 300; margin-bottom: 16px; }
.artist-link-placeholder { font-size: .72rem; font-style: italic; color: var(--b400); margin-top: auto; padding-top: 14px; border-top: 1px solid var(--b50); line-height: 1.4; }

.suite-available-box { background: linear-gradient(135deg, rgba(255,214,160,.1) 0%, transparent 42%), var(--bg-dark); color: var(--b50); border: 2px dashed var(--accent); }
.suite-available-box .suite-number { color: var(--accent); }
.suite-available-box .suite-info { text-align: center; }
.available-title { font-family: var(--serif); font-size: 1.75rem; font-weight: 300; color: var(--accent); margin-bottom: 14px; line-height: 1.25; }
.suite-available-box .available-desc { color: var(--b50); font-size: .88rem; line-height: 1.6; font-weight: 300; }
.contact-box-layer { margin-top: auto; padding-top: 22px; border-top: 1px solid rgba(205,151,119,.14); text-align: center; }
.contact-call-label  { display: block; font-size: .65rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.phone-number-string { font-family: var(--serif); font-size: 1.55rem; color: var(--b50); }

/* ══════════════════════════════════════
   BOOKING / POLICIES BLOCKS
══════════════════════════════════════ */
.booking-widget-placeholder { margin-top: 36px; background: var(--bg-card); padding: 48px; border-radius: var(--r-lg); }
.widget-text    { font-size: .82rem; color: var(--b400); margin-bottom: 22px; font-style: italic; }
.mock-portal-box { border: 1px dashed rgba(109,76,65,.22); padding: 38px; border-radius: var(--r-md); background: var(--b50); }

.policy-block-text {
  background: var(--bg-card);
  padding: 50px;
  border-radius: var(--r-lg);
  border-left: 4px solid var(--accent);
  box-shadow: 0 10px 30px rgba(62,39,35,.06);
}
.policy-block-text h5 { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; margin-bottom: 8px; margin-top: 28px; color: var(--text); }
.policy-block-text h5:first-child { margin-top: 0; }
.policy-block-text p  { font-size: .9rem; line-height: 1.72; font-weight: 300; color: var(--text); margin-bottom: 8px; }

/* ══════════════════════════════════════
   BOOKING POLICY MODAL
══════════════════════════════════════ */
.policy-modal-overlay {
  position: fixed; inset: 0;
  z-index: 2000;
  background: rgba(62,39,35,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn .35s ease;
}
.policy-modal-overlay.closing { animation: modalFadeOut .3s ease forwards; }
@keyframes modalFadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalFadeOut { from { opacity: 1; } to { opacity: 0; } }

.policy-modal {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  max-width: 480px;
  width: 100%;
  padding: 42px;
  box-shadow: 0 30px 70px rgba(62,39,35,.35), 0 0 40px rgba(205,151,119,.2);
  border: 1px solid rgba(205,151,119,.15);
  text-align: center;
  animation: modalPopIn .4s var(--ease);
}
@keyframes modalPopIn {
  from { transform: scale(.92) translateY(10px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

.policy-modal-title { font-family: var(--serif); font-size: 1.6rem; font-weight: 400; margin-bottom: 18px; color: var(--text); }
.policy-modal-body { text-align: left; max-height: 220px; overflow-y: auto; margin-bottom: 22px; padding-right: 6px; }
.policy-modal-body p { font-size: .85rem; line-height: 1.65; color: var(--text); font-weight: 300; margin-bottom: 12px; }

.policy-modal-checkbox {
  display: flex; align-items: flex-start; gap: 10px;
  text-align: left; font-size: .78rem; color: var(--b400);
  margin-bottom: 22px; cursor: pointer; line-height: 1.5;
}
.policy-modal-checkbox input {
  margin-top: 3px; accent-color: var(--accent);
  width: 16px; height: 16px; flex-shrink: 0; cursor: pointer;
}

.policy-modal-agree { width: 100%; opacity: .5; cursor: not-allowed; }
.policy-modal-agree:not(:disabled) { opacity: 1; cursor: pointer; }

.policy-modal-link { display: block; margin-top: 14px; font-size: .72rem; color: var(--accent); letter-spacing: 1px; }

/* ══════════════════════════════════════
   MUSIC BUTTON
══════════════════════════════════════ */
.music-toggle {
  position: fixed;
  bottom: 35px;
  left: 35px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(62,39,35,.26);
  transition: transform .3s ease, box-shadow .3s ease;
}
.music-toggle:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(62,39,35,.22);
}
.music-toggle::before {
  content: "";
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: url('../assets/music.png') center / cover no-repeat;
  animation: vinylSpin 10s linear infinite;
}
.music-toggle.paused::before {
  animation-play-state: paused;
  opacity: .65;
}
.music-text  { display: none; }
.music-icon  { display: none; }

@keyframes vinylSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ══════════════════════════════════════
   CHATBOT WIDGET
══════════════════════════════════════ */
.chatbot-widget { position: fixed; bottom: 35px; right: 35px; z-index: 999; }

.chat-toggle-btn {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: url('../assets/sun.png') center / cover no-repeat;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(102,55,27,.28);
  transition: transform .3s cubic-bezier(.175,.885,.32,1.275);
  animation: floatPulse 5s ease-in-out infinite, glowPulse 5s ease-in-out infinite;
}
.chat-toggle-btn:hover { transform: rotate(15deg) scale(1.07); }

.chat-accessible-text {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.chat-window {
  position: absolute; bottom: 74px; right: 0;
  width: 338px; height: 450px;
  background: var(--bg-card);
  border-radius: var(--r-lg);
  box-shadow: 0 18px 52px rgba(62,39,35,.15), 0 0 40px rgba(205,151,119,.12);
  display: none; flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(205,151,119,.14);
}
.chat-window.active { display: flex; }

.chat-header { background: var(--bg-dark); color: var(--b50); padding: 17px 22px; display: flex; justify-content: space-between; align-items: center; }
.chat-header h6 { font-family: var(--serif); font-size: 1.1rem; font-weight: 400; letter-spacing: 1px; }
.close-chat { cursor: pointer; font-size: 1.35rem; line-height: 1; opacity: .75; }
.close-chat:hover { opacity: 1; }

.chat-body { flex-grow: 1; padding: 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; background: #FAF9F6; }
.chat-msg  { max-width: 85%; padding: 11px 15px; font-size: .82rem; border-radius: var(--r-md); line-height: 1.45; font-weight: 300; }
.bot-msg   { background: var(--b50); color: var(--text); align-self: flex-start; border-top-left-radius: 2px; border: 1px solid rgba(78,52,46,.06); text-align: left; }
.user-msg  { background: var(--bg-dark); color: var(--b50); align-self: flex-end; border-top-right-radius: 2px; text-align: left; }

.suggested-prompts-tray { display: flex; flex-direction: column; gap: 7px; margin-top: 8px; }
.prompt-chip { background: #fff; border: 1px solid rgba(205,151,119,.3); color: var(--text); padding: 8px 14px; border-radius: var(--r-pill); font-size: .76rem; cursor: pointer; transition: all .2s; text-align: left; }
.prompt-chip:hover { background: var(--b50); border-color: var(--accent); }

.chat-footer { padding: 13px 18px; border-top: 1px solid var(--b50); display: flex; gap: 10px; background: #fff; }
.chat-footer input { flex-grow: 1; border: 1px solid rgba(78,52,46,.15); padding: 9px 15px; font-size: .8rem; outline: none; border-radius: var(--r-pill); font-family: var(--sans); }
.chat-footer button { background: var(--bg-dark); color: var(--b50); border: none; padding: 0 18px; font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; border-radius: var(--r-pill); font-weight: 500; }

.typing-indicator { display: flex; gap: 4px; padding: 14px 15px !important; }
.typing-indicator span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--b300);
  animation: typingBounce 1.2s infinite ease-in-out;
}
.typing-indicator span:nth-child(2) { animation-delay: .15s; }
.typing-indicator span:nth-child(3) { animation-delay: .3s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

@keyframes floatPulse {
  0%   { transform: rotate(0deg); }
  50%  { transform: rotate(4deg); }
  100% { transform: rotate(0deg); }
}
@keyframes glowPulse {
  0%   { filter: drop-shadow(0 0 5px rgba(205,151,119,.15)); }
  50%  { filter: drop-shadow(0 0 16px rgba(205,151,119,.38)); }
  100% { filter: drop-shadow(0 0 5px rgba(205,151,119,.15)); }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader,
  .loader-shimmer-logo::before,
  .loader-shimmer-logo img,
  .music-toggle::before,
  .chat-toggle-btn,
  .typing-indicator span {
    animation: none;
  }
}