/* === Ikigaii Planners — visual system === */
:root {
  /* Palette */
  --paper:    #FBF7F2;   /* warm ivory page */
  --paper-2:  #F6EFE7;   /* a half-step warmer for bands */
  --blush:    #F2E6E4;   /* soft section / card */
  --line:     #E7DDD2;   /* hairline */
  --ink:      #1C1A19;   /* primary text */
  --noir:     #0E0C0B;   /* cinematic surfaces */
  --muted:    #7C7470;   /* secondary text */
  --rose:     #C98B86;   /* primary accent */
  --rose-deep:#A56862;
  --gold:     #B08D57;   /* press / award only */
  --focus:    #C98B86;

  /* Type */
  --f-display: "Cormorant Garamond", "Cormorant", Garamond, "Apple Garamond", serif;
  --f-script:  "Italiana", "Cormorant Garamond", serif;
  --f-body:    "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); }
body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 350;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* RTL */
html[dir="rtl"] body { letter-spacing: 0; }

/* Layout primitives */
.wrap     { max-width: 1320px; margin: 0 auto; padding: 0 40px; }
.wrap-sm  { max-width: 960px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 720px){
  .wrap, .wrap-sm { padding: 0 22px; }
}

/* Type */
.display  { font-family: var(--f-display); font-weight: 400; line-height: 1.04; letter-spacing: -0.005em; }
.eyebrow  { font-family: var(--f-body); font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.rule     { width: 36px; height: 1px; background: var(--rose); display: inline-block; vertical-align: middle; }
.dot      { width: 4px; height: 4px; background: var(--rose); display: inline-block; border-radius: 50%; vertical-align: middle; }
.italic   { font-style: italic; }
.script   { font-family: var(--f-script); font-weight: 400; }
em.ikigai { font-family: var(--f-script); font-style: normal; color: var(--rose-deep); letter-spacing: 0.01em; }

h1,h2,h3,h4 { margin: 0; font-weight: 400; }
p { margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 600; border: 1px solid transparent;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.btn-primary    { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--rose-deep); }
.btn-ghost-ink  { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost-ink:hover { background: var(--ink); color: var(--paper); }
.btn-ghost-paper{ background: transparent; color: var(--paper); border-color: rgba(255,255,255,.6); }
.btn-ghost-paper:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-rose       { background: var(--rose); color: var(--paper); }
.btn-rose:hover { background: var(--rose-deep); }
.btn-text       { color: var(--ink); border-bottom: 1px solid var(--ink); padding: 4px 0; border-radius: 0; letter-spacing: 0.22em; font-size: 11px; }
.btn .arrow     { font-size: 14px; letter-spacing: 0; }

/* Section rhythm */
section { padding: 120px 0; }
@media (max-width: 720px){ section { padding: 72px 0; } }
section.tight { padding: 84px 0; }

/* Hairline section divider */
.hairline { height: 1px; background: var(--line); width: 100%; }

/* Card hover */
.cardlift { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.cardlift:hover { transform: translateY(-4px); }
.imghover img { transition: transform 1.4s cubic-bezier(.2,.7,.2,1), filter .6s ease; }
.imghover:hover img { transform: scale(1.04); }

/* Pretty text wrapping */
.pretty { text-wrap: pretty; }
.balance { text-wrap: balance; }

/* Consent ribbon */
.consent-ribbon {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted);
}
.consent-ribbon::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #5A8F6B; box-shadow: 0 0 0 4px rgba(90,143,107,.12);
}

/* Form */
.field {
  display: flex; flex-direction: column; gap: 6px;
}
.field label {
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); font-weight: 600;
}
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line);
  padding: 12px 0 12px; outline: none;
  border-radius: 0;
  transition: border-color .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-bottom-color: var(--rose);
}
.field textarea { resize: vertical; min-height: 90px; }

/* Marquee */
@keyframes marqueeX {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee { overflow: hidden; }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: marqueeX 38s linear infinite; }

/* RTL fixes for marquee */
html[dir="rtl"] .marquee-track { animation-direction: reverse; }

/* Fade in */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeUp .8s cubic-bezier(.2,.7,.2,1) both; }

/* Lightbox */
.lightbox-bg {
  position: fixed; inset: 0; background: rgba(14,12,11,.92);
  z-index: 90; display: grid; place-items: center;
  animation: fadeUp .3s ease both;
}

/* Sticky nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 242, 0.86);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(251, 247, 242, 0.94); }

/* WhatsApp FAB */
.fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366; color: #fff;
  padding: 14px 18px 14px 14px;
  border-radius: 999px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  box-shadow: 0 14px 40px rgba(37, 211, 102, 0.34);
}
html[dir="rtl"] .fab { right: auto; left: 28px; }

/* Grain texture for cinematic surfaces */
.noir {
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(201,139,134,0.20), transparent 60%),
    radial-gradient(900px 500px at 90% 100%, rgba(176,141,87,0.14), transparent 60%),
    var(--noir);
  color: var(--paper);
}

/* image placeholder striped */
.placeholder {
  background:
    repeating-linear-gradient(135deg, #f2e6e4 0 14px, #ede0dc 14px 28px);
  display: grid; place-items: center;
  color: var(--rose-deep);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
}

/* Caption */
.cap {
  font-family: var(--f-mono);
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}

/* Filter chips */
.chip {
  font: 500 11px/1 var(--f-body); letter-spacing: 0.22em; text-transform: uppercase;
  padding: 10px 16px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); background: transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Tag */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 10px/1 var(--f-body); letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted);
}
.tag::before { content: ""; width: 14px; height: 1px; background: var(--rose); }

/* Mobile nav */
.mobile-nav-btn { display: none; }
@media (max-width: 980px){
  .mobile-nav-btn { display: inline-flex; }
  .nav .desktop-only { display: none; }
}
