/* ---------------------------------------------------------------------- */
/* Design tokens                                                          */
/* ---------------------------------------------------------------------- */
:root {
  --ink: #241f1c;
  --ink-soft: #746657;
  --ink-faint: #a99c8c;
  --paper: #fbf5ee;
  --paper-alt: #f3e9dd;
  --card: #fffdfa;
  --primary: #7d2a35;
  --primary-dark: #5f1f28;
  --primary-tint: #f4e3e0;
  --primary-tint-2: #ece0d2;
  --gold: #ad8a4e;
  --gold-light: #e9dcc0;
  --sage: #6f7f5f;
  --sage-tint: #e6ebe0;
  --border: #e6d9c8;
  --border-soft: #efe4d5;
  --danger: #a3384a;
  --danger-tint: #f6e4e3;
  --pending: #93701f;
  --pending-tint: #f4ecd6;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(36, 31, 28, 0.06), 0 1px 1px rgba(36, 31, 28, 0.04);
  --shadow-md: 0 10px 30px -12px rgba(36, 31, 28, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(36, 31, 28, 0.28);
  --shadow-xl: 0 32px 70px -18px rgba(36, 31, 28, 0.32);
  --shadow-glow: 0 14px 32px -10px rgba(125, 42, 53, 0.38);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Frank Ruhl Libre", "Iowan Old Style", Georgia, serif;
  --font-body: "Assistant", "Segoe UI", Tahoma, Arial, sans-serif;
}

/* ---------------------------------------------------------------------- */
/* Reset + base                                                           */
/* ---------------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  background-image:
    radial-gradient(circle at 8% 0%, rgba(173, 138, 78, 0.08), transparent 40%),
    radial-gradient(circle at 100% 20%, rgba(125, 42, 53, 0.05), transparent 45%);
  background-attachment: fixed;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

::selection { background: var(--gold-light); color: var(--ink); }

/* ---------------------------------------------------------------------- */
/* Layout helpers                                                         */
/* ---------------------------------------------------------------------- */
.container { max-width: 1000px; margin-inline: auto; padding-inline: 24px; }
.narrow { max-width: 620px; }

/* ---------------------------------------------------------------------- */
/* Header                                                                 */
/* ---------------------------------------------------------------------- */
header.site {
  background: rgba(251, 245, 238, 0.86);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 30;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
header.site.scrolled {
  box-shadow: 0 8px 24px -16px rgba(36, 31, 28, 0.35);
  border-bottom-color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--primary);
}
.brand svg { width: 22px; height: 22px; color: var(--gold); }
.brand span {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.nav-links > a, .nav-links > button.linklike {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 999px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links > a:hover, .nav-links > button.linklike:hover { background: var(--primary-tint); color: var(--primary-dark); }

.nav-links a.signup-link { background: var(--primary); color: #fff !important; box-shadow: 0 6px 16px -8px rgba(125, 42, 53, 0.55); }
.nav-links a.signup-link:hover { background: var(--primary-dark); transform: translateY(-1px); }

.lang-toggle {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.lang-toggle:hover { background: var(--gold-light); border-color: var(--gold); color: var(--primary-dark); box-shadow: var(--shadow-sm); }

/* ---------------------------------------------------------------------- */
/* Mobile nav toggle                                                      */
/* ---------------------------------------------------------------------- */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle:hover { background: var(--gold-light); border-color: var(--gold); }

/* ---------------------------------------------------------------------- */
/* Account dropdown                                                       */
/* ---------------------------------------------------------------------- */
.user-menu { position: relative; }
.user-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
  transition: background 0.15s ease, border-color 0.15s ease;
}
[dir="rtl"] .user-menu-trigger { padding: 6px 6px 6px 12px; }
.user-menu-trigger:hover, .user-menu-trigger[aria-expanded="true"] { background: var(--primary-tint); border-color: var(--border-soft); }
.user-menu-trigger .avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.user-menu-trigger .user-name { font-size: 0.92rem; font-weight: 700; }
.user-menu-trigger .chevron { width: 14px; height: 14px; color: var(--ink-soft); transition: transform 0.2s ease; }
.user-menu-trigger[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.user-menu-dropdown {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 10px);
  min-width: 190px;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.16s var(--ease-out), transform 0.16s var(--ease-out);
  z-index: 40;
}
.user-menu-dropdown.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.user-menu-dropdown a, .user-menu-dropdown button.linklike {
  display: block;
  width: 100%;
  text-align: start;
  padding: 10px 12px;
  border-radius: 9px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s ease;
}
.user-menu-dropdown a:hover, .user-menu-dropdown button.linklike:hover { background: var(--primary-tint); color: var(--primary-dark); }
.user-menu-dropdown form { margin: 0; }

@media (max-width: 780px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--card);
    border-bottom: 1px solid var(--border-soft);
    padding: 10px 20px 16px;
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.28s var(--ease-out), opacity 0.2s ease;
  }
  .nav-links.open { max-height: 420px; opacity: 1; }
  .nav-links > a, .nav-links > button.linklike, .lang-toggle { width: 100%; text-align: start; }
  .user-menu { width: 100%; }
  .user-menu-trigger { width: 100%; justify-content: flex-start; }
  .user-menu-dropdown { position: static; box-shadow: none; border: none; opacity: 1; transform: none; pointer-events: auto; max-height: 0; padding: 0; overflow: hidden; transition: max-height 0.2s ease; }
  .user-menu-dropdown.open { max-height: 200px; padding: 4px 0 0; }
}

/* ---------------------------------------------------------------------- */
/* Type scale                                                             */
/* ---------------------------------------------------------------------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; color: var(--ink); letter-spacing: 0.005em; }
h1 { font-size: 2.1rem; margin: 0 0 10px; line-height: 1.15; }
h2 { font-size: 1.55rem; margin: 0 0 14px; }
h3 { font-size: 1.15rem; margin: 0 0 6px; }
p.lead { color: var(--ink-soft); font-size: 1.08rem; }

main { padding-block: 44px 72px; min-height: 60vh; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before, .eyebrow::after { content: ""; width: 22px; height: 1px; background: var(--gold); }

/* ---------------------------------------------------------------------- */
/* Hero                                                                   */
/* ---------------------------------------------------------------------- */
.hero {
  text-align: center;
  padding-block: 56px 30px;
  position: relative;
}
.hero .tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--primary);
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin-bottom: 18px; }
.hero .lead { max-width: 560px; margin-inline: auto; }
.hero .actions { display: flex; gap: 14px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.hero .flourish { width: 120px; height: auto; color: var(--gold); margin-inline: auto; margin-bottom: 6px; opacity: 0.85; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-block: 52px; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-tint), var(--gold-light));
  color: var(--primary-dark);
  font-weight: 700;
  font-family: var(--font-display);
  margin-bottom: 14px;
}
.step p { color: var(--ink-soft); margin: 0; }

