/* Fox and the Rose Therapeutic Studios PLLC
   Primary Stylesheet: Grounded Warm Ivory, Muted Sage, Soft Terracotta & Subtle Electric/Emerald Accents
   Design System for Selina M. Farmer, LPC — Mental Health Counselor & Artist
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600;1,700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --color-ivory-bg: #FAF7F2;
  --color-ivory-card: #FFFFFF;
  --color-ivory-warm: #F4EFE6;
  --color-ivory-alt: #EDE7DC;
  
  --color-sage: #5A715C;
  --color-sage-light: #EBF1EC;
  --color-sage-dark: #3F5241;
  
  --color-terracotta: #C0684C;
  --color-terracotta-light: #F9ECE8;
  --color-terracotta-hover: #A8543A;
  
  --color-charcoal: #232726;
  --color-charcoal-muted: #565F5C;
  --color-charcoal-light: #808B87;
  
  --color-accent-blue: #0284C7;
  --color-accent-emerald: #059669;
  --color-accent-purple: #7C5E8A;
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-editorial: 'Cormorant Garamond', Garamond, Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-lg: 24px;
  --border-radius-pill: 9999px;
  
  --shadow-subtle: 0 2px 8px -2px rgba(35, 39, 38, 0.05), 0 1px 4px -1px rgba(35, 39, 38, 0.03);
  --shadow-soft: 0 10px 30px -5px rgba(35, 39, 38, 0.08), 0 4px 10px -2px rgba(35, 39, 38, 0.03);
  --shadow-hover: 0 20px 40px -10px rgba(35, 39, 38, 0.12), 0 8px 16px -4px rgba(35, 39, 38, 0.04);
}

/* Base Document Styles */
html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--color-ivory-bg);
  color: var(--color-charcoal);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: var(--color-ivory-bg);
}

/* Image Protection: Prevent right-clicking, dragging, and touch save callouts */
img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}

/* Typography Utility Classes */
.font-serif {
  font-family: var(--font-serif);
}

.font-editorial {
  font-family: var(--font-editorial);
}

.font-sans {
  font-family: var(--font-sans);
}

/* Color Classes */
.bg-ivory-warm {
  background-color: var(--color-ivory-warm);
}

.bg-ivory-card {
  background-color: var(--color-ivory-card);
}

.bg-sage-light {
  background-color: var(--color-sage-light);
}

.text-charcoal {
  color: var(--color-charcoal);
}

.text-charcoal-muted {
  color: var(--color-charcoal-muted);
}

.text-sage {
  color: var(--color-sage);
}

.text-terracotta {
  color: var(--color-terracotta);
}

.border-terracotta {
  border-color: var(--color-terracotta);
}

.border-sage {
  border-color: var(--color-sage);
}

/* Button & Interactive Component Accents */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.015em;
  border-radius: var(--border-radius-pill);
  background-color: var(--color-terracotta);
  color: #FFFFFF;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(192, 104, 76, 0.25);
  border: 1px solid transparent;
}

.btn-primary:hover {
  background-color: var(--color-terracotta-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(192, 104, 76, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.015em;
  border-radius: var(--border-radius-pill);
  background-color: #FFFFFF;
  color: var(--color-charcoal);
  text-decoration: none;
  border: 1px solid #D6CEBE;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-subtle);
}

.btn-secondary:hover {
  background-color: var(--color-ivory-warm);
  border-color: var(--color-sage);
  color: var(--color-sage-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-sage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--border-radius-pill);
  background-color: var(--color-sage);
  color: #FFFFFF;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(90, 113, 92, 0.25);
}

.btn-sage:hover {
  background-color: var(--color-sage-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(90, 113, 92, 0.35);
  color: #FFFFFF;
}

/* Quick Action Chips */
.action-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--border-radius-pill);
  background-color: #FFFFFF;
  color: var(--color-charcoal);
  border: 1px solid #E2DACB;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.action-chip:hover {
  background-color: var(--color-ivory-warm);
  border-color: var(--color-terracotta);
  color: var(--color-terracotta);
  transform: translateY(-1px);
}

/* Subtle Accent Lines (Mental Health modern aesthetic) */
.accent-line-blue {
  height: 2px;
  background: linear-gradient(90deg, #0284C7 0%, rgba(2, 132, 199, 0.2) 100%);
}

.accent-line-emerald {
  height: 2px;
  background: linear-gradient(90deg, #059669 0%, rgba(5, 150, 105, 0.2) 100%);
}

.accent-line-gradient {
  height: 3px;
  background: linear-gradient(90deg, var(--color-terracotta) 0%, var(--color-sage) 50%, #0284C7 100%);
  border-radius: 9999px;
}

/* Card Styling */
.aesthetic-card {
  background: #FFFFFF;
  border: 1px solid #EAE3D5;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-subtle);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.aesthetic-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
  border-color: #DFD5C3;
}

/* Badge and Seal Styling */
.seal-container {
  background: #FFFFFF;
  border: 1px solid #E5DDCF;
  border-radius: 18px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-subtle);
  transition: all 0.25s ease;
  height: 100%;
}

.seal-container:hover {
  border-color: var(--color-sage);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

/* Subtle Image Frame */
.artful-frame {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #F1EAE0;
}

.artful-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius-lg);
  pointer-events: none;
}

/* Emergency Crisis Notification Banner */
.emergency-banner {
  background: #25282A;
  color: #F8F9FA;
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.emergency-banner a {
  color: #93C5FD;
  font-weight: 600;
  text-decoration: underline;
}

/* Navbar active state */
.nav-link {
  position: relative;
  display: inline-block;
  text-align: center;
  font-weight: 500;
  color: var(--color-charcoal-muted);
  text-decoration: none;
  padding: 0.5rem 0.25rem;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-charcoal);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-terracotta);
  border-radius: 2px;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 10px;
  background: var(--color-terracotta);
  color: white;
  padding: 8px 16px;
  z-index: 9999;
  border-radius: 4px;
  transition: top 0.2s;
  text-decoration: none;
  font-weight: bold;
}

.skip-link:focus {
  top: 10px;
}

/* Print Stylesheet for Resume/CV */
@media print {
  .no-print, header, footer, .emergency-banner, nav {
    display: none !important;
  }
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
  }
  .printable-area {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
  }
}

