/* Shared design system for the Dr. Liran Hanan-Hochma site.
   Layout is done with Tailwind utilities in the markup; this file holds the
   brand tokens and the components that utilities can't express cleanly. */

:root {
  --ink: #14233F;
  --ink-2: #2B3E63;
  --paper: #F5F6F8;
  --surface: #FFFFFF;
  --tint: #DCE4EF;
  --brass: #B08D57;
  --brass-ink: #7A5E33;
  --muted: #55607A;

  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* Depth: base (flat) → elevated (cards) → floating (overlays, sticky UI) */
  --shadow-elevated: 0 1px 2px rgba(20, 35, 63, .05), 0 10px 28px -14px rgba(20, 35, 63, .18);
  --shadow-floating: 0 2px 6px rgba(20, 35, 63, .08), 0 28px 56px -20px rgba(20, 35, 63, .38);
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body.site { font-family: 'Assistant', sans-serif; font-size: 1.125rem; line-height: 1.7; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
::selection { background: var(--brass); color: var(--ink); }

/* ---------- Type ---------- */
.display, .h1, .h2, .h3 { font-family: 'Frank Ruhl Libre', serif; font-weight: 400; text-wrap: balance; }
.h1 { font-size: clamp(2.6rem, 6.2vw, 5.25rem); line-height: 1.04; letter-spacing: -0.03em; }
.h2 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.1; letter-spacing: -0.03em; }
.h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.2; letter-spacing: -0.015em; font-weight: 500; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.7; }
.eyebrow { font-size: .875rem; font-weight: 700; letter-spacing: .14em; color: var(--brass-ink); display: flex; align-items: center; gap: .75rem; }
.eyebrow::before { content: ''; width: 2rem; height: 1px; background: currentColor; }
.on-ink .eyebrow { color: var(--brass); }
.muted { color: var(--muted); }
.on-ink .muted { color: #B9C4D8; }
.latin { direction: ltr; unicode-bidi: isolate; }

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.25rem; padding: .75rem 1.75rem; border-radius: 999px; font-weight: 700; font-size: 1.0625rem; line-height: 1.2; border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .45s var(--spring), opacity .2s ease; }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn:focus-visible, .link:focus-visible, .nav-link:focus-visible, .card-link:focus-visible, .field:focus-visible, .chip input:focus-visible + span, .icon-btn:focus-visible, .skip:focus-visible, summary:focus-visible, .wa-float:focus-visible, .brand:focus-visible {
  outline: 3px solid var(--brass); outline-offset: 3px; }
.btn-brass { background: var(--brass); color: var(--ink); box-shadow: 0 1px 2px rgba(122, 94, 51, .3), 0 12px 24px -12px rgba(176, 141, 87, .7); }
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-elevated); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { opacity: .85; }

.link { font-weight: 700; color: var(--brass-ink); text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; border-radius: 4px; }
.on-ink .link { color: var(--brass); }
.link .arr { display: inline-block; transition: transform .45s var(--spring); }
.link:hover .arr, .card-link:hover .arr { transform: translateX(-6px); }
.link:active .arr { transform: translateX(-2px); }

/* ---------- Header ---------- */
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--ink); color: var(--paper); padding: .5rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus-visible { top: 1rem; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245, 246, 248, .92); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(20, 35, 63, .08); }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); border-radius: 8px; }
.brand svg { width: 2.9rem; height: 2.9rem; flex: none; transition: transform .6s var(--spring); }
.brand:hover svg { transform: rotate(-12deg); }
.brand:active svg { transform: rotate(-4deg) scale(.96); }
.brand-name { font-family: 'Frank Ruhl Libre', serif; font-weight: 500; font-size: 1.3rem; line-height: 1.1; letter-spacing: -0.01em; white-space: nowrap; }
.brand-sub { font-size: .7rem; font-weight: 700; letter-spacing: .13em; color: var(--brass-ink); margin-top: .2rem; white-space: nowrap; }
.on-ink .brand { color: var(--paper); }
.on-ink .brand-sub { color: var(--brass); }
.nav-link { position: relative; font-weight: 600; text-decoration: none; color: var(--ink); padding: .4rem .1rem; border-radius: 4px; }
.nav-link::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--brass); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link:active { opacity: .7; }
.icon-btn { width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 999px; border: 1.5px solid rgba(20, 35, 63, .2); background: transparent; color: var(--ink); cursor: pointer; transition: transform .4s var(--spring); }
.icon-btn:hover { transform: scale(1.06); }
.icon-btn:active { transform: scale(.94); }
.mobile-nav { display: none; }
.mobile-nav.open { display: block; }