.section-panel {
  background: linear-gradient(155deg, var(--card), var(--paper-alt));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}
.section-panel h2 { margin-bottom: 8px; }
.section-panel p { color: var(--ink-soft); margin-bottom: 20px; max-width: 60ch; }

/* ---------------------------------------------------------------------- */
/* Cards                                                                  */
/* ---------------------------------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
  transition: box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out), border-color 0.25s ease;
}
a.card:hover, .list .card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--border); }

/* ---------------------------------------------------------------------- */
/* Buttons                                                                */
/* ---------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -8px rgba(125, 42, 53, 0.55); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 6px 14px -8px rgba(125, 42, 53, 0.5); }
.btn-secondary { background: var(--card); color: var(--ink); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--gold); color: var(--primary-dark); background: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary:active { transform: translateY(0); }
.btn-danger { background: #fff; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------------------------------------------------------------------- */
/* Forms                                                                  */
/* ---------------------------------------------------------------------- */
form .field { margin-bottom: 18px; }
label { display: block; font-weight: 700; margin-bottom: 7px; font-size: 0.9rem; color: var(--ink); }
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="date"], input[type="tel"], textarea, select {
  width: 100%;
  padding: 12px 15px;
  border-radius: 11px;
  border: 1.5px solid var(--border);
  font-size: 1rem;
  font-family: inherit;
  background: var(--card);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea { resize: vertical; min-height: 100px; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-tint);
}
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.hint { color: var(--ink-soft); font-size: 0.85rem; margin-top: 5px; }

.checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
@media (max-width: 560px) { .checkbox-grid { grid-template-columns: 1fr; } }
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.checkbox-item:hover { box-shadow: var(--shadow-sm); border-color: var(--gold); }
.checkbox-item:has(input:checked) { border-color: var(--gold); background: var(--gold-light); box-shadow: var(--shadow-sm); }
.checkbox-item input { width: auto; accent-color: var(--primary); }
.checkbox-item label { margin: 0; font-weight: 500; cursor: pointer; font-size: 0.92rem; }
.checkbox-item label svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }

