/* ============================================================
   ATLAS HEALING — global.css
   Foundation: variables, reset, typography, utilities
   ============================================================ */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Jost:wght@300;400;500;600&display=swap');


/* ============================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {

  /* — Palette — */
  --color-bg:           #F6F5FF;
  --color-bg-alt:       #EEF0FB;
  --color-white:        #FFFFFF;

  --color-lavender:     #9B8EC4;
  --color-lavender-lt:  #C5BAE8;
  --color-lavender-dk:  #7B6BAE;

  --color-blue:         #8CB8D8;
  --color-blue-lt:      #C2DCF0;

  --color-mauve:        #BFA8C8;
  --color-mauve-lt:     #E8D8F0;

  --color-ink:          #26253A;
  --color-ink-mid:      #5A5872;
  --color-ink-lt:       #9794B0;

  --color-dark-bg:      #1E1C30;
  --color-dark-bg-2:    #2D2050;

  /* — Glass / overlay — */
  --glass-bg:           rgba(255, 255, 255, 0.55);
  --glass-border:       rgba(255, 255, 255, 0.75);
  --glass-blur:         blur(20px);

  /* — Typography — */
  --font-display:       'Cormorant Garamond', Georgia, serif;
  --font-body:          'Jost', system-ui, sans-serif;

  --text-xs:    0.68rem;
  --text-sm:    0.82rem;
  --text-base:  0.97rem;
  --text-md:    1.1rem;
  --text-lg:    1.35rem;
  --text-xl:    1.65rem;
  --text-2xl:   2.2rem;
  --text-3xl:   3rem;

  /* — Spacing — */
  --space-1:    4px;
  --space-2:    8px;
  --space-3:    12px;
  --space-4:    16px;
  --space-5:    20px;
  --space-6:    24px;
  --space-8:    32px;
  --space-10:   40px;
  --space-12:   48px;
  --space-16:   64px;
  --space-20:   80px;
  --space-28:   112px;

  /* — Layout — */
  --container-max:   1220px;
  --section-pad-v:   110px;
  --section-pad-h:   5vw;

  /* — Borders & Radius — */
  --radius-sm:   10px;
  --radius-md:   18px;
  --radius-lg:   28px;
  --radius-xl:   48px;
  --radius-pill: 999px;

  /* — Shadows — */
  --shadow-sm:  0 4px 16px rgba(155, 142, 196, 0.12);
  --shadow-md:  0 12px 36px rgba(155, 142, 196, 0.18);
  --shadow-lg:  0 24px 60px rgba(155, 142, 196, 0.22);
  --shadow-ink: 0 12px 36px rgba(38, 37, 58, 0.18);

  /* — Transitions — */
  --ease-smooth:  cubic-bezier(0.23, 1, 0.32, 1);
  --duration-fast:  0.25s;
  --duration-base:  0.45s;
  --duration-slow:  0.75s;
  --transition:     0.45s cubic-bezier(0.23, 1, 0.32, 1);
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

/* ── Coming Soon Banner ── */
.site-banner {
  width: 100%;
  background: var(--color-lavender);
  color: var(--color-white);
  text-align: center;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 600;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  background-color: var(--color-bg);
  color: var(--color-ink);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;           /* custom cursor — see main.js */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  outline: none;
}

button { cursor: pointer; }


/* ============================================================
   3. SCROLLBAR
   ============================================================ */
::-webkit-scrollbar          { width: 5px; }
::-webkit-scrollbar-track    { background: var(--color-bg-alt); }
::-webkit-scrollbar-thumb    { background: var(--color-lavender-lt); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-lavender); }


/* ============================================================
   4. TYPOGRAPHY — Display
   ============================================================ */

/* Heading base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.1;
  color: var(--color-ink);
}

h1 { font-size: clamp(3rem, 6.5vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

/* Italic accent used throughout headings */
h1 em, h2 em, h3 em {
  font-style: italic;
  color: var(--color-lavender);
}

