/* ============================================================
   APONI HEALTH — Design System
   Light gray · near-black ink · vivid green · orchid pink
   Type: Inter throughout
   ============================================================ */

:root {
  /* palette */
  --cream:      #EAEAE8;
  --cream-2:    #E0E0DD;
  --paper:      #F7F7F5;
  --ink:        #1B211D;
  --ink-soft:   #57605A;
  --ink-faint:  #899089;
  --line:       #D6D6D2;
  --line-soft:  #E2E2DE;

  --pine:       #1C221D;
  --pine-deep:  #101411;
  --pine-soft:  #2A2E2B;
  --sage:      #FFD338;
  --sage-soft: #FFEBA6;
  --sage-mist: #FFF6DA;

  --clay:      #2E5BFF;
  --clay-deep: #1E44D6;
  --clay-soft: #C9D7FF;
  --clay-mist: #E8EEFF;

  --gold:       #FFC819;
  --gold-soft:  #FFF1C4;

  --blue-soft:  #E8EEFF;
  --red:        #B3402F;
  --red-soft:   #F6DFD9;

  /* type */
  --serif: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans:  "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;

  /* shape */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;

  --ease: cubic-bezier(.22,.8,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--sage); color: var(--pine-deep); }
em, i, blockquote, cite { font-style: normal; }

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

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.015em;
  line-height: 1.12;
  color: var(--ink);
}

.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600; font-size: 15.5px; letter-spacing: .01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
  user-select: none;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; }

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

.btn-clay { background: var(--clay); color: #FFFFFF; }
.btn-clay:hover { background: var(--clay-deep); transform: translateY(-2px); }

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

.btn-soft { background: var(--sage-soft); color: var(--pine); }
.btn-soft:hover { background: var(--sage); }

.btn-light { background: var(--paper); color: var(--pine); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-light:hover { border-color: var(--pine); transform: translateY(-2px); }

.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 17px 36px; font-size: 16.5px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-block { width: 100%; }

/* ---------- badges / chips ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--clay);
}

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  background: var(--sage-soft); color: var(--pine);
}
.pill.clay { background: var(--clay-mist); color: var(--clay-deep); }
.pill.gold { background: var(--gold-soft); color: #A87E00; }
.pill.blue { background: var(--blue-soft); color: #1E44D6; }
.pill.red  { background: var(--red-soft);  color: var(--red); }

.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line-soft); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -.01em; color: var(--pine-deep); }
.brand-mark { width: 36px; height: 36px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; font-weight: 550; color: var(--ink-soft); transition: color .2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--pine-deep); }
.nav-links a.active::after { content:""; position:absolute; left:0; right:0; bottom:-6px; height:2px; border-radius:2px; background: var(--clay); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* ---------- cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.card-hover { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; }
.card-hover:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 650; color: var(--ink); letter-spacing: .01em; }
.field .hint { font-size: 12.5px; color: var(--ink-faint); }
.input, textarea.input, select.input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: #F7F7F5;
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.input:focus { border-color: var(--pine); box-shadow: 0 0 0 4px rgba(46,91,255,.18); }
.input::placeholder { color: var(--ink-faint); }
textarea.input { resize: vertical; min-height: 110px; line-height: 1.55; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2357605A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

/* ---------- misc ---------- */
.divider { height: 1px; background: var(--line-soft); border: none; }

.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; letter-spacing: .02em;
  color: #fff; flex: none;
  font-family: var(--sans);
}
.avatar.lg { width: 60px; height: 60px; font-size: 19px; }
.avatar.sm { width: 34px; height: 34px; font-size: 12.5px; }

/* service tint helpers */
.tint-chiro  { background: var(--blue-soft); color: #1E44D6; }
.tint-acu    { background: var(--gold-soft); color: #A87E00; }
.tint-massage{ background: var(--clay-soft); color: var(--clay-deep); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ---------- toast ---------- */
#toast-root { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--pine-deep); color: var(--cream);
  padding: 13px 22px; border-radius: 999px;
  font-size: 14.5px; font-weight: 550;
  box-shadow: var(--shadow-lg);
  animation: toast-in .45s var(--ease);
}
.toast svg { width: 17px; height: 17px; color: var(--sage); }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.95); } }

/* ---------- modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20,38,29,.45);
  backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: fade-in .25s ease;
}
.modal {
  background: var(--paper); border-radius: var(--r-lg);
  max-width: 520px; width: 100%; max-height: 88vh; overflow: auto;
  padding: 34px; box-shadow: var(--shadow-lg);
  animation: modal-in .4s var(--ease);
}
@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(22px) scale(.97); } }

/* ---------- footer ---------- */
.footer { background: var(--pine-deep); color: #A5ABA6; margin-top: 0; }
.footer a { transition: color .2s; }
.footer a:hover { color: #fff; }

/* ---------- scrollbar (subtle) ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #C9C9C5; border-radius: 99px; border: 2px solid var(--cream); }
::-webkit-scrollbar-thumb:hover { background: #B0B0AB; }

/* ---------- responsive nav ---------- */
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; align-items: center; justify-content: center; }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-ghost { display: none; }
  .nav-mobile {
    position: fixed; top: 76px; left: 0; right: 0; z-index: 99;
    background: var(--paper); border-bottom: 1px solid var(--line);
    display: flex; flex-direction: column; padding: 12px 24px 20px;
    box-shadow: var(--shadow-md);
  }
  .nav-mobile a { padding: 13px 4px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line-soft); }
}
