/* ============================================
   VP Support Services — site.css
   ============================================ */

/* CSS Variables */
:root {
  --primary: #0A5C52;
  --primary-foreground: #ffffff;
  --secondary: #C9A84C;
  --secondary-foreground: #1a1a1a;
  --background: #FAFAF8;
  --foreground: #1a1a1a;
  --muted: #f0efea;
  --muted-foreground: #6b7280;
  --card: #ffffff;
  --border: #e5e7eb;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   Keyframe Animations
   ============================================ */

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes spin-slow-reverse {
  from { transform: rotate(360deg); }
  to   { transform: rotate(0deg); }
}

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

@keyframes pulse-ring {
  0%   { transform: scale(0.85); opacity: 0.7; }
  70%  { transform: scale(1.3);  opacity: 0;   }
  100% { transform: scale(0.85); opacity: 0;   }
}

@keyframes slide-right {
  from { width: 0;    }
  to   { width: 100%; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes bounce-x {
  0%, 100% { transform: translateX(0);  }
  50%       { transform: translateX(5px); }
}

/* ============================================
   Animation Utility Classes
   ============================================ */

.animate-float             { animation: float 6s ease-in-out infinite; }
.animate-spin-slow         { animation: spin-slow 16s linear infinite; }
.animate-spin-slow-reverse { animation: spin-slow-reverse 22s linear infinite; }
.animate-shimmer           { animation: shimmer 0.7s ease-in-out; }
.animate-pulse-ring        { animation: pulse-ring 2.5s ease-out infinite; }
.animate-slide-right       { animation: slide-right 1.5s ease forwards; }
.animate-fade-in-up        { animation: fade-in-up 0.6s ease both; }
.animate-bounce-x          { animation: bounce-x 1s ease-in-out infinite; }

/* ============================================
   Typography
   ============================================ */

.font-serif { font-family: 'Playfair Display', Georgia, serif; }

/* ============================================
   Hero / Video Section
   ============================================ */

.hero-video-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 92, 82, 0.72);
  z-index: 1;
}

/* ============================================
   Navbar
   ============================================ */

#navbar {
  transition: all 0.3s ease;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}

.nav-link {
  position: relative;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.2s ease;
}

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

/* Services dropdown */
.services-dropdown {
  transform-origin: top center;
  transform: scaleY(0.95) translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.services-dropdown.open {
  transform: scaleY(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Mobile menu */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

#mobile-menu.open {
  max-height: 600px;
}

/* Mobile services accordion */
#mobile-services-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

#mobile-services-submenu.open {
  max-height: 400px;
}

/* ============================================
   Tab Switching
   ============================================ */

.portal-tab.active,
.ctab.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 12px rgba(10,92,82,0.15);
}

/* ============================================
   Service Cards
   ============================================ */

.service-card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(10,92,82,0.12);
}

/* ============================================
   Booking Wizard
   ============================================ */

.book-step {
  animation: fade-in-up 0.35s ease both;
}

.service-select-card.selected,
.service-select-card:has(input:checked) {
  border-color: var(--primary);
  background: rgba(10,92,82,0.04);
}

.pkg-card.selected {
  border-color: var(--secondary);
  background: rgba(201,168,76,0.06);
}

.time-slot.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.payment-method.selected {
  border-color: var(--secondary);
  background: rgba(201,168,76,0.06);
}

/* ============================================
   Portal Calendar
   ============================================ */

.calendar-grid {
  display: grid;
  grid-template-columns: 60px repeat(5, 1fr);
  gap: 0;
}

.calendar-time-label {
  font-size: 11px;
  color: var(--muted-foreground);
  text-align: right;
  padding-right: 8px;
  padding-top: 4px;
  border-right: 1px solid var(--border);
}

.calendar-slot {
  min-height: 36px;
  border-right: 1px solid rgba(229,231,235,0.5);
  border-bottom: 1px solid rgba(229,231,235,0.5);
  padding: 2px;
  position: relative;
}

.calendar-appt {
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 11px;
  line-height: 1.3;
  overflow: hidden;
  cursor: pointer;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.calendar-appt.confirmed { background: var(--primary); color: white; }
.calendar-appt.pending   { background: #fefce8; border: 1px solid var(--secondary); color: #713f12; }
.calendar-appt.blocked   { background: var(--muted); color: var(--muted-foreground); }

/* ============================================
   Invoice Print Styles
   ============================================ */

.invoice-print-wrapper {
  position: fixed;
  left: -9999px;
  top: 0;
}

@media print {
  body * { visibility: hidden; }
  #invoice-print-area,
  #invoice-print-area * { visibility: visible; }
  #invoice-print-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
}

/* ============================================
   Scrollbar Customization
   ============================================ */

::-webkit-scrollbar               { width: 6px; height: 6px; }
::-webkit-scrollbar-track         { background: transparent; }
::-webkit-scrollbar-thumb         { background: #d1d5db; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover   { background: #9ca3af; }

/* ============================================
   Utilities
   ============================================ */

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

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Ensure images don't overflow */
img { max-width: 100%; height: auto; }

/* Focus rings */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .animate-float,
  .animate-spin-slow,
  .animate-spin-slow-reverse,
  .animate-pulse-ring,
  .animate-bounce-x { animation: none; }

  [data-aos] { animation: none !important; transition: none !important; }
}
