/* =============================================
   GET HEALED WITHIN - Global Styles
   Brand Colors: #62199e | #b04d89 | #fff7f2
   ============================================= */

/* --- CSS Variables --- */
:root {
  --purple: #62199e;
  --purple-dark: #4a1278;
  --purple-light: #8b3cc0;
  --pink: #b04d89;
  --pink-light: #c96fa3;
  --cream: #fff7f2;
  --cream-dark: #f5e8e0;
  --white: #ffffff;
  --gray-100: #f9f5f7;
  --gray-200: #ede8ee;
  --gray-400: #b09ab8;
  --gray-600: #7a6882;
  --gray-800: #3d2e44;
  --text-dark: #1e1025;
  --text-body: #4a3d52;
  --text-muted: #7a6882;
  --gradient-primary: linear-gradient(135deg, #62199e 0%, #b04d89 100%);
  --gradient-soft: linear-gradient(135deg, #f8f0ff 0%, #fff0f7 100%);
  --gradient-hero: linear-gradient(135deg, #3b0d6e 0%, #62199e 40%, #b04d89 100%);
  --shadow-sm: 0 2px 8px rgba(98, 25, 158, 0.08);
  --shadow-md: 0 8px 30px rgba(98, 25, 158, 0.12);
  --shadow-lg: 0 20px 60px rgba(98, 25, 158, 0.18);
  --shadow-card: 0 4px 24px rgba(98, 25, 158, 0.1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;
  --radius-full: 9999px;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.5rem;
}
.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 2px;
  background: var(--pink);
  border-radius: 2px;
}

.section-title { margin-bottom: 1rem; }
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}
.section-header { margin-bottom: 3rem; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }
.section-header.center .section-label { padding-left: 0; }
.section-header.center .section-label::before { display: none; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-wide { max-width: 1400px; }
.container-narrow { max-width: 800px; }

section { padding: 5rem 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: var(--transition);
}
.btn:hover::after { background: rgba(255,255,255,0.12); }

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(98, 25, 158, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(98, 25, 158, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--purple);
  border: 2px solid var(--purple);
}
.btn-secondary:hover {
  background: var(--purple);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--purple);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-lg { padding: 1.1rem 2.5rem; font-size: 1.05rem; }
.btn-sm { padding: 0.6rem 1.4rem; font-size: 0.875rem; }

.btn-group { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  border: 1px solid rgba(98, 25, 158, 0.06);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* --- Badge --- */
.badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.badge-purple { background: rgba(98,25,158,0.12); color: var(--purple); }
.badge-pink { background: rgba(176,77,137,0.12); color: var(--pink); }
.badge-cream { background: var(--cream); color: var(--purple); }
.badge-green { background: #e6f9f0; color: #1a7a4a; }

/* --- Divider --- */
.divider {
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
  margin: 1.25rem 0;
}
.divider.center { margin-left: auto; margin-right: auto; }

/* --- Section BG variants --- */
.bg-white { background: var(--white); }
.bg-cream { background: var(--cream); }
.bg-soft { background: var(--gray-100); }
.bg-purple { background: var(--purple); }
.bg-gradient { background: var(--gradient-primary); }
.bg-hero { background: var(--gradient-hero); }
.bg-pattern {
  background-color: var(--cream);
  background-image: radial-gradient(circle at 20% 20%, rgba(98,25,158,0.05) 0%, transparent 50%),
                    radial-gradient(circle at 80% 80%, rgba(176,77,137,0.05) 0%, transparent 50%);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(98,25,158,0.3); }
  50%       { box-shadow: 0 0 0 20px rgba(98,25,158,0); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.animate-fadeInUp { animation: fadeInUp 0.7s ease forwards; }
.animate-float    { animation: float 6s ease-in-out infinite; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* --- Form Elements --- */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}
.form-control {
  width: 100%;
  padding: 0.8rem 1.1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-body);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(98,25,158,0.12);
}
.form-control::placeholder { color: var(--gray-400); }

/* --- Stars --- */
.stars { color: #f4c430; font-size: 0.9rem; letter-spacing: 2px; }

/* --- Floating elements --- */
.float-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.15;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: var(--gradient-hero);
  padding: 6rem 0 4rem;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero p { color: rgba(255,255,255,0.85); font-size: 1.15rem; max-width: 600px; margin: 0 auto; }

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
  justify-content: center;
}
.breadcrumb a { color: rgba(255,255,255,0.7); transition: var(--transition); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* --- Utility --- */
.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.text-purple { color: var(--purple) !important; }
.text-pink { color: var(--pink) !important; }
.text-muted { color: var(--text-muted) !important; }
.mt-auto { margin-top: auto; }
.mb-0 { margin-bottom: 0 !important; }
.w-full { width: 100%; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--purple-light); border-radius: 3px; }

/* --- Modal Overlay --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30,10,40,0.65);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  position: relative;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}
.modal-overlay.active .modal-box {
  transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.1rem;
  color: var(--text-muted);
}
.modal-close:hover { background: var(--gray-200); color: var(--text-dark); }

/* --- Toast --- */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 20000;
  transform: translateX(120%);
  transition: var(--transition);
  border-left: 4px solid var(--purple);
  max-width: 320px;
  font-size: 0.9rem;
  color: var(--text-body);
}
.toast.show { transform: translateX(0); }
.toast.success { border-color: #1a7a4a; }
.toast.error { border-color: #c0392b; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  section { padding: 4rem 0; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; align-items: flex-start; }
  section { padding: 3rem 0; }
  .container { padding: 0 1.25rem; }
  .section-header { margin-bottom: 2rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.6rem; }
}