/* ---------- Surfaces ---------- */
.on-ink { background: var(--ink); color: var(--paper); }
.ink-atmosphere { position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(60rem 36rem at 88% -10%, rgba(64, 92, 148, .55), transparent 60%),
    radial-gradient(40rem 30rem at 0% 105%, rgba(176, 141, 87, .22), transparent 65%),
    radial-gradient(30rem 22rem at 45% 55%, rgba(43, 62, 99, .6), transparent 70%),
    var(--ink); }
/* film grain */
.ink-atmosphere::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .22; mix-blend-mode: soft-light; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.tint-atmosphere { background:
    radial-gradient(44rem 28rem at 100% 0%, rgba(220, 228, 239, .9), transparent 65%),
    radial-gradient(36rem 26rem at 0% 100%, rgba(176, 141, 87, .12), transparent 60%),
    var(--paper); }

.card { background: var(--surface); border-radius: 1.25rem; box-shadow: var(--shadow-elevated); }
.card.on-ink { background-color: var(--ink); color: var(--paper); }
.card.ink-atmosphere { background: radial-gradient(34rem 22rem at 100% 0%, rgba(64, 92, 148, .55), transparent 65%), var(--ink); }
.card-link { display: block; text-decoration: none; color: inherit; transition: transform .5s var(--spring); }
.card-link:hover { transform: translateY(-6px); }
.card-link:active { transform: translateY(-2px) scale(.99); }
.rule-top { border-top: 1px solid rgba(20, 35, 63, .16); }
.on-ink .rule-top { border-top-color: rgba(245, 246, 248, .2); }

/* ---------- Photos: tinted with the brand ink so mixed sources sit together ---------- */
.photo { position: relative; overflow: hidden; isolation: isolate; background: var(--tint); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo::before { content: ''; position: absolute; inset: 0; z-index: 1; background: var(--ink-2); mix-blend-mode: multiply; opacity: .16; pointer-events: none; }
.photo::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(20, 35, 63, .6), transparent 50%); pointer-events: none; }
.photo--soft::after { background: linear-gradient(to top, rgba(20, 35, 63, .28), transparent 40%); }
.photo figcaption { position: absolute; z-index: 2; inset-inline: 1.25rem; bottom: 1rem; color: var(--paper); font-size: .95rem; font-weight: 600; line-height: 1.4; }
.arch { border-radius: 999px 999px 1.5rem 1.5rem; }

/* The iris ring from the logo, reused as a frame around the hero portrait */
.iris-ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(176, 141, 87, .7); pointer-events: none; }

