/* ====================================================
   NO MORE HANDCUFFS & NEXT CHAPTER - BESPOKE STYLES
   ==================================================== */

/* Global Touch & Tap Reset for iOS/Android */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* {
  -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;
}

/* Hero & Brand Gradient Text Fallback (Guarantees gradient text visibility across all browsers & offline) */
.text-brand-gradient {
  background: linear-gradient(135deg, #6d28d9 0%, #be185d 50%, #0f766e 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  display: inline-block;
}

.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;
}

/* Mobile Typography & Layout Scaling */
@media screen and (max-width: 768px) {
  /* Prevent iOS Safari 16px auto-zoom */
  input[type="text"],
  input[type="email"],
  input[type="number"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Prevent text from shrinking below readable thresholds on mobile screens */
  .text-\[10px\] {
    font-size: 0.75rem !important; /* 12px */
    line-height: 1.1rem !important;
  }

  .text-\[11px\] {
    font-size: 0.8125rem !important; /* 13px */
    line-height: 1.25rem !important;
  }

  /* Increase range slider thumb size on mobile for finger touch */
  input[type=range]::-webkit-slider-thumb {
    width: 28px !important;
    height: 28px !important;
  }

  input[type=range]::-moz-range-thumb {
    width: 28px !important;
    height: 28px !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);
}

/* ====================================================
   TARGETED MOBILE CARD TYPOGRAPHY ENHANCEMENT
   Specifically boosts font sizing on mobile (<=768px) for:
   1. The 7 Guiding Pillars cards
   2. Phoenix Triad & 4 Tenets cards
   3. 4 Service Pillars cards
   Leaves all site headers, nav, hero, and other sections untouched.
   ==================================================== */
@media screen and (max-width: 768px) {
  /* 1. The 7 Guiding Pillars Cards */
  #guiding-pillars-grid span {
    font-size: 1.15rem !important;
  }
  #guiding-pillars-grid p {
    font-size: 1.125rem !important; /* 18px */
    line-height: 1.7 !important;
    color: #241c30 !important;
  }

  /* 2. Phoenix Triad & 4 Tenets Cards */
  #phoenix-triad-cards span,
  #phoenix-tenets-cards span {
    font-size: 1.15rem !important;
  }
  #phoenix-triad-cards p,
  #phoenix-tenets-cards p {
    font-size: 1.125rem !important; /* 18px */
    line-height: 1.7 !important;
    color: #241c30 !important;
  }

  /* 3. 4 Service Pillars Cards */
  #service-pillars-grid .font-display.text-sm {
    font-size: 0.95rem !important;
  }
  #service-pillars-grid span.text-base {
    font-size: 1.05rem !important;
  }
  #service-pillars-grid p {
    font-size: 1.15rem !important; /* 18.4px */
    line-height: 1.7 !important;
    color: #241c30 !important;
  }
  #service-pillars-grid ul li span {
    font-size: 1.125rem !important; /* 18px */
    line-height: 1.65 !important;
  }
  #service-pillars-grid a {
    font-size: 1.125rem !important;
  }
}

