/* ==========================================================================
   VICOTHURS - Foundation Stylesheet
   Custom CSS working alongside Tailwind CDN
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS (CSS Custom Properties)
   -------------------------------------------------------------------------- */

:root {
  /* Colors */
  --onyx:        #0a0a0a;
  --midnight:    #1e293b;
  --gold:        #d4a855;
  --gold-light:  #e8c468;
  --ivory:       #fafaf5;
  --cream:       #f5f5f0;
  --graphite:    #292524;
  --silver:      #a8a29e;
  --emerald:     #10b981;
  --white:       #ffffff;
  --red:         #ef4444;

  /* Derived / utility colors */
  --gold-10:     rgba(212, 168, 85, 0.10);
  --gold-20:     rgba(212, 168, 85, 0.20);
  --gold-30:     rgba(212, 168, 85, 0.30);
  --black-50:    rgba(0, 0, 0, 0.50);
  --black-80:    rgba(0, 0, 0, 0.80);
  --amber:       #f59e0b;
  --amber-light: #fbbf24;
  --gray-200:    #e5e7eb;
  --gray-400:    #9ca3af;
  --gray-500:    #6b7280;
  --gray-600:    #4b5563;
  --slate-50:    #f8fafc;

  /* Fonts */
  --font-display: 'Playfair Display', serif;
  --font-body:    'Inter', sans-serif;

  /* Spacing */
  --sidebar-width: 16rem; /* 256px / w-64 */

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   300ms ease;
  --transition-slow:   500ms ease;

  /* Shadows */
  --shadow-sm:   0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md:   0 4px 6px -1px rgba(0, 0, 0, 0.10), 0 2px 4px -2px rgba(0, 0, 0, 0.10);
  --shadow-lg:   0 10px 15px -3px rgba(0, 0, 0, 0.10), 0 4px 6px -4px rgba(0, 0, 0, 0.10);
  --shadow-xl:   0 20px 25px -5px rgba(0, 0, 0, 0.10), 0 8px 10px -6px rgba(0, 0, 0, 0.10);
  --shadow-gold: 0 0 15px var(--gold-20), 0 0 3px var(--gold-20);

  /* Radii */
  --radius-sm:   0.375rem;
  --radius-md:   0.5rem;
  --radius-lg:   0.75rem;
  --radius-xl:   1rem;
  --radius-full: 9999px;

  /* Z-index scale */
  --z-dropdown:  30;
  --z-sticky:    40;
  --z-nav:       50;
  --z-lightbox:  60;
  --z-toast:     70;
}


/* --------------------------------------------------------------------------
   2. BASE RESETS
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--graphite);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}


/* --------------------------------------------------------------------------
   3. TYPOGRAPHY - Playfair Display overrides
   -------------------------------------------------------------------------- */

h1, h2, h3,
.font-display {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--onyx);
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem;   font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.125rem; font-weight: 500; }
h6 { font-size: 1rem;   font-weight: 500; }

@media (min-width: 768px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 1.75rem; }
}

.text-gold { color: var(--gold); }
.text-ivory { color: var(--ivory); }
.text-cream { color: var(--cream); }
.text-silver { color: var(--silver); }


/* --------------------------------------------------------------------------
   4. NAVIGATION
   -------------------------------------------------------------------------- */

/* Shared nav base */
.nav-transparent,
.nav-solid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-nav);
  transition: background-color var(--transition-base),
              backdrop-filter var(--transition-base),
              box-shadow var(--transition-base);
}

/* Transparent (default on hero pages) */
.nav-transparent {
  background-color: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

/* Solid (applied via JS on scroll, or default on non-hero pages) */
.nav-solid {
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Nav inner container */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

/* Nav links */
.nav-link {
  position: relative;
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--gold);
}

/* Active nav item: gold text + underline */
.nav-link.active {
  color: var(--gold);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--gold);
  border-radius: var(--radius-full);
}

/* Desktop nav list */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Mobile hamburger toggle */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  padding: 0.25rem;
  z-index: calc(var(--z-nav) + 10);
}

