/* ==========================================================================
   AURELIA AESTHETIC MEDICINE — COMPONENTS STYLESHEET
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ANNOUNCEMENT BAR
   -------------------------------------------------------------------------- */
.announcement-bar {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 0.625rem var(--gutter);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all var(--duration-fast) ease;
  z-index: var(--z-sticky);
}

.announcement-bar a {
  color: var(--accent-bronze-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 0.5rem;
  transition: color var(--duration-fast) ease;
}

.announcement-bar a:hover {
  color: #FFF;
}

.announcement-close {
  position: absolute;
  right: var(--gutter);
  background: none;
  border: none;
  color: var(--text-muted-dark);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--duration-fast) ease;
}

.announcement-close:hover {
  color: var(--text-on-dark);
}

.announcement-bar.is-hidden {
  display: none;
}

/* --------------------------------------------------------------------------
   2. SITE HEADER & STICKY NAVBAR
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-sticky);
  background: transparent;
  transition: background-color var(--duration-normal) var(--ease-out),
              backdrop-filter var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out),
              padding var(--duration-normal) var(--ease-out);
  padding: 1.25rem 0;
}

.site-header.is-scrolled {
  background-color: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px rgba(41, 39, 36, 0.04);
  padding: 0.875rem 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo Treatment (Editorial Wordmark) */
.brand-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-primary);
  line-height: 1;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-sub {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--accent-bronze);
  margin-top: 3px;
}

/* Nav Menu */
.nav-menu {
  display: none;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
  }
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  padding: 0.5rem 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--text-primary);
  transition: width var(--duration-fast) var(--ease-out);
}

.nav-link:hover::after,
.nav-item.is-active .nav-link::after {
  width: 100%;
}

/* Header Action Group */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-trigger,
.saved-trigger {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  transition: color var(--duration-fast) ease;
  position: relative;
}

.search-trigger:hover,
.saved-trigger:hover {
  color: var(--accent-bronze);
}

.saved-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-bronze);
  color: #FFF;
  font-size: 0.625rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
}

.saved-badge.has-items {
  display: flex;
}

/* Mobile Hamburger */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.25rem;
  height: 2.25rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  z-index: calc(var(--z-drawer) + 1);
}

@media (min-width: 1024px) {
  .mobile-toggle {
    display: none;
  }
}

.toggle-line {
  width: 100%;
  height: 1.5px;
  background-color: var(--text-primary);
  transition: transform var(--duration-fast) ease, opacity var(--duration-fast) ease;
  transform-origin: center;
}

.mobile-toggle.is-open .toggle-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.mobile-toggle.is-open .toggle-line:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.is-open .toggle-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   3. MEGA MENU (Treatments Dropdown)
   -------------------------------------------------------------------------- */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  width: 920px;
  max-width: 95vw;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--duration-fast) ease,
              transform var(--duration-fast) var(--ease-out),
              visibility var(--duration-fast);
  z-index: var(--z-elevated);
}

.has-mega-menu:hover .mega-menu,
.has-mega-menu:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.5rem;
}

.mega-category-title {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--accent-bronze);
  margin-bottom: 0.875rem;
}

.mega-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.mega-links a {
  font-size: 0.875rem;
  color: var(--text-primary);
  transition: color var(--duration-fast) ease, transform var(--duration-fast) ease;
  display: inline-block;
}

.mega-links a:hover {
  color: var(--accent-bronze);
  transform: translateX(3px);
}

.mega-featured {
  background-color: var(--bg-primary);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border-subtle);
}

.mega-featured-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  margin-bottom: 1rem;
}

.mega-featured-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.mega-featured-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   4. MOBILE NAVIGATION DRAWER
   -------------------------------------------------------------------------- */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  background-color: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  padding: 6rem 2rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--duration-normal) var(--ease-editorial);
  z-index: var(--z-drawer);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(41, 39, 36, 0.4);
  backdrop-filter: blur(4px);
  z-index: calc(var(--z-drawer) - 1);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-fast) ease;
}

.drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-links a {
  font-family: var(--font-serif);
  font-size: 1.625rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-footer-info {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   5. SEARCH COMMAND PALETTE (Ctrl / Cmd + K)
   -------------------------------------------------------------------------- */
.search-modal {
  position: fixed;
  inset: 0;
  background: rgba(41, 39, 36, 0.5);
  backdrop-filter: blur(8px);
  z-index: var(--z-modal);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh var(--gutter) 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-fast) ease;
}

.search-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.search-panel {
  width: 100%;
  max-width: 640px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(-16px);
  transition: transform var(--duration-fast) var(--ease-out);
}

.search-modal.is-open .search-panel {
  transform: translateY(0);
}

.search-input-wrap {
  display: flex;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  gap: 0.875rem;
}

.search-input {
  width: 100%;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  background: transparent;
  color: var(--text-primary);
}

.search-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 1rem 0;
  list-style: none;
}

.search-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.5rem;
  color: var(--text-primary);
  font-size: 0.9375rem;
  transition: background-color var(--duration-fast) ease;
}

.search-item a:hover,
.search-item.is-selected a {
  background-color: var(--bg-secondary);
}

.search-item-cat {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.search-footer {
  padding: 0.75rem 1.5rem;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* --------------------------------------------------------------------------
   6. SAVED TREATMENTS DRAWER
   -------------------------------------------------------------------------- */
.saved-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background-color: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  transition: transform var(--duration-normal) var(--ease-editorial);
  z-index: var(--z-drawer);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);
}

.saved-drawer.is-open {
  transform: translateX(0);
}

.saved-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.saved-header h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
}

.saved-list {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.saved-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.saved-item-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.saved-item-cat {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.saved-remove {
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 0.25rem;
}

.saved-remove:hover {
  color: #C0392B;
}

.saved-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   7. FLOATING CONCIERGE WIDGET
   -------------------------------------------------------------------------- */
.concierge-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: var(--z-concierge);
}

.concierge-trigger {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.concierge-trigger:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-bronze);
}

.concierge-panel {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: 320px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--duration-fast) var(--ease-out);
}

.concierge-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.concierge-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.concierge-subtitle {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.concierge-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.concierge-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: background var(--duration-fast) ease;
}

.concierge-btn:hover {
  background: var(--bg-secondary);
  color: var(--accent-bronze-dark);
}

/* --------------------------------------------------------------------------
   8. TOAST NOTIFICATIONS
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  pointer-events: none;
}

.toast {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  pointer-events: auto;
  animation: toastIn 0.35s var(--ease-out) forwards;
}

.toast.is-leaving {
  animation: toastOut 0.35s ease forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(12px); }
}

/* --------------------------------------------------------------------------
   9. MOBILE STICKY BOOKING BAR (appears on mobile after hero scroll)
   -------------------------------------------------------------------------- */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(247, 244, 239, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  padding: 0.75rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: var(--z-sticky);
  transform: translateY(100%);
  transition: transform var(--duration-normal) var(--ease-out);
}

.mobile-sticky-bar.is-visible {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .mobile-sticky-bar {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   10. LUXURY FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
  padding: clamp(4rem, 8vw, 7rem) 0 2.5rem;
  border-top: 1px solid var(--border-dark);
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--border-dark);
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  }
}

.footer-brand .brand-name {
  color: var(--text-on-dark);
}

.footer-desc {
  color: var(--text-muted-dark);
  font-size: 0.9375rem;
  line-height: var(--leading-relaxed);
  margin-top: 1.25rem;
  margin-bottom: 1.75rem;
  max-width: 320px;
}

.footer-col-title {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--accent-bronze-light);
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted-dark);
  transition: color var(--duration-fast) ease;
}

.footer-links a:hover {
  color: var(--text-on-dark);
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.newsletter-input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-on-dark);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-xs);
  font-size: 0.875rem;
  width: 100%;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--accent-bronze-light);
}

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-muted-dark);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.medical-disclaimer-note {
  font-size: 0.6875rem;
  color: rgba(247, 244, 239, 0.5);
  line-height: 1.5;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
