/* ============================================================
   Clube dos 15 — Design System Tokens & Utilities
   Source of truth: design-system.html (Museum Exhibition)
   Refactored by Agência Ideia 4.
   ============================================================ */

/* ── Custom Properties ───────────────────────────────────── */
:root {
  --beige:       #E6E3D6;
  --beige-alt:   #EAE8DE;
  --sage:        #9EA08F;
  --ink:         #1c1917;
  --ink-muted:   #57534e;
  --ink-faint:   #78716c;
  --lime:        #D4F268;

  --font-serif:  'Newsreader', Georgia, serif;
  --font-sans:   'Instrument Sans', 'Helvetica Neue', sans-serif;

  --radius-pill: 9999px;
  --radius-card: 1.5rem;
  --radius-arch: 9rem 9rem 2rem 2rem;

  --shadow-sm:   0 4px 16px rgba(28, 25, 23, .06);
  --shadow-md:   0 12px 32px rgba(28, 25, 23, .10);
  --shadow-lg:   0 24px 56px rgba(28, 25, 23, .16);
  --shadow-dark: 0 24px 56px rgba(0, 0, 0, .40);

  --transition-base: .3s cubic-bezier(.4, 0, .2, 1);
  --transition-slow: .6s cubic-bezier(.4, 0, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

/* ── Selection ───────────────────────────────────────────── */
::selection {
  background: var(--ink);
  color: var(--beige);
}

/* ── Fluid Typography ────────────────────────────────────── */
.heading-hero {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: .93;
  letter-spacing: -.02em;
  color: var(--ink);
  /* Fluid: 2.5rem (40px) → 4.5rem (72px) across 375px–1280px */
  font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}

.heading-section {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: .96;
  letter-spacing: -.02em;
  /* Fluid: 2rem → 3.75rem */
  font-size: clamp(2rem, 1rem + 3.5vw, 3.75rem);
}

.heading-quote {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: .98;
  letter-spacing: -.02em;
  /* Fluid: 2.25rem → 5rem */
  font-size: clamp(2.25rem, 1rem + 5vw, 5rem);
}

/* ── Arched Image Card ──────────────────────────────────── */
.arched {
  border-radius: var(--radius-arch);
  overflow: hidden;
}

/* ── Serrated Ticket Edge ───────────────────────────────── */
.serrated {
  height: 14px;
  width: 100%;
  background-color: var(--beige);
  mask-image: radial-gradient(circle at 10px 0, transparent 0, transparent 6px, black 6px);
  mask-size: 20px 14px;
  mask-repeat: repeat-x;
  -webkit-mask-image: radial-gradient(circle at 10px 0, transparent 0, transparent 6px, black 6px);
  -webkit-mask-size: 20px 14px;
  -webkit-mask-repeat: repeat-x;
}

.serrated-dark {
  height: 14px;
  width: 100%;
  background-color: var(--ink);
  mask-image: radial-gradient(circle at 10px 0, transparent 0, transparent 6px, black 6px);
  mask-size: 20px 14px;
  mask-repeat: repeat-x;
  -webkit-mask-image: radial-gradient(circle at 10px 0, transparent 0, transparent 6px, black 6px);
  -webkit-mask-size: 20px 14px;
  -webkit-mask-repeat: repeat-x;
}

/* ── Ticket Notch Divider ────────────────────────────────── */
.notch-line {
  position: relative;
  display: flex;
  align-items: center;
}
.notch-line::before,
.notch-line::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--beige);
  top: 50%;
  transform: translateY(-50%);
}
.notch-line::before { left: -10px; }
.notch-line::after  { right: -10px; }
.notch-inner {
  flex: 1;
  border-top: 1.5px dashed rgba(28, 25, 23, .18);
  margin: 0 20px;
}

/* ── Pulse Animation ─────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .35; }
}
.pulse {
  animation: pulse 2.4s cubic-bezier(.4, 0, .6, 1) infinite;
}

/* ── Float Card (hero floating tickets) ──────────────────── */
.float-card {
  transition: transform var(--transition-slow);
}
.float-card:hover {
  transform: rotate(0deg) !important;
}