.nav-mobile-toggle span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background-color: var(--white);
  border-radius: var(--radius-full);
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

/* Hamburger animation when open */
.nav-mobile-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.nav-mobile-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile slide-in menu */
.nav-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  height: 100dvh;
  background-color: var(--onyx);
  padding: 5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateX(100%);
  transition: transform var(--transition-base);
  z-index: var(--z-nav);
  overflow-y: auto;
}

.nav-mobile-menu.open {
  transform: translateX(0);
}

/* Backdrop overlay behind mobile menu */
.nav-mobile-backdrop {
  position: fixed;
  inset: 0;
  background-color: var(--black-50);
  z-index: calc(var(--z-nav) - 1);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.nav-mobile-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.nav-mobile-menu .nav-link {
  font-size: 1.125rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 767px) {
  .nav-menu {
    display: none;
  }

  .nav-mobile-toggle {
    display: flex;
  }
}


/* --------------------------------------------------------------------------
   5. HERO OVERLAY
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--black-50);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 2rem 1.5rem;
}

.hero-content h1 {
  color: var(--white);
}

.hero img,
.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Shorter hero variant for interior pages */
.hero-short {
  min-height: 50vh;
}

.hero-medium {
  min-height: 70vh;
}


/* --------------------------------------------------------------------------
   6. BUTTONS - Gold Variants
   -------------------------------------------------------------------------- */

/* Shared button base */
.btn-gold,
.btn-gold-outline,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  line-height: 1.25;
  white-space: nowrap;
}

/* Solid gold */
.btn-gold {
  background-color: var(--gold);
  color: var(--onyx);
  border-color: var(--gold);
}

.btn-gold:hover {
  background-color: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-gold:active {
  background-color: #c89b4a;
  border-color: #c89b4a;
}

.btn-gold:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Gold outline */
.btn-gold-outline {
  background-color: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn-gold-outline:hover {
  background-color: var(--gold);
  color: var(--onyx);
}

.btn-gold-outline:active {
  background-color: #c89b4a;
  border-color: #c89b4a;
  color: var(--onyx);
}

.btn-gold-outline:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Ghost */
.btn-ghost {
  background-color: transparent;
  color: var(--gold);
  border-color: transparent;
}

.btn-ghost:hover {
  background-color: var(--gold-10);
}

.btn-ghost:active {
  background-color: var(--gold-20);
}

.btn-ghost:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Button sizes */
.btn-sm {
  font-size: 0.8125rem;
  padding: 0.5rem 1.25rem;
}

.btn-lg {
  font-size: 1rem;
  padding: 1rem 2.25rem;
}

/* Disabled state */
.btn-gold:disabled,
.btn-gold-outline:disabled,
.btn-ghost:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}


/* --------------------------------------------------------------------------
   7. CARDS
   -------------------------------------------------------------------------- */

.card {
  background-color: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
  border: 1px solid transparent;
}

.card:hover,
.card-hover:hover {
  box-shadow: var(--shadow-gold), var(--shadow-lg);
  border-color: var(--gold-20);
}

.card-dark {
  background-color: var(--midnight);
  color: var(--cream);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.card-dark:hover {
  box-shadow: var(--shadow-gold), var(--shadow-lg);
  border-color: var(--gold-20);
}

.card-dark h1,
.card-dark h2,
.card-dark h3 {
  color: var(--white);
}

.card-body {
  padding: 1.5rem;
}

.card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}


/* --------------------------------------------------------------------------
   8. PRICE BADGE
   -------------------------------------------------------------------------- */

.badge-price {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background-color: var(--gold);
  color: var(--onyx);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
  white-space: nowrap;
}


/* --------------------------------------------------------------------------
   9. STATUS BADGES
   -------------------------------------------------------------------------- */

.badge-success,
.badge-warning,
.badge-danger,
.badge-neutral {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge-success {
  background-color: rgba(16, 185, 129, 0.12);
  color: var(--emerald);
}

.badge-warning {
  background-color: rgba(245, 158, 11, 0.12);
  color: var(--amber);
}

.badge-danger {
  background-color: rgba(239, 68, 68, 0.12);
  color: var(--red);
}

.badge-neutral {
  background-color: rgba(107, 114, 128, 0.12);
  color: var(--gray-500);
}

/* Dot indicator inside badges */
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.badge-success .badge-dot { background-color: var(--emerald); }
.badge-warning .badge-dot { background-color: var(--amber); }
.badge-danger  .badge-dot { background-color: var(--red); }
.badge-neutral .badge-dot { background-color: var(--gray-500); }


/* --------------------------------------------------------------------------
   10. FOOTER
   -------------------------------------------------------------------------- */

.footer-dark {
  background-color: var(--onyx);
  color: var(--cream);
  padding: 4rem 1.5rem 2rem;
}

.footer-dark a {
  color: var(--silver);
  transition: color var(--transition-fast);
}

.footer-dark a:hover {
  color: var(--gold);
}

.footer-dark h3,
.footer-dark h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 2rem 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--silver);
}


