/* ============================================================
   MORINVIBES® — global.css v4.1
   Tokens · Reset · Typography · Buttons
   ============================================================ */

/* ── 1. DESIGN TOKENS ────────────────────────────────────── */
:root {
  /* TEAL (primary) */
  --teal:        #0097b2;
  --teal-deep:   #007d96;
  --teal-light:  #61cad8;
  --teal-mid:    #00aecb;
  --teal-soft:   #b8e8f0;
  --teal-ghost:  #dff5f9;

  /* GREEN (secondary — nature only) */
  --green:        #2ea84f;
  --green-mid:    #3dba60;
  --green-light:  #5ecf7a;
  --green-soft:   #b8e8c8;
  --green-ghost:  #ddf5e7;
  --green-deep:   #1a7a3a;

  /* NEUTRALS */
  --white:       #ffffff;
  --paper:       #f5fcfd;
  --ink:         #1a3a40;
  --ink-soft:    #2e5a62;
  --ink-muted:   #5d8c92;
  --border:      #c8e8ed;
  --border-soft: #ddf0f3;

  /* DARK SECTIONS — deep teal ONLY, never dark green */
  --footer-bg:       linear-gradient(160deg, #003d50 0%, #002d3e 60%, #001e2c 100%);
  --section-dark-bg: linear-gradient(160deg, #004558 0%, #002d3e 100%);

  /* LIGHT SECTION BACKGROUNDS */
  --hero-grad: linear-gradient(135deg, #dff5f9 0%, #e8f8ec 50%, #f5fcfd 100%);
  --mesh-1:    radial-gradient(ellipse at 20% 50%, rgba(0,151,178,.12) 0%, transparent 60%);
  --mesh-2:    radial-gradient(ellipse at 80% 20%, rgba(46,168,79,.10) 0%, transparent 55%);

  /* TYPOGRAPHY */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;

  /* SHADOWS — teal-tinted ONLY. NEVER rgba(0,0,0,x) */
  --sh-xs: 0 1px 4px rgba(0,151,178,.08);
  --sh-sm: 0 2px 14px rgba(0,151,178,.10);
  --sh-md: 0 8px 32px rgba(0,151,178,.14);
  --sh-lg: 0 24px 64px rgba(0,151,178,.18);
  --sh-xl: 0 40px 80px rgba(0,151,178,.22);
  --sh-green-sm: 0 2px 14px rgba(46,168,79,.12);
  --sh-green-md: 0 8px 32px rgba(46,168,79,.16);

  /* RADIUS */
  --r-xs: 8px;  --r-sm: 14px; --r-md: 22px;
  --r-lg: 32px; --r-xl: 44px;

  /* SPACING (8px base) */
  --sp-1: 8px;  --sp-2: 16px; --sp-3: 24px; --sp-4: 32px;
  --sp-5: 48px; --sp-6: 64px; --sp-7: 80px; --sp-8: 120px;

  /* EASING */
  --ease:        cubic-bezier(.4,0,.2,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --ease-out:    cubic-bezier(0,0,.2,1);

  /* LAYOUT */
  --nav-h:      72px;
  --max-w:      1140px;
  --section-px: 24px;

  /* PAGE TRANSITION */
  --transition-page-duration: 320ms;
}

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

html {
  font-size: 17px;
  scroll-behavior: auto; /* Lenis handles scroll */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.drawer-open,
body.tab-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: var(--sans); cursor: pointer; }
input, select, textarea { font-family: var(--sans); }
table { border-collapse: collapse; }
[hidden] { display: none !important; }

/* ── 3. TYPOGRAPHY ────────────────────────────────────────── */
h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--ink);
}
h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--ink);
}
h3 {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  font-weight: 400;
  color: var(--ink);
}
h4 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink);
}
p { color: var(--ink-soft); }

.eyebrow {
  font: 700 10.5px/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 14px;
}
.eyebrow--green  { color: var(--green); }
.eyebrow--white  { color: rgba(255,255,255,.75); }

.lead {
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.88;
  color: var(--ink-soft);
}
.lead--white { color: rgba(255,255,255,.82); }

.teal-italic {
  color: var(--teal);
  font-style: italic;
  -webkit-text-fill-color: var(--teal);
}

.headline-grad--green {
  background: linear-gradient(135deg, var(--ink) 30%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── 4. BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font: 500 15px/1 var(--sans);
  letter-spacing: .01em;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .22s var(--ease), background .28s var(--ease);
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn--primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: var(--sh-sm);
}
.btn--primary:hover {
  background: var(--teal-deep);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}

.btn--green {
  background: var(--green);
  color: var(--white);
  box-shadow: var(--sh-green-sm);
}
.btn--green:hover {
  background: var(--green-deep);
  box-shadow: var(--sh-green-md);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  border: 1.5px solid var(--green);
  color: var(--green);
}
.btn--outline:hover {
  background: var(--green-ghost);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--teal);
  border: none;
  padding-left: 0;
  padding-right: 0;
}
.btn--ghost::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}
.btn--ghost:hover::after { transform: scaleX(1); }