/* ---------------------------------------------------------------------- */
/* Badges + pills                                                         */
/* ---------------------------------------------------------------------- */
.badge {
  display: inline-block;
  padding: 4px 13px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.badge-open { background: var(--sage-tint); color: var(--sage); }
.badge-closed { background: #efe9e2; color: var(--ink-faint); }
.badge-pending { background: var(--pending-tint); color: var(--pending); }
.badge-accepted { background: var(--sage-tint); color: var(--sage); }
.badge-declined { background: var(--danger-tint); color: var(--danger); }

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px 5px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #93733c);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}
[dir="rtl"] .category-pill { padding: 5px 10px 5px 14px; }
.category-pill svg { width: 14px; height: 14px; }

/* ---------------------------------------------------------------------- */
/* Lists / meta                                                           */
/* ---------------------------------------------------------------------- */
.list { display: flex; flex-direction: column; gap: 16px; }

.request-meta { color: var(--ink-soft); font-size: 0.9rem; margin: 8px 0 12px; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.request-meta span { display: inline-flex; align-items: center; }

.photo-grid { display: flex; gap: 10px; flex-wrap: wrap; margin-block: 12px; }
.photo-grid img {
  width: 104px;
  height: 104px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}
.photo-grid img:hover { transform: scale(1.04); }

/* ---------------------------------------------------------------------- */
/* Category grid                                                          */
/* ---------------------------------------------------------------------- */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-block: 12px; }
@media (max-width: 780px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 22px 14px;
  text-align: center;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.category-card svg {
  width: 26px;
  height: 26px;
  color: var(--primary);
  transition: color 0.18s ease, transform 0.18s ease;
}
.category-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--gold);
  background: linear-gradient(155deg, var(--card), var(--primary-tint));
}
.category-card:hover svg { color: var(--gold); transform: scale(1.1); }

/* ---------------------------------------------------------------------- */
/* Alerts                                                                 */
/* ---------------------------------------------------------------------- */
.alert { padding: 13px 18px; border-radius: 12px; margin-bottom: 20px; font-size: 0.92rem; font-weight: 600; border: 1px solid transparent; }
.alert-error { background: var(--danger-tint); color: var(--danger); border-color: #edc7c5; }
.alert-success { background: var(--sage-tint); color: var(--sage); border-color: #d4dfc9; }

/* ---------------------------------------------------------------------- */
/* Quotes                                                                 */
/* ---------------------------------------------------------------------- */
.quote-row {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.quote-row:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.quote-price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--primary); }

/* ---------------------------------------------------------------------- */
/* Footer                                                                 */
/* ---------------------------------------------------------------------- */
footer.site {
  border-top: 1px solid var(--border-soft);
  padding-block: 30px;
  color: var(--ink-faint);
  font-size: 0.85rem;
  text-align: center;
}
footer.site .brand-echo { font-family: var(--font-display); color: var(--primary); font-weight: 600; }

/* ---------------------------------------------------------------------- */
/* Empty states                                                           */
/* ---------------------------------------------------------------------- */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* ---------------------------------------------------------------------- */
/* Role picker (signup)                                                   */
/* ---------------------------------------------------------------------- */
.role-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-block: 24px; }
@media (max-width: 560px) { .role-cards { grid-template-columns: 1fr; } }
.role-card {
  position: relative;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 16px;
  cursor: pointer;
  text-align: center;
  background: var(--card);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.role-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.role-card input { position: absolute; opacity: 0; }
.role-card.selected, .role-card:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-tint);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* ---------------------------------------------------------------------- */
/* Small utility                                                          */
/* ---------------------------------------------------------------------- */
.divider { border: none; border-top: 1px solid var(--border-soft); margin-block: 40px; }
.text-center { text-align: center; }
.mt-lg { margin-top: 32px; }

/* ---------------------------------------------------------------------- */
/* Scroll reveal                                                          */
/* ---------------------------------------------------------------------- */
.has-js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.has-js .reveal.in-view { opacity: 1; transform: none; }

/* ---------------------------------------------------------------------- */
/* FAQ accordion                                                          */
/* ---------------------------------------------------------------------- */
.faq-section { margin-block: 56px; }
.faq-section .eyebrow { margin-bottom: 8px; }
.faq-section h2 { margin-bottom: 26px; }
.accordion { display: flex; flex-direction: column; gap: 10px; max-width: 720px; margin-inline: auto; }
.accordion-item {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.accordion-item.open, .accordion-item:has(.accordion-trigger:hover) { box-shadow: var(--shadow-md); }
.accordion-item.open { border-color: var(--gold); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: start;
  padding: 18px 22px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}
.accordion-trigger .chevron { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; transition: transform 0.25s var(--ease-out); }
.accordion-item.open .accordion-trigger .chevron { transform: rotate(180deg); }
.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s var(--ease-out);
}
.accordion-item.open .accordion-panel { grid-template-rows: 1fr; }
.accordion-panel > p {
  overflow: hidden;
  margin: 0;
  padding: 0 22px 20px;
  color: var(--ink-soft);
  min-height: 0;
}
.accordion-panel { overflow: hidden; }

/* ---------------------------------------------------------------------- */
/* Custom select / filter dropdowns                                       */
/* ---------------------------------------------------------------------- */
.select-wrap { position: relative; display: inline-flex; align-items: center; }
.select-wrap::after {
  content: "";
  position: absolute;
  inset-inline-end: 14px;
  width: 9px;
  height: 9px;
  border-inline-end: 2px solid var(--ink-soft);
  border-block-end: 2px solid var(--ink-soft);
  transform: rotate(45deg);
  pointer-events: none;
  margin-top: -4px;
  top: 50%;
}
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  width: auto;
  min-width: 160px;
  padding: 10px 38px 10px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
[dir="rtl"] .select-wrap select { padding: 10px 16px 10px 38px; }
[dir="rtl"] .select-wrap::after { inset-inline-end: auto; inset-inline-start: 14px; }
.select-wrap select:hover { border-color: var(--gold); }
.select-wrap select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-tint); }