/* --------------------------------------------------------------------------
   11. ADMIN SIDEBAR
   -------------------------------------------------------------------------- */

.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  height: 100dvh;
  background-color: var(--midnight);
  color: var(--cream);
  overflow-y: auto;
  z-index: var(--z-sticky);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base);
}

.admin-sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-sidebar-nav {
  flex: 1;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--silver);
  border-left: 3px solid transparent;
  transition: all var(--transition-fast);
}

.admin-sidebar-link:hover {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.04);
}

.admin-sidebar-link.active {
  color: var(--gold);
  border-left-color: var(--gold);
  background-color: rgba(212, 168, 85, 0.06);
}

.admin-sidebar-link svg,
.admin-sidebar-link i {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  opacity: 0.7;
}

.admin-sidebar-link.active svg,
.admin-sidebar-link.active i {
  opacity: 1;
}

.admin-sidebar-section {
  padding: 1rem 1.5rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.admin-sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
}


/* --------------------------------------------------------------------------
   12. ADMIN CONTENT AREA
   -------------------------------------------------------------------------- */

.admin-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  min-height: 100dvh;
  background-color: #f5f5f5;
  padding: 2rem;
  transition: margin-left var(--transition-base);
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--onyx);
}


/* --------------------------------------------------------------------------
   13. TABLE STYLES
   -------------------------------------------------------------------------- */

.table-admin {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.table-admin thead th {
  background-color: var(--midnight);
  color: var(--white);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.875rem 1rem;
  text-align: left;
  white-space: nowrap;
  border: none;
}

.table-admin thead th:first-child {
  border-radius: var(--radius-md) 0 0 0;
}

.table-admin thead th:last-child {
  border-radius: 0 var(--radius-md) 0 0;
}

.table-admin tbody td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: middle;
  color: var(--graphite);
}

.table-admin tbody tr:nth-child(even) {
  background-color: var(--slate-50);
}

.table-admin tbody tr:hover {
  background-color: rgba(212, 168, 85, 0.04);
}

.table-admin tbody tr:last-child td:first-child {
  border-radius: 0 0 0 var(--radius-md);
}

.table-admin tbody tr:last-child td:last-child {
  border-radius: 0 0 var(--radius-md) 0;
}

/* Table wrapper for horizontal scroll on mobile */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
}


/* --------------------------------------------------------------------------
   14. KANBAN BOARD
   -------------------------------------------------------------------------- */

.kanban-board {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.kanban-column {
  flex-shrink: 0;
  width: 18rem; /* w-72 */
  background-color: var(--slate-50);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: calc(100vh - 200px);
  scroll-snap-align: start;
}

.kanban-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--graphite);
}

.kanban-column-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
  background-color: var(--gray-200);
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kanban-cards {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  flex: 1;
  overflow-y: auto;
}

