/* ============================================================
   Second Chance Document Services — Premium Custom Styles
   Companion to Tailwind CSS utility-first framework
   ============================================================ */

/* --- Base --- */
html { scroll-behavior: smooth; }
body {
  background-color: #FAF9F6;
  color: #0A231A;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(1.08);
  transition: all 1.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* --- Glassmorphism Navigation --- */
.nav-glass {
  background: rgba(250, 249, 246, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(10, 35, 26, 0.05);
}
.nav-glass.scrolled {
  background: rgba(250, 249, 246, 0.95);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* --- Luxury Button Shimmer --- */
.btn-luxury {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}
.btn-luxury::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: all 0.6s ease;
}
.btn-luxury:hover::after { left: 100%; }
.btn-luxury:hover {
  box-shadow: 0 15px 30px -10px rgba(10, 35, 26, 0.3), 0 0 20px rgba(212, 175, 55, 0.2);
  transform: translateY(-2px);
}

/* --- Card Hover Lift --- */
.hover-lift {
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px -15px rgba(212, 175, 55, 0.15), 0 20px 40px -20px rgba(10, 35, 26, 0.1);
}

/* --- Ambient Glow --- */
.ambient-glow {
  position: absolute;
  width: 70vw; height: 70vw;
  max-width: 800px; max-height: 800px;
  background: radial-gradient(circle, rgba(212,175,55,0.06) 0%, rgba(250,249,246,0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  top: -20%; left: -10%;
}

/* --- Image Masks --- */
.image-mask { border-radius: 200px 0 200px 0; overflow: hidden; }
.image-mask-alt { border-radius: 0 200px 0 200px; overflow: hidden; }
@media (max-width: 768px) {
  .image-mask, .image-mask-alt { border-radius: 40px; }
}

/* --- Floating Animation --- */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}
.animate-float { animation: float 8s ease-in-out infinite; }

/* --- Elegant Form Inputs --- */
.input-elegant {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(10, 35, 26, 0.2);
  padding: 1rem 0;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  color: #0A231A;
  border-radius: 0;
}
.input-elegant:focus {
  outline: none;
  border-bottom-color: #D4AF37;
  box-shadow: 0 1px 0 0 #D4AF37;
}
.input-elegant::placeholder {
  color: rgba(10, 35, 26, 0.4);
  font-weight: 300;
}
.form-label-elegant {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: #2A5242;
  margin-bottom: 0.25rem;
  display: block;
}

/* --- Custom Checkbox --- */
.checkbox-luxury {
  appearance: none;
  width: 20px; height: 20px;
  border: 1px solid #2A5242;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.checkbox-luxury:checked {
  background-color: #0A231A;
  border-color: #0A231A;
}
.checkbox-luxury:checked::after {
  content: '\2713';
  position: absolute;
  color: #D4AF37;
  font-size: 14px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

/* --- Mobile Menu Fullscreen --- */
#mobile-menu {
  transition: opacity 0.3s ease;
}

/* --- Sticky Phone Bar (Mobile) --- */
.sticky-phone {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
  background: linear-gradient(135deg, #D4AF37, #B8923F);
  padding: 0.75rem;
  text-align: center;
}
.sticky-phone a {
  color: #0A231A;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
@media (max-width: 768px) {
  .sticky-phone { display: block; }
  body { padding-bottom: 52px; }
}

/* --- Focus & Scroll Target --- */
:focus-visible {
  outline: 2px solid #D4AF37;
  outline-offset: 2px;
}
:target { scroll-margin-top: 120px; }

/* --- Legal Page Prose --- */
.prose-legal h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(10, 35, 26, 0.1);
}
.prose-legal h2:first-of-type {
  border-top: none;
  padding-top: 0;
}
.prose-legal p { margin-bottom: 1rem; }
.prose-legal ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.prose-legal li {
  margin-bottom: 0.4rem;
  line-height: 1.65;
}
