/* ===========================
   H1 Studios Design System
   CSS Custom Properties (HSL)
   Source: src/index.css
   =========================== */

#page .site-content {
    background: #FAF8F5;
}

:root {
  --background: 0 0% 100%;
  --foreground: 220 30% 10%;

  --card: 0 0% 100%;
  --card-foreground: 220 30% 10%;

  --popover: 0 0% 100%;
  --popover-foreground: 220 30% 10%;

  /* Deep Navy Primary */
  --primary: 220 60% 20%;
  --primary-foreground: 0 0% 100%;

  /* Light gray secondary */
  --secondary: 220 15% 96%;
  --secondary-foreground: 220 30% 10%;

  /* Muted tones */
  --muted: 220 15% 96%;
  --muted-foreground: 220 10% 45%;

  /* Accent - Warm gold for CTAs */
  --accent: 38 90% 55%;
  --accent-foreground: 220 30% 10%;

  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;

  --border: 220 15% 90%;
  --input: 220 15% 90%;
  --ring: 220 60% 20%;

  --radius: 0.5rem;

  /* Custom tokens for H1 Studios */
  --navy: 220 60% 20%;
  --navy-light: 220 40% 35%;
  --navy-dark: 220 70% 12%;
  --gold: 38 90% 55%;
  --gold-light: 38 85% 70%;
  --cream: 40 30% 97%;
  --slate: 220 10% 45%;
}

/* ===========================
   Base Styles
   =========================== */

*,
*::before,
*::after {
  border-color: hsl(var(--border));
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.025em;
  color: hsl(var(--foreground));
}
.h1-booking-system h3.mb-0,
.h1-booking-system p.mb-0 {
    margin-bottom: 0 !important;
}
.h1-booking-system .mb-2 {
    margin-bottom: 0.5rem !important;
}
.h1-booking-system .mb-3 {
    margin-bottom: 0.75rem !important;
}
/* ===========================
   Custom Gradient Utilities
   =========================== */

.gradient-navy {
  background: linear-gradient(135deg, hsl(var(--navy)) 0%, hsl(var(--navy-dark)) 100%);
}

.gradient-gold {
  background: linear-gradient(135deg, hsl(var(--gold)) 0%, hsl(var(--gold-light)) 100%);
}

/* ===========================
   Line Clamp Utility
   =========================== */

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===========================
   Switch Component
   =========================== */

.switch-container {
  display: inline-flex;
  position: relative;
}

.switch-track {
  background-color: hsl(var(--input));
  transition: background-color 0.2s ease;
}

.switch-input:checked + .switch-track {
  background-color: hsl(var(--primary));
}

.switch-thumb {
  transition: transform 0.2s ease;
  transform: translateX(0);
}

.switch-input:checked + .switch-track .switch-thumb {
  transform: translateX(1.25rem);
}

/* ===========================
   Custom Select Styling
   =========================== */

.custom-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

/* ===========================
   Calendar Component
   =========================== */
#calendar-popover th,
#calendar-popover #cal-body td{
    border:0;
    padding: 0;
}

.calendar-container {
  user-select: none;
}

.calendar-grid {
  border-collapse: separate;
  border-spacing: 0;
}

.calendar-head-cell {
  color: hsl(var(--muted-foreground));
  font-weight: 400;
  font-size: 0.8rem;
  width: 2.25rem;
  text-align: center;
  padding-bottom: 0.25rem;
}

.calendar-day {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
  border: none;
  background: transparent;
  color: hsl(var(--foreground));
  padding: 0;
}

.calendar-day:hover:not(.disabled):not(.outside) {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.calendar-day.selected {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.calendar-day.today:not(.selected) {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.calendar-day.disabled {
  color: hsl(var(--muted-foreground));
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.calendar-day.outside {
  color: hsl(var(--muted-foreground));
  opacity: 0.5;
}

.calendar-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.375rem;
  border: 1px solid hsl(var(--input));
  background: transparent;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.15s;
  padding: 0;
}

.calendar-nav-btn:hover {
  opacity: 1;
}

/* ===========================
   Animations
   =========================== */

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 0.5s ease-out;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* ===========================
   Step Content Transitions
   =========================== */

.step-content {
  animation: fade-in 0.3s ease-out;
}

/* ===========================
   Focus Ring Styles
   =========================== */

.focus-ring:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring));
}