.kanban-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 0.875rem;
  cursor: grab;
  border-left: 3px solid var(--gray-400);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.kanban-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.kanban-card:active {
  cursor: grabbing;
}

/* Kanban card colored left borders */
.kanban-card.priority-high   { border-left-color: var(--red); }
.kanban-card.priority-medium { border-left-color: var(--amber); }
.kanban-card.priority-low    { border-left-color: var(--emerald); }
.kanban-card.priority-gold   { border-left-color: var(--gold); }

.kanban-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--graphite);
  margin-bottom: 0.375rem;
}

.kanban-card-meta {
  font-size: 0.75rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Drag placeholder */
.kanban-card.dragging {
  opacity: 0.5;
  transform: rotate(2deg);
}


/* --------------------------------------------------------------------------
   15. FORM INPUTS
   -------------------------------------------------------------------------- */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--graphite);
}

.form-label-required::after {
  content: ' *';
  color: var(--red);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--graphite);
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 0.625rem 0.875rem;
  transition: border-color var(--transition-fast),
              box-shadow var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-20);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-400);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8.825a.5.5 0 0 1-.354-.146l-4-4a.5.5 0 1 1 .708-.708L6 7.617l3.646-3.646a.5.5 0 1 1 .708.708l-4 4A.5.5 0 0 1 6 8.825z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 0.75rem;
  padding-right: 2.25rem;
}

/* Error state */
.form-input.error,
.form-textarea.error,
.form-select.error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-error {
  font-size: 0.75rem;
  color: var(--red);
}

/* Checkbox and radio custom styles */
.form-checkbox,
.form-radio {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--gold);
  cursor: pointer;
}

/* Input group with icon */
.input-group {
  position: relative;
}

.input-group .form-input {
  padding-left: 2.5rem;
}

.input-group-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none;
}


/* --------------------------------------------------------------------------
   16. STEPPER
   -------------------------------------------------------------------------- */

.stepper {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 1rem 0;
}

.stepper-step {
  display: flex;
  align-items: center;
  flex: 1;
}

.stepper-step:last-child {
  flex: 0 0 auto;
}

.stepper-circle {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all var(--transition-base);
  position: relative;
  z-index: 1;
}

/* Upcoming (default) */
.stepper-circle {
  background-color: var(--gray-200);
  color: var(--gray-500);
  border: 2px solid var(--gray-200);
}

/* Active */
.stepper-step.active .stepper-circle {
  background-color: var(--white);
  color: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-20);
}

/* Completed */
.stepper-step.completed .stepper-circle {
  background-color: var(--gold);
  color: var(--onyx);
  border-color: var(--gold);
}

/* Connecting line */
.stepper-line {
  flex: 1;
  height: 2px;
  background-color: var(--gray-200);
  transition: background-color var(--transition-base);
  margin: 0 0.5rem;
}

.stepper-step.completed + .stepper-step .stepper-line,
.stepper-step.completed .stepper-line {
  background-color: var(--gold);
}

/* Labels below circles */
.stepper-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-500);
  text-align: center;
  margin-top: 0.5rem;
  white-space: nowrap;
}

.stepper-step.active .stepper-label {
  color: var(--gold);
  font-weight: 600;
}

.stepper-step.completed .stepper-label {
  color: var(--graphite);
}


/* --------------------------------------------------------------------------
   17. LIGHTBOX
   -------------------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  background-color: var(--black-80);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--black-50);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2;
  transition: background-color var(--transition-fast);
}

.lightbox-close:hover {
  background-color: var(--black-80);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  background-color: var(--black-50);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.lightbox-nav:hover {
  background-color: var(--black-80);
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }


/* --------------------------------------------------------------------------
   18. ANIMATIONS
   -------------------------------------------------------------------------- */

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