/* ---------------------------------------------------------------------- */
/* Photo lightbox                                                         */
/* ---------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 14, 0.82);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: min(90vw, 900px);
  max-height: 85vh;
  border-radius: 14px;
  box-shadow: var(--shadow-xl);
  transform: scale(0.96);
  transition: transform 0.22s var(--ease-out);
}
.lightbox.open img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 22px;
  inset-inline-end: 26px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }

/* ---------------------------------------------------------------------- */
/* Back to top                                                            */
/* ---------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 26px;
  inset-inline-end: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: var(--card);
  color: var(--primary);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  z-index: 25;
}
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top.visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { box-shadow: var(--shadow-lg); background: var(--gold-light); }

/* ---------------------------------------------------------------------- */
/* Alerts: dismiss button                                                 */
/* ---------------------------------------------------------------------- */
.alert { position: relative; padding-inline-end: 46px; transition: opacity 0.2s ease, transform 0.2s ease; }
.alert.dismissing { opacity: 0; transform: translateY(-6px); }
.alert-close {
  position: absolute;
  top: 8px;
  inset-inline-end: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: none;
  color: inherit;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.alert-close:hover { opacity: 1; background: rgba(0, 0, 0, 0.06); }

/* ---------------------------------------------------------------------- */
/* Button ripple + shine                                                  */
/* ---------------------------------------------------------------------- */
.btn { position: relative; overflow: hidden; }
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: btn-ripple-anim 0.65s ease-out;
  pointer-events: none;
}
.btn-secondary .btn-ripple, .lang-toggle .btn-ripple { background: rgba(125, 42, 53, 0.14); }
@keyframes btn-ripple-anim {
  to { transform: scale(1); opacity: 0; }
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.25) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}
.btn-primary:hover::before { transform: translateX(120%); }

@media (max-width: 560px) {
  h1 { font-size: 1.7rem; }
  .container { padding-inline: 18px; }
  .back-to-top { bottom: 18px; inset-inline-end: 18px; width: 42px; height: 42px; }
}

/* ---------------------------------------------------------------------- */
/* Admin dashboard                                                        */
/* ---------------------------------------------------------------------- */
.admin-sub { color: var(--ink-soft); margin: -4px 0 24px; }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}
@media (max-width: 780px) { .admin-stats { grid-template-columns: repeat(2, 1fr); } }
.admin-stat {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.admin-stat-value { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--primary); }
.admin-stat-label { font-size: 0.78rem; color: var(--ink-soft); margin-top: 4px; letter-spacing: 0.01em; }

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.admin-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-filter {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}
.admin-filter:hover { border-color: var(--gold); color: var(--primary-dark); }
.admin-filter.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.admin-search { display: flex; gap: 8px; }
.admin-search input { width: 240px; padding: 9px 14px; }
@media (max-width: 560px) { .admin-search { width: 100%; } .admin-search input { width: 100%; } }

.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border-soft); box-shadow: var(--shadow-sm); }
.admin-table { width: 100%; border-collapse: collapse; background: var(--card); font-size: 0.88rem; white-space: nowrap; }
.admin-table th, .admin-table td { padding: 12px 16px; text-align: start; border-bottom: 1px solid var(--border-soft); }
.admin-table th { background: var(--paper-alt); color: var(--ink-soft); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; }
.admin-table tbody tr:hover { background: var(--primary-tint); }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-empty { text-align: center !important; color: var(--ink-soft); padding: 28px !important; white-space: normal; }

.badge-role-couple { background: var(--primary-tint); color: var(--primary-dark); }
.badge-role-vendor { background: var(--gold-light); color: #6b5527; }