p {
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--color-ink-mid);
  line-height: 1.85;
}

strong { font-weight: 500; color: var(--color-ink); }


/* ============================================================
   5. LAYOUT — Container & Section
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-pad-h);
}

section {
  padding: var(--section-pad-v) var(--section-pad-h);
}

/* Alternating backgrounds */
.bg-white    { background-color: var(--color-white); }
.bg-default  { background-color: var(--color-bg); }
.bg-alt      { background-color: var(--color-bg-alt); }
.bg-dark     { background-color: var(--color-dark-bg); }


/* ============================================================
   6. SECTION LABELS & TITLES (shared pattern across all pages)
   ============================================================ */
.section-label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-lavender);
  margin-bottom: var(--space-4);
}

.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--color-lavender);
  flex-shrink: 0;
}

/* Centered variant */
.section-label.centered {
  justify-content: center;
}
.section-label.centered::before { display: none; }
.section-label.centered::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--color-lavender);
  flex-shrink: 0;
}

/* Light variant (for dark backgrounds) */
.section-label.light {
  color: var(--color-lavender-lt);
}
.section-label.light::before,
.section-label.light::after {
  background: var(--color-lavender-lt);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--color-ink);
  margin-bottom: var(--space-8);
}

.section-title.light { color: var(--color-white); }

.section-header {
  margin-bottom: var(--space-16);
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin-bottom: var(--space-16);
}


/* ============================================================
   7. SCROLL REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity  0.9s ease,
    transform 0.9s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }
.reveal-d6 { transition-delay: 0.6s; }


/* ============================================================
   8. CUSTOM CURSOR
   ============================================================ */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  background: var(--color-lavender);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background 0.3s;
  will-change: transform;
}

.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1.5px solid var(--color-lavender);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  opacity: 0.55;
  will-change: transform;
  transition: width 0.3s, height 0.3s;
}

.cursor.hover  { width: 16px; height: 16px; }
.cursor-ring.hover { width: 52px; height: 52px; }


/* ============================================================
   9. GRAIN OVERLAY (applied on hero and dark sections)
   ============================================================ */
.grain-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}


/* ============================================================
   10. TOAST NOTIFICATION
   ============================================================ */
.toast {
  position: fixed;
  bottom: 32px; right: 32px;
  background: var(--color-lavender);
  color: var(--color-white);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  box-shadow: 0 12px 36px rgba(155, 142, 196, 0.4);
  z-index: 9999;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}


/* ============================================================
   11. UTILITY CLASSES
   ============================================================ */

/* Text */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.text-lavender { color: var(--color-lavender); }
.text-white    { color: var(--color-white); }
.text-ink-lt   { color: var(--color-ink-lt); }
.italic        { font-style: italic; }

/* Display */
.flex         { display: flex; }
.flex-col     { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap    { flex-wrap: wrap; }
.gap-2        { gap: var(--space-2); }
.gap-3        { gap: var(--space-3); }
.gap-4        { gap: var(--space-4); }
.gap-6        { gap: var(--space-6); }

/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }

/* Spacing */
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }

/* Visibility */
.hidden { display: none; }

/* Position */
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }


/* ============================================================
   12. DIVIDER
   ============================================================ */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right,
    transparent,
    rgba(155, 142, 196, 0.3) 30%,
    rgba(155, 142, 196, 0.3) 70%,
    transparent
  );
  margin: var(--space-16) 0;
}


/* ============================================================
   13. RESPONSIVE — Mobile Breakpoints
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --section-pad-v: 80px;
    --section-pad-h: 5vw;
  }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --section-pad-v: 64px;
    --section-pad-h: 6vw;
  }
  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }
  .section-header-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  :root {
    --section-pad-v: 52px;
    --section-pad-h: 6vw;
  }
  h1 { font-size: 2.6rem; }
  h2 { font-size: 1.9rem; }
}