@keyframes slideInLeft {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Applied classes - for intersection observer triggers */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

.slide-up {
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 0.5s ease forwards;
}

.scale-in {
  opacity: 0;
  animation: scaleIn 0.4s ease forwards;
}

/* Stagger delays for children */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* Wait for intersection observer to add .animate */
.observe {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.observe.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--gray-200);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.spinner-lg {
  width: 2.5rem;
  height: 2.5rem;
  border-width: 3px;
}


/* --------------------------------------------------------------------------
   19. STARS (Review ratings)
   -------------------------------------------------------------------------- */

.stars-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  color: var(--gold);
  font-size: 1rem;
  line-height: 1;
}

.stars-gold svg,
.stars-gold i {
  width: 1em;
  height: 1em;
}

.stars-gold .star-empty {
  color: var(--gray-200);
}

.stars-gold .star-half {
  position: relative;
}

/* Rating summary */
.rating-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--graphite);
  margin-right: 0.5rem;
}

.rating-count {
  font-size: 0.875rem;
  color: var(--gray-500);
}


/* --------------------------------------------------------------------------
   20. SCROLLBAR
   -------------------------------------------------------------------------- */

/* Thin scrollbar for webkit browsers */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--graphite);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-500);
  border-radius: var(--radius-full);
  border: 2px solid var(--graphite);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--silver);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--gray-500) var(--graphite);
}

/* Override scrollbar for light backgrounds (admin content area) */
.admin-content::-webkit-scrollbar-track,
.table-wrapper::-webkit-scrollbar-track,
.kanban-board::-webkit-scrollbar-track {
  background: var(--gray-200);
}

.admin-content::-webkit-scrollbar-thumb,
.table-wrapper::-webkit-scrollbar-thumb,
.kanban-board::-webkit-scrollbar-thumb {
  background: var(--silver);
  border-color: var(--gray-200);
}

.admin-content,
.table-wrapper,
.kanban-board {
  scrollbar-color: var(--silver) var(--gray-200);
}


/* --------------------------------------------------------------------------
   21. CALENDAR GRID
   -------------------------------------------------------------------------- */

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background-color: var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.calendar-header-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--graphite);
}

.calendar-day-label {
  background-color: var(--midnight);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.625rem 0.5rem;
  text-align: center;
}

.calendar-day {
  background-color: var(--white);
  min-height: 5rem;
  padding: 0.5rem;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: background-color var(--transition-fast);
  position: relative;
}

.calendar-day:hover {
  background-color: var(--slate-50);
}

.calendar-day-number {
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--graphite);
  margin-bottom: 0.25rem;
}