/* ── Magnetic / Soft-Lift Button Effect ──────────────────── */
.lift {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  will-change: transform;
}
.lift:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-lg);
}
.lift:active {
  transform: translateY(-1px) scale(.99);
  box-shadow: var(--shadow-md);
}

/* Primary CTA magnetic effect */
.btn-magnetic {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 48px; /* Touch target */
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: .9375rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    transform .25s cubic-bezier(.4, 0, .2, 1),
    box-shadow .3s cubic-bezier(.4, 0, .2, 1),
    background-color .25s ease;
  will-change: transform;
}
.btn-magnetic:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 20px 48px rgba(28, 25, 23, .22);
}
.btn-magnetic:active {
  transform: translateY(0) scale(.98);
  box-shadow: 0 4px 16px rgba(28, 25, 23, .12);
}

.btn-dark {
  background-color: var(--ink);
  color: var(--beige);
}
.btn-dark:hover {
  background-color: #292524;
}

.btn-light {
  background-color: var(--beige);
  color: var(--ink);
}
.btn-light:hover {
  background-color: #dddace;
}

/* ── Scale on Hover (nav CTA) ────────────────────────────── */
.scale-btn {
  transition: transform .2s ease;
  min-height: 48px;
}
.scale-btn:hover  { transform: scale(1.04); }
.scale-btn:active { transform: scale(.97); }

/* ── Image Container with Zoom ───────────────────────────── */
.img-scale {
  overflow: hidden;
}
.img-scale > img,
.img-scale img {
  transition: transform var(--transition-slow), filter var(--transition-slow);
}
.img-scale:hover img {
  transform: scale(1.04);
  filter: grayscale(0%) !important;
}

/* ── Ornament Divider ────────────────────────────────────── */
.ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--ink-faint);
}
.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(28, 25, 23, .12);
}

/* ── Logo Cloud — Grayscale to Color ─────────────────────── */
.logo-item {
  opacity: .55;
  filter: grayscale(1) brightness(0.7);
  transition: opacity .4s ease, filter .4s ease;
}
.logo-item:hover,
.group:hover .logo-item {
  opacity: 1;
  filter: grayscale(0) brightness(1);
}

/* ── Scroll-Triggered Entry Animations ───────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Elements hidden until observer triggers them */
[data-animate] {
  opacity: 0;
}

.animate-fade-up {
  animation: fadeUp .7s cubic-bezier(.4, 0, .2, 1) both;
}
.animate-fade-in {
  animation: fadeIn .6s ease both;
}

/* Staggered child delays */
.delay-100 { animation-delay: .1s; }
.delay-200 { animation-delay: .2s; }
.delay-300 { animation-delay: .3s; }
.delay-400 { animation-delay: .4s; }
.delay-500 { animation-delay: .5s; }
.delay-600 { animation-delay: .6s; }

/* ── Form Inputs ─────────────────────────────────────────── */
.form-input,
.form-select {
  width: 100%;
  padding: .95rem 1.25rem .95rem 3rem;
  background: rgba(255, 255, 255, .5);
  border: 1px solid rgba(120, 113, 108, .3);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: .9375rem;
  color: var(--ink);
  min-height: 48px; /* Touch target */
  transition:
    background var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-input::placeholder,
.form-select::placeholder {
  color: var(--ink-faint);
}
.form-input:focus,
.form-select:focus {
  background: #fff;
  border-color: rgba(28, 25, 23, .3);
  box-shadow: 0 0 0 3px rgba(28, 25, 23, .06);
}

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2378716c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  padding-right: 3rem;
}

/* ── Mobile Responsiveness ───────────────────────────────── */
@media (max-width: 767px) {
  /* Arched card scales down */
  .arched {
    border-radius: 6rem 6rem 1.5rem 1.5rem;
  }

  /* Floating ticket repositioned for small screens */
  .float-card-invest {
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 100% !important;
    margin-top: 1rem;
  }

  /* Ticket component full width & centered */
  .ticket-centered {
    max-width: 100%;
  }

  /* Three-pillar grid stacks to 1 col on very small */
  .pillar-grid {
    grid-template-columns: 1fr;
  }

  /* Logo cloud wraps nicely */
  .logo-cloud {
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .pillar-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}