/* FLORAÉ — shared design tokens and components */
:root {
  --cream: #faf6f0;
  --ivory: #f3ece2;
  --sand: #e7dccd;
  --taupe: #8a7666;
  --taupe-deep: #5c4d42;
  --cocoa: #2e2622;
  --ink: #2a2320;
  --muted: #7d7067;
  --line: #e4d9cb;
  --line-strong: #d3c4b1;
  --gold: #b48c58;
  --gold-soft: #d8bf96;
  --gold-ink: #8a6a3d;
  --sage: #7f8f72;
  --rose: #c98b86;
  --white: #fffdfa;

  --ok: #4f7a5a;
  --ok-bg: #e8f0e6;
  --warn: #9a6b1f;
  --warn-bg: #f7ecd6;
  --bad: #a3433c;
  --bad-bg: #f6e1de;
  --info: #4f6a86;
  --info-bg: #e4ebf2;

  --serif: 'Frank Ruhl Libre', 'David Libre', Georgia, serif;
  --latin: 'Cormorant Garamond', 'Frank Ruhl Libre', Georgia, serif;
  --sans: 'Assistant', 'Segoe UI', 'Arial Hebrew', system-ui, sans-serif;

  --r-sm: 6px;
  --r: 12px;
  --r-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(46, 38, 34, .06);
  --shadow: 0 10px 30px -12px rgba(46, 38, 34, .22);
  --shadow-lg: 0 30px 60px -20px rgba(46, 38, 34, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold-soft); color: var(--cocoa); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
/* Static (Netlify) build has no server: hide links to the personal area. */
html.fl-static a[href^="/account"] { display: none !important; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Typography */
.eyebrow {
  font-family: var(--latin);
  letter-spacing: .32em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--gold-ink);
  font-weight: 600;
}
.eyebrow-he { letter-spacing: .12em; font-size: 14px; color: var(--gold-ink); font-weight: 600; }
.display { font-family: var(--serif); font-weight: 300; line-height: 1.12; letter-spacing: -.01em; margin: 0; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0 0 .4em; line-height: 1.2; }
.muted { color: var(--muted); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.num { font-variant-numeric: tabular-nums; }

/* Brand mark */
.brand { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--cocoa); line-height: 1; }
.brand svg { width: 34px; height: 22px; color: var(--gold); margin-bottom: 4px; }
/* Logo: spaced capitals in Marcellus (font loaded for these letters only). The negative end margin
   cancels the spacing after the last letter, so the word stays centred under the lotus. */
.brand-word { font-family: 'Marcellus', var(--latin); font-weight: 400; font-size: 30px; line-height: 1; letter-spacing: .2em; margin-right: -.2em; direction: ltr; white-space: nowrap; }
.brand-sub { font-family: var(--latin); font-size: 9.5px; letter-spacing: .42em; margin-top: 5px; color: var(--taupe); direction: ltr; margin-inline-end: -.42em; }

/* Buttons */
.btn {
  --b-bg: var(--cocoa); --b-fg: var(--cream); --b-bd: var(--cocoa);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 1.6em;
  border-radius: 999px; border: 1px solid var(--b-bd);
  background: var(--b-bg); color: var(--b-fg);
  font-weight: 600; font-size: 16px; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.is-loading { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
/* Icons: always sized explicitly so an SVG never stretches to its container. */
[data-icon] { display: inline-flex; align-items: center; justify-content: center; flex: none; }
[data-icon] svg { width: 100%; height: 100%; display: block; }
.btn > svg, .btn [data-icon] { width: 17px; height: 17px; flex: none; }
.btn-sm > svg, .btn-sm [data-icon] { width: 15px; height: 15px; }
.btn-gold { --b-bg: var(--gold); --b-bd: var(--gold); --b-fg: #fff; }
.btn-gold:hover { --b-bg: var(--gold-ink); --b-bd: var(--gold-ink); }
.btn-ghost { --b-bg: transparent; --b-fg: var(--cocoa); --b-bd: var(--line-strong); }
.btn-ghost:hover { --b-bd: var(--cocoa); }
.btn-light { --b-bg: var(--cream); --b-fg: var(--cocoa); --b-bd: var(--cream); }
.btn-wa { --b-bg: #1f8f5f; --b-bd: #1f8f5f; --b-fg: #fff; }
.btn-wa:hover { --b-bg: #187a50; --b-bd: #187a50; }
.btn-danger { --b-bg: transparent; --b-fg: var(--bad); --b-bd: #e3bab5; }
.btn-danger:hover { --b-bg: var(--bad-bg); }
.btn-sm { min-height: 36px; padding: 0 1em; font-size: 14px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--gold-ink); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Forms */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label, .label { font-size: 14px; font-weight: 600; color: var(--taupe-deep); }
.field .hint { font-size: 13px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--r);
  background: var(--white); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(180, 140, 88, .16); }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--bad); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238a7666' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; padding-left: 36px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--gold); flex: none; }
.row-2 { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.form-error { background: var(--bad-bg); color: var(--bad); border-radius: var(--r); padding: 12px 14px; font-size: 15px; margin-bottom: 16px; }

/* Choice chips / segmented */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line-strong); background: var(--white); border-radius: 999px;
  min-height: 42px; padding: 0 18px; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--taupe-deep);
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--taupe); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--cocoa); color: var(--cream); border-color: var(--cocoa); }
.chip[disabled] { opacity: .4; cursor: not-allowed; }

/* Status pills */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; background: var(--ivory); color: var(--taupe-deep); }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-bad { background: var(--bad-bg); color: var(--bad); }
.pill-info { background: var(--info-bg); color: var(--info); }
.pill-muted { background: #efeae4; color: #8d8178; }

/* Cards */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(34, 27, 24, .55);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity .25s var(--ease); backdrop-filter: blur(3px);
}
.modal-backdrop.is-open { opacity: 1; }
.modal {
  background: var(--cream); width: 100%; max-width: 560px; max-height: 92vh; overflow: auto;
  border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 26px 22px 24px; position: relative;
  transform: translateY(24px); transition: transform .3s var(--ease); box-shadow: var(--shadow-lg);
}
.modal-backdrop.is-open .modal { transform: none; }
.modal-wide { max-width: 920px; }
@media (min-width: 700px) {
  .modal-backdrop { align-items: center; padding: 24px; }
  .modal { border-radius: var(--r-lg); padding: 32px; }
}
.modal-close { position: absolute; top: 14px; inset-inline-start: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ivory); cursor: pointer; display: grid; place-items: center; z-index: 2; }
.modal-close:hover { background: var(--sand); }
.modal h2 { font-size: 26px; margin-inline-end: 44px; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

/* Toast */
.toasts { position: fixed; z-index: 200; bottom: 20px; inset-inline: 16px; display: grid; justify-items: center; gap: 8px; pointer-events: none; }
.toast { background: var(--cocoa); color: var(--cream); padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow); font-weight: 600; font-size: 15px; animation: toast-in .3s var(--ease); max-width: 560px; text-align: center; }
.toast.is-error { background: var(--bad); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

.spinner { width: 22px; height: 22px; border: 2px solid var(--line-strong); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-block { display: grid; place-items: center; padding: 60px 0; }

.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.divider { height: 1px; background: var(--line); border: 0; margin: 20px 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