.calendar-day.today .calendar-day-number {
  background-color: var(--gold);
  color: var(--onyx);
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-day.outside-month {
  background-color: var(--slate-50);
}

.calendar-day.outside-month .calendar-day-number {
  color: var(--gray-400);
}

.calendar-event {
  font-size: 0.6875rem;
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.calendar-event.event-gold    { background-color: var(--gold-20); color: #a07d2f; }
.calendar-event.event-emerald { background-color: rgba(16, 185, 129, 0.15); color: #059669; }
.calendar-event.event-red     { background-color: rgba(239, 68, 68, 0.15); color: #dc2626; }
.calendar-event.event-blue    { background-color: rgba(59, 130, 246, 0.15); color: #2563eb; }


/* --------------------------------------------------------------------------
   22. RESPONSIVE SIDEBAR (< 1024px becomes a slide-in drawer)
   -------------------------------------------------------------------------- */

@media (max-width: 1023px) {
  .admin-sidebar {
    transform: translateX(-100%);
    z-index: var(--z-nav);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-content {
    margin-left: 0;
  }

  /* Sidebar backdrop */
  .admin-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background-color: var(--black-50);
    z-index: calc(var(--z-nav) - 1);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
  }

  .admin-sidebar-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }

  /* Sidebar toggle for mobile */
  .admin-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background-color: var(--white);
    cursor: pointer;
    color: var(--graphite);
  }
}

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

  .admin-sidebar-backdrop {
    display: none;
  }
}


/* --------------------------------------------------------------------------
   23. UTILITY CLASSES (supplements to Tailwind)
   -------------------------------------------------------------------------- */

/* Container */
.container-custom {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section spacing */
.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

/* Dividers */
.divider-gold {
  width: 3rem;
  height: 3px;
  background-color: var(--gold);
  border: none;
  border-radius: var(--radius-full);
}

.divider-gold-center {
  width: 3rem;
  height: 3px;
  background-color: var(--gold);
  border: none;
  border-radius: var(--radius-full);
  margin-left: auto;
  margin-right: auto;
}

/* Gradient overlays */
.gradient-bottom {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
}

.gradient-top {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
}

/* Text truncation */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Aspect ratios */
.aspect-video { aspect-ratio: 16 / 9; }
.aspect-photo { aspect-ratio: 4 / 3; }
.aspect-square { aspect-ratio: 1 / 1; }

/* Backdrop blur cards */
.glass {
  background-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, #e5e7eb 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: pulse 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

/* Modal base */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  background-color: var(--black-50);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

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

.modal {
  background-color: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 32rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--gray-200);
}

/* Toast notifications */
.toast {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: var(--z-toast);
  min-width: 20rem;
  max-width: 28rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  animation: slideInRight 0.3s ease;
}

.toast-success {
  background-color: var(--white);
  border-left: 4px solid var(--emerald);
}

.toast-warning {
  background-color: var(--white);
  border-left: 4px solid var(--amber);
}

.toast-error {
  background-color: var(--white);
  border-left: 4px solid var(--red);
}

/* Stat cards for admin dashboard */
.stat-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.stat-card-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--onyx);
  line-height: 1.2;
}

.stat-card-label {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

.stat-card-change {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.stat-card-change.up   { color: var(--emerald); }
.stat-card-change.down { color: var(--red); }


/* --------------------------------------------------------------------------
   24. PRINT STYLES
   -------------------------------------------------------------------------- */

@media print {
  .admin-sidebar,
  .nav-transparent,
  .nav-solid,
  .nav-mobile-toggle,
  .nav-mobile-menu,
  .lightbox {
    display: none !important;
  }

  .admin-content {
    margin-left: 0 !important;
  }

  body {
    color: #000;
    background: #fff;
  }
}


/* --------------------------------------------------------------------------
   25. SCROLL REVEAL ANIMATIONS
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }


/* --------------------------------------------------------------------------
   26. WHATSAPP FLOATING BUTTON
   -------------------------------------------------------------------------- */

.whatsapp-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-fab svg {
  width: 1.75rem;
  height: 1.75rem;
}

.whatsapp-fab .fab-tooltip {
  position: absolute;
  right: calc(100% + 0.75rem);
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  color: var(--graphite);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.whatsapp-fab:hover .fab-tooltip {
  opacity: 1;
}


/* --------------------------------------------------------------------------
   27. BACK TO TOP BUTTON
   -------------------------------------------------------------------------- */

.back-to-top {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  z-index: 998;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--onyx);
  color: var(--gold);
  border: 1px solid var(--gold-30);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--gold);
  color: var(--onyx);
}

.back-to-top svg {
  width: 1.25rem;
  height: 1.25rem;
}


/* --------------------------------------------------------------------------
   28. PRELOADER
   -------------------------------------------------------------------------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--onyx);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.preloader-bar {
  width: 120px;
  height: 2px;
  background: var(--gold-20);
  border-radius: 2px;
  overflow: hidden;
}

.preloader-bar::after {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  animation: preloaderSlide 1s ease-in-out infinite;
}

@keyframes preloaderSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}


/* --------------------------------------------------------------------------
   29. UNIFIED CARD HOVER
   -------------------------------------------------------------------------- */

.card-hover {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.35s ease;
  border: 1px solid transparent;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(212, 168, 85, 0.15),
              0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: var(--gold-30);
}


/* --------------------------------------------------------------------------
   30. REDUCED MOTION
   -------------------------------------------------------------------------- */

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

  .fade-in,
  .slide-up,
  .scale-in,
  .observe,
  .reveal {
    opacity: 1;
    transform: none;
  }
}
