/* ═══════════════════════════════════════════════════════════
   CoachingArt – BASE CSS
   Reset · Variables · Typography · Utilities
   ═══════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ──────────────────────────────── */
:root {
  /* Brand Colors */
  --c-purple:        #7B2D8C;
  --c-purple-dk:     #5A1F68;
  --c-purple-lt:     #A04BB8;
  --c-purple-pale:   #F4EDF7;
  --c-purple-glow:   rgba(123,45,140,0.18);
  --c-accent:        #C46BE0;

  /* Neutrals */
  --c-white:  #FFFFFF;
  --c-off:    #FAFAFA;
  --c-bg:     #F7F3FA;
  --c-border: #E8DEF0;
  --c-gray:   #888;
  --c-dark:   #1A0A22;
  --c-text:   #2C1840;
  --c-muted:  #6B5A78;

  /* Fonts */
  --f-script: 'Dancing Script', cursive;
  --f-body:   'Outfit', sans-serif;

  /* Spacing */
  --gap-xs:  0.25rem;
  --gap-sm:  0.5rem;
  --gap-md:  1rem;
  --gap-lg:  2rem;
  --gap-xl:  4rem;
  --gap-2xl: 7rem;

  /* Radius */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   32px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:  0 6px 24px rgba(90,31,104,0.12);
  --shadow-lg:  0 16px 48px rgba(90,31,104,0.18);
  --shadow-xl:  0 30px 80px rgba(90,31,104,0.22);
  --shadow-glow:0 0 40px rgba(164,75,184,0.3);

  /* Transitions */
  --t-fast: 0.18s ease;
  --t-base: 0.3s ease;
  --t-slow: 0.5s ease;

  /* Z-index layers */
  --z-base:   1;
  --z-float:  10;
  --z-sticky: 50;
  --z-nav:    100;
  --z-modal:  200;
  --z-toast:  300;

  /* Max widths */
  --w-sm:   640px;
  --w-md:   860px;
  --w-lg:   1100px;
  --w-xl:   1380px;

  /* Header height */
  --header-h: 72px;
}

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

html, body {
  overflow-x: hidden;
  max-width: 100%;
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-white);
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; }
table { border-collapse: collapse; }
hr { border: none; border-top: 1px solid var(--c-border); }

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-script);
  line-height: 1.2;
  color: var(--c-purple);
}
h1 { font-size: clamp(2rem,   5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 2rem);   }
h4 { font-size: 1.25rem; }



strong { font-weight: 700; }
em { font-style: italic; }

.script { font-family: var(--f-script); }
.text-purple { color: var(--c-purple); }
.text-muted  { color: var(--c-muted); }
.text-center { text-align: center; }
.text-sm     { font-size: 0.875rem; }
.text-lg     { font-size: 1.125rem; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: var(--r-full);
  font-family: var(--f-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 2px solid transparent;
  transition: all var(--t-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-fast);
}
.btn:hover::before { transform: scaleX(1); }

.btn-primary {
  background: var(--c-purple);
  color: var(--c-white);
  border-color: var(--c-purple);
  box-shadow: 0 4px 20px rgba(123,45,140,0.3);
}
.btn-primary:hover {
  background: var(--c-purple-dk);
  box-shadow: 0 6px 28px rgba(123,45,140,0.45);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--c-purple);
  border-color: var(--c-purple);
}
.btn-outline:hover {
  background: var(--c-purple);
  color: var(--c-white);
}

.btn-white {
  background: var(--c-white);
  color: var(--c-purple);
  border-color: var(--c-white);
}
.btn-white:hover {
  background: transparent;
  color: var(--c-white);
}

.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: var(--c-white);
  border-color: rgba(255,255,255,0.4);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.7);
}

.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--c-white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-body { padding: 1.5rem; }

/* ── Layout Helpers ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--w-xl);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}
.container--sm  { max-width: var(--w-sm); }
.container--md  { max-width: var(--w-md); }
/* Ensure modifier classes keep horizontal padding */
.container--sm,
.container--md  { padding-left: clamp(1rem, 4vw, 2.5rem); padding-right: clamp(1rem, 4vw, 2.5rem); }
.container--lg  { max-width: var(--w-lg); padding-left: clamp(1rem, 4vw, 2.5rem); padding-right: clamp(1rem, 4vw, 2.5rem); }

.section {
  padding: var(--gap-2xl) 0;
}
.section--sm { padding: var(--gap-xl) 0; }

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

.flex   { display: flex; }
.flex-c { display: flex; align-items: center; }
.flex-cc{ display: flex; align-items: center; justify-content: center; }
.flex-sb{ display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: var(--gap-sm); }
.gap-md { gap: var(--gap-md); }
.gap-lg { gap: var(--gap-lg); }

/* ── Video Wrapper ───────────────────────────────────────── */
.video-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #111;
  box-shadow: var(--shadow-xl);
}
.video-wrap iframe,
.video-wrap video {
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Section Heading ─────────────────────────────────────── */
.section-heading {
  text-align: center;
  margin-bottom: var(--gap-xl);
}
.section-heading h2 { margin-bottom: 0.5rem; }
.section-heading p  { color: var(--c-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ── Badge / Tag ─────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.badge-purple { background: var(--c-purple-pale); color: var(--c-purple); }
.badge-white  { background: rgba(255,255,255,0.2); color: #fff; }

/* ── Page Hero – always has header sitting on top transparently ── */
.page-hero {
  background: linear-gradient(135deg, var(--c-purple-dk) 0%, var(--c-purple-lt) 100%);
  padding: calc(var(--header-h) + 5rem) 0 4.5rem;
  text-align: center;
  color: var(--c-white);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='40' cy='40' r='30'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--c-white));
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--c-white); font-size: clamp(2rem, 5vw, 3.8rem); text-shadow: 0 3px 20px rgba(0,0,0,0.25); }

/* ── Reveal animations ───────────────────────────────────── */
.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; }

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: var(--c-purple-lt); border-radius: var(--r-full); }

/* ── Focus ───────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--c-purple); outline-offset: 3px; }

/* ── Responsive Utilities ────────────────────────────────── */
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2.keep-2 { grid-template-columns: 1fr 1fr; }
  .hide-mobile { display: none !important; }
}
@media (min-width: 901px) {
  .hide-desktop { display: none !important; }
}

/* Admin floating button */
.admin-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-purple);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
  z-index: var(--z-float);
  transition: transform var(--t-base), box-shadow var(--t-base);
  opacity: 0.75;
}
.admin-btn:hover {
  transform: scale(1.12);
  box-shadow: var(--shadow-glow);
  opacity: 1;
}