.btn--inverted {
  background: var(--white);
  color: var(--teal);
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
}
.btn--inverted:hover {
  background: var(--teal-ghost);
  transform: translateY(-2px);
}

.btn--sm { padding: 10px 20px; font-size: 13px; }
.btn--lg { padding: 18px 44px; font-size: 16px; }
.btn--full { width: 100%; }

/* ── Gradient CTA (v4.1) ─────────────────────────────────── */
.btn--gradient {
  background: linear-gradient(110deg,
    var(--teal-deep) 0%,
    var(--teal)      35%,
    var(--teal-mid)  65%,
    var(--green)     100%
  );
  background-size: 250% 100%;
  background-position: 0% center;
  color: var(--white);
  border: none;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,151,178,.30), 0 1px 4px rgba(0,151,178,.18);
  transition:
    background-position .55s var(--ease),
    box-shadow .28s var(--ease),
    transform .18s var(--ease);
}
.btn--gradient:hover {
  background-position: 100% center;
  box-shadow: 0 8px 32px rgba(0,151,178,.38), 0 2px 8px rgba(0,151,178,.22);
  transform: translateY(-2px);
}
.btn--gradient:active { transform: translateY(0); }

.btn--gradient .btn-shimmer {
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255,255,255,.22) 50%,
    transparent 80%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  transition: none;
}
.btn--gradient.shimmer-run .btn-shimmer {
  animation: btn-shimmer-sweep .65s var(--ease) forwards;
}

@keyframes btn-shimmer-sweep {
  from { left: -120%; }
  to   { left: 160%;  }
}

@keyframes btn-glow-pulse {
  0%,100% { box-shadow: 0 4px 20px rgba(0,151,178,.30), 0 1px 4px rgba(0,151,178,.18); }
  50%     { box-shadow: 0 6px 28px rgba(0,151,178,.50), 0 2px 8px rgba(46,168,79,.22); }
}
.btn--gradient.btn--pulse {
  animation: btn-glow-pulse 2.4s ease-in-out infinite;
}
.btn--gradient.btn--pulse:hover { animation: none; }

/* Ripple effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255,255,255,.35);
  pointer-events: none;
  animation: ripple-anim .55s linear;
}
@keyframes ripple-anim { to { transform: scale(4); opacity: 0; } }

/* ── 5. LAYOUT UTILITIES ──────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--section-px);
}

.section-pad {
  padding: var(--sp-7) 0;
}
@media (max-width: 767px) {
  .section-pad { padding: var(--sp-6) 0; }
}

/* Scroll-reveal classes (IntersectionObserver — NOT GSAP) */
.fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .72s var(--ease), transform .72s var(--ease);
}
.fade-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity .72s var(--ease), transform .72s var(--ease);
}
.fade-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity .72s var(--ease), transform .72s var(--ease);
}
.scale-in {
  opacity: 0;
  transform: scale(.93);
  transition: opacity .6s var(--ease), transform .6s var(--ease-spring);
}
.fade-up.visible,
.fade-left.visible,
.fade-right.visible { opacity: 1; transform: translate(0); }
.scale-in.visible   { opacity: 1; transform: scale(1); }

[data-delay="1"] { transition-delay: .1s; }
[data-delay="2"] { transition-delay: .2s; }
[data-delay="3"] { transition-delay: .3s; }
[data-delay="4"] { transition-delay: .4s; }
[data-delay="5"] { transition-delay: .5s; }
[data-delay="6"] { transition-delay: .6s; }

/* ── 6. GLOBAL KEYFRAMES ──────────────────────────────────── */
@keyframes hero-float {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%     { transform: translateY(-14px) rotate(.5deg); }
}
@keyframes ring-pulse {
  0%   { opacity: 0; }
  20%  { opacity: 0.22; }
  100% { opacity: 0; }
}
@keyframes shimmer-grad {
  0%,100% { background-position: 0% center; }
  50%     { background-position: 200% center; }
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes wa-pulse {
  0%   { transform: scale(.94); opacity: .7; }
  100% { transform: scale(1.6);  opacity: 0;  }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin-once {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── 7. PAGE TRANSITION ───────────────────────────────────── */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--teal-ghost);
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-page-duration) var(--ease);
}
.page-transition.is-leaving { opacity: 1; }

/* ── 8. ACCESSIBILITY ─────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