/* ---------- Hero focus pull: a blurred copy fades out as the sharp line fades in ---------- */
.focus { position: relative; display: block; }
.focus .blur { position: absolute; inset: 0; filter: blur(16px); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .js .focus .sharp { opacity: 0; animation: fade-in 1.2s var(--ease-out) forwards; animation-delay: var(--d, .3s); }
  .js .focus .blur { opacity: .85; animation: fade-out 1.4s var(--ease-out) forwards; animation-delay: var(--d, .3s); }
  .js .rise { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease-out) forwards; animation-delay: var(--d, 1.2s); }
  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@keyframes fade-in { to { opacity: 1; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Lists ---------- */
.ticks { display: grid; gap: .6rem; }
.ticks li { position: relative; padding-inline-start: 1.6rem; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--brass); }

/* ---------- Timeline (about page) ---------- */
.timeline { position: relative; display: grid; gap: 2.25rem; padding-inline-start: 2rem; }
.timeline::before { content: ''; position: absolute; inset-block: .5rem; inset-inline-start: .3rem; width: 1px; background: rgba(20, 35, 63, .2); }
.timeline li { position: relative; }
.timeline li::before { content: ''; position: absolute; inset-inline-start: -2rem; top: .55rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--paper); border: 2px solid var(--brass); }
.timeline .year { font-family: 'Frank Ruhl Libre', serif; font-size: 1.35rem; font-weight: 500; color: var(--brass-ink); direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- Forms ---------- */
.label { display: block; font-weight: 700; font-size: 1rem; margin-bottom: .4rem; }
.field { width: 100%; min-height: 3.25rem; padding: .7rem 1rem; border-radius: .75rem; border: 1.5px solid rgba(20, 35, 63, .22); background: var(--surface); color: var(--ink); font: inherit; }
.field:hover { border-color: rgba(20, 35, 63, .45); }
.field::placeholder { color: #8B93A5; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-flex; min-height: 2.75rem; align-items: center; padding: .4rem 1.1rem; border-radius: 999px; border: 1.5px solid rgba(20, 35, 63, .22); background: var(--surface); font-weight: 600; transition: transform .35s var(--spring); }
.chip:hover span { transform: translateY(-2px); }
.chip:active span { transform: scale(.96); }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.form-error { color: #A3271F; font-weight: 600; font-size: 1rem; }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid rgba(20, 35, 63, .16); }
.faq details:last-child { border-bottom: 1px solid rgba(20, 35, 63, .16); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; padding: 1.4rem 0; font-family: 'Frank Ruhl Libre', serif; font-size: 1.35rem; font-weight: 500; border-radius: 6px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: 'Assistant', sans-serif; font-size: 1.75rem; font-weight: 300; color: var(--brass-ink); transition: transform .45s var(--spring); }
.faq summary:hover::after { transform: scale(1.25); }
.faq summary:active { opacity: .7; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.5rem; max-width: 62ch; color: var(--muted); }

/* ---------- Article body ---------- */
.prose { max-width: 66ch; }
.prose > * + * { margin-top: 1.35rem; }
.prose h2 { font-family: 'Frank Ruhl Libre', serif; font-weight: 500; font-size: 1.85rem; line-height: 1.2; letter-spacing: -0.02em; margin-top: 3rem; }
.prose ul { display: grid; gap: .6rem; padding-inline-start: 1.25rem; list-style: disc; }
.prose ul li::marker { color: var(--brass); }
.prose a { color: var(--brass-ink); font-weight: 700; text-underline-offset: 3px; }
.prose a:hover { opacity: .75; }
.prose strong { font-weight: 700; }
.callout { background: var(--tint); border-radius: 1rem; padding: 1.5rem 1.75rem; border-inline-start: 3px solid var(--brass); }

/* ---------- Placeholder marking (testimonials awaiting real quotes) ---------- */
.placeholder { border: 1.5px dashed rgba(20, 35, 63, .3); border-radius: 1.25rem; background: rgba(255, 255, 255, .55); }
.placeholder-badge { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .04em; background: var(--tint); color: var(--ink-2); border-radius: 999px; padding: .2rem .8rem; }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; z-index: 60; inset-inline-start: 1.25rem; bottom: 1.25rem; display: inline-flex; align-items: center; gap: .6rem; min-height: 3.5rem; padding: .6rem 1.25rem .6rem 1.1rem; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none; box-shadow: var(--shadow-floating); border: 1px solid rgba(176, 141, 87, .6); transition: transform .5s var(--spring); }
.wa-float:hover { transform: translateY(-4px); }
.wa-float:active { transform: scale(.96); }
.wa-float svg { width: 1.5rem; height: 1.5rem; color: var(--brass); }
@media (max-width: 640px) { .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .wa-float { padding: .6rem; width: 3.5rem; justify-content: center; } }
