/* ====================================================
   NO MORE HANDCUFFS & NEXT CHAPTER - BESPOKE STYLES
   ==================================================== */

/* Global Touch & Tap Reset for iOS/Android */
* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

/* Base Typography & Canvas */
body {
  font-family: 'Lora', serif;
  background-color: #d8b4fe;
  color: #110c1a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scrollbar-width: thin;
  scrollbar-color: #7c3aed #d8b4fe;
}

/* Modal Open Body Lock to prevent background scroll bouncing on iOS / Android */
body.modal-open {
  overflow: hidden !important;
  touch-action: none;
}

.font-display {
  font-family: 'Oswald', sans-serif;
}

/* Custom Scrollbar Styling (WebKit & Blink) */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #d8b4fe;
}
::-webkit-scrollbar-thumb {
  background: #7c3aed;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #6d28d9;
}

/* Parallax Background Canvas with full cross-browser fallback & hardware acceleration */
#parallax-bg {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  pointer-events: none;
  z-index: -20;
  background-image: url('assets/purplejoggerandhat.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 100%; /* Starts at bottom */
  will-change: background-position;
  opacity: 0.55;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Parallax Window Break - Fallback to scroll on tablets & touch devices to eliminate iOS WebKit jitter */
.parallax-window {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
  .parallax-window {
    background-attachment: scroll !important;
  }
}

/* ====================================================
   100% SOLID OPAQUE CARDS, PANELS & BUTTONS
   (ZERO TRANSPARENCY)
   ==================================================== */

/* Header (Solid Opaque) */
header {
  background-color: #d8b4fe !important;
  opacity: 1 !important;
  border-bottom: 2px solid #b09cde !important;
}

/* Cards & Surfaces (Solid Pure White / Violet) */
.bg-brand-card, 
.solid-card, 
.card {
  background-color: #ffffff !important;
  opacity: 1 !important;
}

.bg-brand-bg {
  background-color: #d8b4fe !important;
  opacity: 1 !important;
}

.bg-brand-cardLight {
  background-color: #f3e8ff !important;
  opacity: 1 !important;
}

.bg-brand-purple {
  background-color: #6d28d9 !important;
  color: #ffffff !important;
}

.bg-brand-purpleHover,
.bg-brand-purple:hover {
  background-color: #5b21b6 !important;
}

.text-brand-purple {
  color: #6d28d9 !important;
}

.border-brand-purple {
  border-color: #6d28d9 !important;
}

.bg-brand-magenta {
  background-color: #be185d !important;
}

.bg-brand-gold {
  background-color: #b45309 !important;
}

.bg-brand-teal {
  background-color: #0f766e !important;
}

.text-brand-text {
  color: #110c1a !important;
}

.text-brand-textMuted {
  color: #3f374c !important;
}

.border-brand-border {
  border-color: #b09cde !important;
}

/* Inputs & Form Fields */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="search"],
select,
textarea {
  background-color: #ffffff !important;
  opacity: 1 !important;
}

/* Prevent iOS Safari 16px auto-zoom */
@media screen and (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="number"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Buttons (Solid Opaque Colors) */
button,
.btn,
a.button-solid {
  opacity: 1 !important;
}

/* Section Backgrounds (Solid Alternating Canvas) */
.section-solid-light {
  background-color: #ffffff !important;
  opacity: 1 !important;
}

.section-solid-purple {
  background-color: #d8b4fe !important;
  opacity: 1 !important;
}

/* Hyper-Vibrant Teal Glow Shadows */
.shadow-teal-glow {
  box-shadow: 0 8px 20px -4px rgba(20, 184, 166, 0.45), 0 4px 10px -2px rgba(13, 148, 136, 0.35);
}
.shadow-teal-glow-lg {
  box-shadow: 0 16px 30px -6px rgba(20, 184, 166, 0.55), 0 8px 15px -4px rgba(13, 148, 136, 0.4);
}
.shadow-teal-glow-2xl {
  box-shadow: 0 25px 50px -12px rgba(20, 184, 166, 0.7), 0 0 30px 2px rgba(45, 212, 191, 0.5);
}

/* Dynamic Interactive Hover Lift & Glow */
.hover-teal-glow {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
}
.hover-teal-glow:hover {
  box-shadow: 0 22px 45px -8px rgba(20, 184, 166, 0.75), 0 0 32px 4px rgba(45, 212, 191, 0.65) !important;
  transform: translateY(-3px);
  border-color: #0f766e !important;
}

/* Pulse Keyframes for Brand Rings */
@keyframes pulse-slow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 30px rgba(20, 184, 166, 0.6), 0 0 15px rgba(13, 148, 136, 0.4);
    border-color: rgba(20, 184, 166, 0.7);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 55px rgba(45, 212, 191, 0.9), 0 0 30px rgba(20, 184, 166, 0.7);
    border-color: rgba(45, 212, 191, 1);
  }
}
.animate-pulse-slow {
  animation: pulse-slow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Cross-Browser Custom Range Slider Styling (WebKit, Blink & Gecko/Firefox) */
input[type=range] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: #f3e8ff !important;
  border-radius: 9999px;
  height: 8px;
  opacity: 1 !important;
  cursor: pointer;
}

/* WebKit / Blink Slider Thumb */
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0f766e;
  cursor: pointer;
  border: 3px solid #ffffff;
  box-shadow: 0 0 10px rgba(20, 184, 166, 0.6);
  transition: transform 0.15s ease;
}
input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Firefox Slider Track & Thumb */
input[type=range]::-moz-range-track {
  background: #f3e8ff;
  border-radius: 9999px;
  height: 8px;
  border: none;
}
input[type=range]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0f766e;
  cursor: pointer;
  border: 3px solid #ffffff;
  box-shadow: 0 0 10px rgba(20, 184, 166, 0.6);
  transition: transform 0.15s ease;
  box-sizing: border-box;
}
input[type=range]::-moz-range-thumb:hover {
  transform: scale(1.2);
}

/* Black text with blurred white shadow glow for contrast over background image */
.text-shadow-white-glow {
  color: #000000 !important;
  text-shadow: 
    0 0 10px rgba(255, 255, 255, 1),
    0 0 20px rgba(255, 255, 255, 0.95),
    0 0 35px rgba(255, 255, 255, 0.9),
    0 0 50px rgba(255, 255, 255, 0.8),
    0 2px 4px rgba(255, 255, 255, 0.9);
}

.text-shadow-white-glow-lg {
  color: #000000 !important;
  text-shadow: 
    0 0 15px rgba(255, 255, 255, 1),
    0 0 30px rgba(255, 255, 255, 0.95),
    0 0 50px rgba(255, 255, 255, 0.9),
    0 0 75px rgba(255, 255, 255, 0.85),
    0 0 100px rgba(255, 255, 255, 0.75);
}