/* ===================================================
   Dynamic Motion & Interactivity Enhancements
   =================================================== */

/* Ambient Floating Keyframes for Micro-Badges */
@keyframes ambient-float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

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

.float-ambient {
  animation: ambient-float 4.5s ease-in-out infinite;
}

.float-ambient-reverse {
  animation: ambient-float-reverse 5s ease-in-out infinite;
}

/* Scroll-Driven Reveal Animations - Safe Fallback (Always visible by default) */
.reveal-on-scroll {
  opacity: 1;
  transform: translateY(0px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0px);
}

/* Stagger Delays for Grid Elements */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Sticky Header Scroll State */
header.header-scrolled {
  background-color: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 4px 20px -2px rgba(35, 39, 38, 0.08) !important;
  border-bottom-color: rgba(234, 227, 213, 0.9) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Interactive Breathing Grounding Widget */
@keyframes breath-cycle {
  0%, 100% {
    transform: scale(0.85);
    opacity: 0.7;
    background-color: #EBF1EC; /* sage light */
  }
  35%, 65% {
    transform: scale(1.15);
    opacity: 1;
    background-color: #F9ECE8; /* terracotta light */
  }
}

.breathing-circle-active {
  animation: breath-cycle 12s ease-in-out infinite;
}

/* Interactive Card Hover Depth */
.interactive-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  cursor: pointer;
}

.interactive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(192, 104, 76, 0.12), 0 4px 12px rgba(0,0,0,0.04);
}

/* Insurance Chip Highlight Transitions */
.insurance-chip {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.insurance-chip.active-match {
  background-color: var(--color-sage-light) !important;
  color: var(--color-sage-dark) !important;
  border-color: var(--color-sage) !important;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(90, 113, 92, 0.2);
  font-weight: 700 !important;
}

.insurance-chip.dimmed {
  opacity: 0.35;
  transform: scale(0.98);
}

/* ===================================================
   Glowing Highlight & Hover Effects for Text Boxes
   =================================================== */

/* 1. Form Text Boxes (Inputs, Textarea, Selects) */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="url"],
input[type="number"],
textarea,
select {
  transition: border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.2s ease,
              transform 0.2s ease !important;
}

/* Hover state: Luminous Terracotta Glow & Crisp Border Highlight */
input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
input[type="search"]:hover,
input[type="url"]:hover,
input[type="number"]:hover,
textarea:hover,
select:hover {
  border-color: #C0684C !important;
  background-color: #FFFFFF !important;
  box-shadow: 0 0 0 4px rgba(192, 104, 76, 0.18), 0 4px 16px -2px rgba(192, 104, 76, 0.22) !important;
  transform: translateY(-1px);
}

/* Focus state: Deep Radiant Glow */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  border-color: #C0684C !important;
  background-color: #FFFFFF !important;
  box-shadow: 0 0 0 4px rgba(192, 104, 76, 0.28), 0 8px 22px -2px rgba(192, 104, 76, 0.25) !important;
  outline: none !important;
  transform: translateY(-1px);
}

/* 2. Content & Information Text Boxes */
.aesthetic-card,
.hover-box-glow {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease !important;
}

.aesthetic-card:hover,
.hover-box-glow:hover {
  border-color: rgba(192, 104, 76, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(192, 104, 76, 0.12), 0 16px 36px -6px rgba(192, 104, 76, 0.14) !important;
  transform: translateY(-2px);
}

#counseling-notice,
#art-notice {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#counseling-notice:hover {
  border-color: var(--color-sage) !important;
  box-shadow: 0 0 0 3px rgba(90, 113, 92, 0.2), 0 4px 14px rgba(90, 113, 92, 0.15) !important;
  transform: translateY(-1px);
}

#art-notice:hover {
  border-color: var(--color-terracotta) !important;
  box-shadow: 0 0 0 3px rgba(192, 104, 76, 0.2), 0 4px 14px rgba(192, 104, 76, 0.15) !important;
  transform: translateY(-1px);
}
