/* ==========================================================================
   Fikoraa — components
   ========================================================================== */

/* ---------- Motif: textile-inspired diamond band (generic geometry) ---------- */
.motif-band, .wsite .w-band, .tpl-thumb .tb, .ty-card .c-band {
  -webkit-mask: var(--motif-tile) repeat-x left center / auto 100%;
  mask: var(--motif-tile) repeat-x left center / auto 100%;
}
.motif-band { height: 14px; background: var(--gold); }
.motif-band.thin { height: 10px; }
.motif-rule { display: flex; align-items: center; gap: var(--sp-3); color: var(--gold); }
.motif-rule::before, .motif-rule::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.lattice {
  background-image:
    linear-gradient(45deg, transparent 48.5%, currentColor 48.5% 51.5%, transparent 51.5%),
    linear-gradient(-45deg, transparent 48.5%, currentColor 48.5% 51.5%, transparent 51.5%);
  background-size: 44px 44px;
}

/* ---------- Demo notices ---------- */
.demo-strip {
  background: var(--forest-deep); color: #DDE4DA;
  font-size: var(--fs-xs); text-align: center; padding: 0.4rem var(--gutter);
}
.demo-strip strong { color: var(--gold-light); font-weight: 600; }
.demo-strip button {
  background: none; border: 0; color: var(--gold-light); text-decoration: underline;
  padding: 0 0.25rem; font-size: inherit; min-height: 24px;
}
.demo-tag {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--info); background: var(--info-bg); border-radius: var(--r-pill);
  padding: 0.2rem 0.6rem; white-space: nowrap;
}
.demo-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 253, 247, 0.96);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--forest); }
.logo svg { width: 32px; height: 32px; flex: none; }
.logo span { font-family: var(--font-display); font-size: 1.85rem; font-weight: 600; letter-spacing: 0.01em; line-height: 1; }
.main-nav { display: flex; align-items: center; gap: var(--sp-5); }
.main-nav ul { display: flex; gap: var(--sp-5); list-style: none; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; font-weight: 500; font-size: var(--fs-sm); color: var(--charcoal); padding: 0.4rem 0; border-bottom: 1.5px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--forest); border-bottom-color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: var(--sp-3); }
.lang-switch { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r-pill); overflow: hidden; }
.lang-switch button {
  border: 0; background: transparent; color: var(--forest);
  font-size: var(--fs-xs); padding: 0 0.7rem; min-height: 34px;
}
.lang-switch button[aria-pressed="true"] { background: var(--forest); color: var(--on-accent); }
.lang-switch button.ethiopic { font-family: var(--font-ethiopic); line-height: 1; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: var(--r-sm); width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--forest); }
.menu-toggle svg { width: 22px; height: 22px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-deep); color: #C5CEC3; font-size: var(--fs-sm); }
.site-footer .top { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: var(--sp-6); padding-block: var(--sp-8) var(--sp-6); }
.site-footer .brand-col { grid-column: span 2; display: grid; gap: var(--sp-4); align-content: start; max-width: 22rem; }
.site-footer .logo { color: var(--warm-white); }
.logo .logo-i { position: relative; font-size: inherit; letter-spacing: inherit; }
.logo .logo-i::after { content: ""; position: absolute; left: calc(50% - 0.06em); top: 0.12em; width: 0.12em; height: 0.12em; background: var(--gold, #B89B63); transform: rotate(45deg); }
.site-footer h2 { font-family: var(--font-body); font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); font-weight: 600; margin-bottom: var(--sp-3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.site-footer a { color: #C5CEC3; text-decoration: none; }
.site-footer a:hover { color: var(--warm-white); text-decoration: underline; }
.site-footer .bottom { border-top: 1px solid #34463A; padding-block: var(--sp-5); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3); font-size: var(--fs-xs); }
.social { display: flex; gap: var(--sp-2); }
.social a { width: 40px; height: 40px; border: 1px solid #3E5244; border-radius: 50%; display: grid; place-items: center; }
.social svg { width: 18px; height: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 46px; padding: 0 1.4rem; border-radius: var(--r-pill);
  border: 1.5px solid transparent; font-weight: 600; font-size: var(--fs-sm);
  text-decoration: none; line-height: 1.2; white-space: nowrap;
  transition: background var(--t-fast) var(--ease), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--forest); color: var(--on-accent); }
.btn-primary:hover { background: var(--forest-deep); color: var(--on-accent); }
.btn-outline { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn-outline:hover { background: var(--forest); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--forest); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--forest); color: var(--forest); }
.btn-gold { background: var(--gold-light); color: var(--forest-deep); }
.btn-gold:hover { background: #EAD8AC; color: var(--forest-deep); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #7E2222; color: #fff; }
.btn-lg { min-height: 54px; padding: 0 1.9rem; font-size: var(--fs-base); }
.btn-sm { min-height: 38px; padding: 0 0.95rem; font-size: var(--fs-xs); }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center;
  border-radius: var(--r-sm); border: 1px solid transparent; background: transparent; color: var(--forest);
}
.icon-btn:hover { background: var(--sage); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn[aria-pressed="true"] { color: var(--danger); }
.link-btn { background: none; border: 0; padding: 0; color: var(--forest); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-4);
}
.card.flat { background: transparent; }
.card.raised { box-shadow: var(--shadow-md); }
.card h3 { font-size: var(--fs-lg); font-weight: 600; }
.card-link { text-decoration: none; color: inherit; transition: border-color var(--t-fast), box-shadow var(--t-med); }
.card-link:hover { border-color: var(--gold); box-shadow: var(--shadow-md); color: inherit; }
.feature-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--sage); color: var(--forest); display: grid; place-items: center; }
.feature-icon svg { width: 22px; height: 22px; }

/* ---------- Badges / pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.75rem; font-weight: 600; border-radius: var(--r-pill);
  padding: 0.2rem 0.65rem; background: var(--sage); color: var(--forest); white-space: nowrap;
}
.badge.gold { background: #F2E8D2; color: #6A5430; }
.badge.success { background: var(--success-bg); color: var(--success); }
.badge.warning { background: var(--warning-bg); color: var(--warning); }
.badge.danger { background: var(--danger-bg); color: var(--danger); }
.badge.info { background: var(--info-bg); color: var(--info); }
.badge.neutral { background: #EEEAE2; color: #4D544F; }
.badge.solid { background: var(--forest); color: var(--on-accent); }
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 40px; padding: 0 1rem;
  border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--surface);
  font-size: var(--fs-sm); color: var(--charcoal);
}
button.chip[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: var(--on-accent); }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--sp-4); }
.form-row { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.field { display: grid; gap: 0.35rem; min-width: 0; align-content: start; }
.field > label, .field > .label, fieldset > legend { font-size: var(--fs-sm); font-weight: 600; color: var(--charcoal); }
.field .hint { font-size: var(--fs-xs); color: var(--muted); }
.req { color: var(--danger); margin-left: 2px; }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 0.6rem 0.85rem;
  border: 1px solid var(--line-strong); border-radius: var(--r-md);
  background: var(--warm-white); color: var(--charcoal);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.select { appearance: none; padding-right: 2.2rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--forest) 50%), linear-gradient(135deg, var(--forest) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(48, 70, 56, 0.15); outline: none; }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); background: #FFF9F8; }
.field-error { font-size: var(--fs-xs); color: var(--danger); font-weight: 500; }
.input[type="color"] { padding: 4px; width: 56px; min-height: 46px; }
fieldset { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-4); margin: 0; display: grid; gap: var(--sp-3); min-width: 0; }
fieldset > legend { padding: 0 0.4rem; }
.check { display: flex; align-items: flex-start; gap: 0.6rem; font-size: var(--fs-sm); min-height: 32px; }
.check input { width: 20px; height: 20px; margin: 0.15rem 0 0; accent-color: var(--forest); flex: none; }
.checks-grid { display: grid; gap: var(--sp-2) var(--sp-4); grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
.switch { display: inline-flex; align-items: center; gap: 0.7rem; font-size: var(--fs-sm); cursor: pointer; min-height: 36px; }
.switch input { appearance: none; width: 42px; height: 24px; border-radius: 12px; background: #CFC6B4; position: relative; margin: 0; flex: none; transition: background var(--t-fast); }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform var(--t-fast) var(--ease); box-shadow: var(--shadow-sm); }
.switch input:checked { background: var(--forest); }
.switch input:checked::after { transform: translateX(18px); }
.switch input:disabled { opacity: 0.5; }
.password-meter { height: 6px; border-radius: 3px; background: #E9E2D3; overflow: hidden; }
.password-meter span { display: block; height: 100%; width: 0; background: var(--danger); transition: width var(--t-med), background var(--t-med); }

/* ---------- Alerts ---------- */
.alert { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-4); border-radius: var(--r-md); font-size: var(--fs-sm); border: 1px solid transparent; }
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.alert.info { background: var(--info-bg); color: #1F3A51; border-color: #C9DAE6; }
.alert.success { background: var(--success-bg); color: #1F4B31; border-color: #C3DDCA; }
.alert.warning { background: var(--warning-bg); color: #6A440B; border-color: #E9D2A8; }
.alert.danger { background: var(--danger-bg); color: #7A1F1F; border-color: #EBC6C0; }
.alert > div { min-width: 0; }
.alert > div > * + * { margin-top: 0.35rem; }

/* ---------- Toasts ---------- */
.toast-region { position: fixed; z-index: 400; right: var(--sp-4); bottom: calc(var(--sp-4) + env(safe-area-inset-bottom, 0px)); display: grid; gap: var(--sp-2); width: min(380px, calc(100vw - 2rem)); }
.toast {
  background: var(--forest-deep); color: #F0F2EC; border-radius: var(--r-md); padding: 0.85rem 1rem;
  box-shadow: var(--shadow-lg); font-size: var(--fs-sm); display: flex; gap: var(--sp-3); align-items: flex-start;
  animation: toast-in var(--t-med) var(--ease);
}
.toast.error { background: #6E1F1F; }
.toast.warning { background: #5E430F; }
.toast .t-close { margin-left: auto; background: none; border: 0; color: inherit; opacity: 0.8; min-height: 24px; }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 300; background: rgba(23, 33, 27, 0.55);
  display: grid; place-items: center; padding: var(--sp-4);
  animation: fade-in var(--t-fast) ease;
}
.modal {
  background: var(--surface); border-radius: var(--r-lg); width: min(640px, 100%);
  max-height: calc(100vh - 2rem); overflow: auto; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
}
.modal.wide { width: min(920px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-5) var(--sp-5) var(--sp-3); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal-head h2 { font-size: var(--fs-xl); }
.modal-body { padding: var(--sp-3) var(--sp-5) var(--sp-5); display: grid; gap: var(--sp-4); }
.modal-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--surface); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: var(--sp-2); flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tabs [role="tab"] {
  background: none; border: 0; border-bottom: 2px solid transparent; padding: 0.7rem 0.9rem;
  font-weight: 500; color: var(--muted); font-size: var(--fs-sm); min-height: 44px; margin-bottom: -1px;
}
.tabs [role="tab"][aria-selected="true"] { color: var(--forest); border-bottom-color: var(--forest); font-weight: 600; }
.pill-tabs { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.pill-tabs [role="tab"] { border: 1.5px solid var(--line-strong); background: transparent; color: var(--forest); border-radius: var(--r-pill); padding: 0 1.2rem; min-height: 44px; font-weight: 500; font-size: var(--fs-sm); }
.pill-tabs [role="tab"][aria-selected="true"] { background: var(--forest); border-color: var(--forest); color: var(--on-accent); font-weight: 600; }

/* ---------- Tables ---------- */
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th, .table td { text-align: left; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; background: #FBF8F1; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table .select, .table .input { min-height: 38px; padding-block: 0.3rem; font-size: var(--fs-sm); }
.th-sort { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; display: inline-flex; gap: 4px; align-items: center; min-height: 28px; }

/* ---------- Accordion ---------- */
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; padding: var(--sp-5) 0; display: flex; justify-content: space-between; gap: var(--sp-4);
  font-family: var(--font-display); font-size: var(--fs-lg); color: var(--forest); font-weight: 600;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-family: var(--font-body); font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--gold-ink); }
.accordion details[open] summary::after { content: "−"; }
.accordion .acc-body { padding-bottom: var(--sp-5); color: var(--muted); max-width: 46rem; }

/* ---------- Progress / bars ---------- */
.progress { height: 8px; background: var(--sage); border-radius: 4px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--forest); border-radius: 4px; transition: width var(--t-med) var(--ease); }
.progress.gold > span { background: var(--gold); }
.progress.danger > span { background: var(--danger); }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: var(--sp-7) var(--sp-5); border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); display: grid; gap: var(--sp-3); justify-items: center; color: var(--muted); background: rgba(255, 253, 247, 0.6); }
.empty h3 { font-size: var(--fs-lg); }

/* ---------- Photo placeholder ---------- */
.photo-ph {
  position: relative; overflow: hidden; background: var(--forest); color: var(--gold-light);
  display: flex; align-items: flex-end; border-radius: var(--r-lg); min-height: 220px;
}
.photo-ph::before { content: ""; position: absolute; inset: 0; color: rgba(226, 204, 152, 0.18); }
.photo-ph.lattice-bg::before {
  background-image:
    linear-gradient(45deg, transparent 48.5%, currentColor 48.5% 51.5%, transparent 51.5%),
    linear-gradient(-45deg, transparent 48.5%, currentColor 48.5% 51.5%, transparent 51.5%);
  background-size: 44px 44px;
}
.photo-ph .ph-cap { position: relative; padding: var(--sp-5); display: grid; gap: 0.25rem; font-size: var(--fs-sm); line-height: 1.5; }
.photo-ph .ph-cap strong { font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; }
.photo-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-ph.sage { background: var(--sage); color: var(--forest); }
.photo-ph.sage::before { color: rgba(48, 70, 56, 0.12); }

/* ---------- Template thumbnails ---------- */
.tpl-card { display: flex; flex-direction: column; gap: var(--sp-3); }
.tpl-thumb {
  --t-bg: #F8F4EC; --t-ink: #304638; --t-accent: #B89B63;
  position: relative; aspect-ratio: 3 / 4; max-width: 100%; border-radius: var(--r-md); overflow: hidden;
  background: var(--t-bg); color: var(--t-ink); border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med);
}
.tpl-card:hover .tpl-thumb { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tpl-thumb .tb { height: 12px; flex: none; background: var(--t-accent); }
  background-size: 18px 12px; }
.tpl-thumb .tb.solid { background: var(--t-accent); height: 4px; -webkit-mask: none; mask: none; }
.tpl-thumb .tc { flex: 1; display: flex; flex-direction: column; gap: 0.6rem; padding: 1.25rem; justify-content: center; text-align: center; align-items: center; }
.tpl-thumb .kick { font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--t-accent); }
.tpl-thumb .nm { font-family: var(--t-font, var(--font-display)); font-size: clamp(1.5rem, 1rem + 1.5vw, 2rem); line-height: 1; }
.tpl-thumb .rl { width: 40px; height: 1px; background: var(--t-accent); }
.tpl-thumb .dt { font-size: 0.7rem; }
.tpl-thumb .ph { background: var(--t-accent); opacity: 0.32; border-radius: 4px; }
.tpl-thumb.arch .tc { justify-content: flex-start; }
.tpl-thumb.arch .ph { width: 64%; aspect-ratio: 4 / 5; border-radius: 999px 999px 6px 6px; }
.tpl-thumb.editorial .tc { text-align: left; align-items: stretch; justify-content: space-between; }
.tpl-thumb.editorial .nm { font-style: italic; font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.4rem); }
.tpl-thumb.editorial .strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.tpl-thumb.editorial .strip .ph { aspect-ratio: 3 / 4; }
.tpl-thumb.split .tc { flex-direction: row; text-align: left; padding: 0.8rem; gap: 0.8rem; align-items: stretch; }
.tpl-thumb.split .ph { flex: 1 1 0; border-radius: 6px; }
.tpl-thumb.split .txt { flex: 1.1 1 0; display: flex; flex-direction: column; justify-content: center; gap: 0.5rem; }
.tpl-thumb.minimal .tc { gap: 1rem; }
.tpl-thumb.minimal .nm { font-weight: 400; letter-spacing: 0.04em; }
.tpl-meta { display: grid; gap: 0.35rem; }
.tpl-meta h3 { font-size: 1.35rem; font-weight: 600; }

/* ---------- Device preview ---------- */
.device-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.device-stage { background: #E9E4D8; border-radius: var(--r-lg); padding: clamp(0.75rem, 2vw, 1.5rem); overflow: auto; display: flex; justify-content: center; }
.device-frame { width: 100%; max-width: 980px; background: #fff; border-radius: 10px; box-shadow: var(--shadow-md); overflow: hidden; transition: max-width var(--t-med) var(--ease); }
.device-frame.mobile { max-width: 390px; border-radius: 28px; border: 8px solid #222; }
.device-frame .scroll { max-height: 78vh; overflow-y: auto; }

/* ---------- Rendered wedding website (.wsite) ---------- */
.wsite {
  --w-bg: #F8F4EC; --w-surface: #FFFDF7; --w-ink: #304638; --w-accent: #B89B63; --w-muted: #5B665E;
  --w-display: var(--font-display); --w-body: var(--font-body);
  background: var(--w-bg); color: var(--w-ink); font-family: var(--w-body); container-type: inline-size;
}
.wsite h1, .wsite h2, .wsite h3 { color: var(--w-ink); font-family: var(--w-display); }
.wsite .w-band { height: 14px; background: var(--w-accent); }
.wsite.no-motif .w-band { height: 3px; opacity: 0.6; -webkit-mask: none; mask: none; }
.wsite .w-sec { padding: clamp(2rem, 6cqi, 4rem) clamp(1rem, 5cqi, 3rem); display: grid; gap: 1rem; }
.wsite .w-sec + .w-sec { border-top: 1px solid color-mix(in srgb, var(--w-accent) 30%, transparent); }
.wsite .w-kick { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--w-accent); font-weight: 600; }
.wsite .w-hero { text-align: center; justify-items: center; padding-block: clamp(3rem, 10cqi, 6rem); }
.wsite .w-hero h1 { font-size: clamp(2.4rem, 9cqi, 5rem); line-height: 1; }
.wsite .w-hero .w-amp { font-style: italic; color: var(--w-accent); }
.wsite .w-photo { width: min(100%, 26rem); aspect-ratio: 4 / 5; border-radius: 999px 999px 10px 10px; overflow: hidden; background: color-mix(in srgb, var(--w-accent) 28%, var(--w-bg)); display: grid; place-items: center; color: var(--w-ink); font-size: 0.8rem; text-align: center; padding: 1rem; }
.wsite .w-photo img { width: 100%; height: 100%; object-fit: cover; }
.wsite.layout-editorial .w-hero { text-align: left; justify-items: start; }
.wsite.layout-editorial .w-hero h1 { font-style: italic; font-size: clamp(2.8rem, 11cqi, 5.6rem); }
.wsite.layout-editorial .w-photo { border-radius: 6px; width: 100%; aspect-ratio: 16 / 9; }
.wsite.layout-split .w-hero { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); text-align: left; justify-items: start; align-items: center; }
.wsite.layout-split .w-photo { border-radius: 10px; }
.wsite.layout-minimal .w-hero h1 { font-weight: 400; letter-spacing: 0.04em; }
.wsite.layout-minimal .w-photo { display: none; }
.wsite .w-count { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.wsite.layout-editorial .w-count, .wsite.layout-split .w-count { justify-content: flex-start; }
.wsite .w-count div { min-width: 64px; display: grid; text-align: center; }
.wsite .w-count b { font-family: var(--w-display); font-size: 2rem; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.wsite .w-count span { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--w-muted); }
.wsite .w-events { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.wsite .w-event { background: var(--w-surface); border: 1px solid color-mix(in srgb, var(--w-accent) 35%, transparent); border-radius: 12px; padding: 1.25rem; display: grid; gap: 0.4rem; font-size: 0.92rem; }
.wsite .w-event h3 { font-size: 1.5rem; }
.wsite .w-event a { color: var(--w-ink); }
.wsite .w-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 1.5rem; border-radius: 999px; background: var(--w-ink); color: var(--w-bg); font-weight: 600; text-decoration: none; border: 0; }
.wsite .w-faq dt { font-weight: 600; margin-top: 0.75rem; }
.wsite .w-faq dd { margin: 0.2rem 0 0; color: var(--w-muted); }
.wsite .w-gallery { display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr)); }
.wsite .w-gallery > * { aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: color-mix(in srgb, var(--w-accent) 22%, var(--w-bg)); }
.wsite .w-gallery img { width: 100%; height: 100%; object-fit: cover; }
.wsite .w-foot { text-align: center; padding: 2rem 1rem; font-size: 0.8rem; color: var(--w-muted); }
.wsite p { max-width: 42rem; line-height: 1.7; }
.wsite.layout-classic .w-sec, .wsite.layout-arch .w-sec, .wsite.layout-minimal .w-sec { justify-items: center; text-align: center; }
.wsite.layout-classic .w-events, .wsite.layout-arch .w-events, .wsite.layout-minimal .w-events { width: 100%; text-align: left; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); align-items: stretch; }
.price-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-6) var(--sp-5) var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-4); }
.price-card.featured { border: 2px solid var(--forest); box-shadow: var(--shadow-md); }
.price-card .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); }
.price-card .amount { font-family: var(--font-display); font-size: 2.6rem; color: var(--forest); line-height: 1; font-variant-numeric: tabular-nums; }
.price-card .amount small { display: block; font-family: var(--font-body); font-size: var(--fs-xs); color: var(--muted); margin-top: 0.4rem; letter-spacing: 0.08em; text-transform: uppercase; }
.price-card .period { font-weight: 600; font-size: var(--fs-md); color: var(--charcoal); }
.price-card .per-day { font-size: var(--fs-xs); color: var(--muted); }
.price-card .btn { margin-top: auto; }
.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); font-size: var(--fs-sm); }
.tick-list li { position: relative; padding-left: 1.2rem; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; transform: rotate(45deg); background: var(--gold); }

/* ---------- Vendor cards ---------- */
.vendor-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.vendor-card .v-img { aspect-ratio: 16 / 10; max-width: 100%; position: relative; }
.vendor-card .v-img .photo-ph { border-radius: 0; min-height: 0; height: 100%; }
.vendor-card .v-body { padding: var(--sp-4) var(--sp-5) var(--sp-5); display: grid; gap: var(--sp-2); flex: 1; align-content: start; }
.vendor-card h3 { font-size: 1.45rem; font-weight: 600; }
.vendor-card .v-actions { display: flex; gap: var(--sp-2); align-items: center; padding: 0 var(--sp-5) var(--sp-5); flex-wrap: wrap; }
.vendor-card .v-flags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.fav-btn { position: absolute; top: 8px; right: 8px; background: rgba(255, 253, 247, 0.95); border-radius: 50%; width: 42px; height: 42px; border: 0; display: grid; place-items: center; color: var(--forest); }
.fav-btn svg { width: 20px; height: 20px; }
.fav-btn[aria-pressed="true"] { color: var(--danger); }
.fav-btn[aria-pressed="true"] svg path { fill: currentColor; }
.compare-bar { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); background: var(--forest-deep); color: #fff; border-radius: var(--r-pill); padding: 0.5rem 0.5rem 0.5rem 1.25rem; display: flex; gap: var(--sp-3); align-items: center; box-shadow: var(--shadow-lg); font-size: var(--fs-sm); max-width: calc(100vw - 2rem); }

/* ---------- Steps ---------- */
.steps { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); counter-reset: step; }
.step { display: grid; gap: var(--sp-3); align-content: start; padding-top: var(--sp-4); border-top: 1px solid var(--line-strong); }
.step::before { counter-increment: step; content: counter(step); font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--gold-ink); }

/* ---------- Thank-you card render ---------- */
.ty-card {
  --c-bg: #F8F4EC; --c-ink: #304638; --c-accent: #B89B63; --c-font: var(--font-display);
  background: var(--c-bg); color: var(--c-ink); border-radius: 12px; padding: clamp(1.25rem, 5cqi, 2.5rem);
  display: grid; gap: 1rem; text-align: center; justify-items: center; container-type: inline-size; box-shadow: var(--shadow-md);
}
.ty-card .c-frame { border: 1px solid var(--c-accent); border-radius: 8px; padding: clamp(1.25rem, 6cqi, 3rem) clamp(1rem, 5cqi, 2.5rem); display: grid; gap: 0.9rem; justify-items: center; width: 100%; }
.ty-card .c-band { width: 120px; height: 14px; background: var(--c-accent); }
.ty-card .c-kick { font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--c-accent); font-weight: 600; }
.ty-card .c-title { font-family: var(--c-font); font-size: clamp(2.2rem, 11cqi, 3.6rem); line-height: 1; font-style: italic; }
.ty-card .c-msg { max-width: 30rem; line-height: 1.7; font-size: 0.95rem; white-space: pre-line; }
.ty-card .c-names { font-family: var(--c-font); font-size: 1.5rem; }
.ty-card .c-photo { width: 100%; max-width: 22rem; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: color-mix(in srgb, var(--c-accent) 28%, var(--c-bg)); display: grid; place-items: center; font-size: 0.8rem; }
.ty-card .c-photo img { width: 100%; height: 100%; object-fit: cover; }
.ty-card.layout-split .c-frame { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); text-align: left; justify-items: start; align-items: center; }
.ty-card.layout-photo-top .c-photo { order: -1; }
.ty-card.no-decor .c-band { display: none; }
.ty-swatch { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r-md); border: 2px solid var(--line); display: grid; place-items: center; font-family: var(--font-display); font-style: italic; font-size: 1.4rem; }
button.ty-option { min-width: 0; width: 100%; background: none; border: 0; padding: 0; text-align: left; display: grid; gap: 0.4rem; font-size: var(--fs-sm); color: var(--charcoal); }
button.ty-option[aria-pressed="true"] .ty-swatch { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(48, 70, 56, 0.2); }

/* ---------- Status columns (kanban-lite) ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(15rem, 1fr); gap: var(--sp-4); overflow-x: auto; padding-bottom: var(--sp-3); }
.board-col { background: #F1ECE1; border-radius: var(--r-md); padding: var(--sp-3); display: grid; gap: var(--sp-3); align-content: start; min-height: 8rem; }
.board-col h3 { font-family: var(--font-body); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; display: flex; justify-content: space-between; }
.board-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--sp-3); display: grid; gap: var(--sp-2); font-size: var(--fs-sm); }

/* ---------- Homepage ---------- */
.home-hero { padding-block: clamp(3rem, 7vw, 6rem); overflow: hidden; }
.home-hero h1 { font-size: var(--fs-3xl); }
.hero-visual { position: relative; padding: 0 0 2.5rem 1.5rem; }
.hero-arch { background: var(--surface); border: 1px solid var(--line-strong); padding: 12px; border-radius: 240px 240px var(--r-lg) var(--r-lg); max-width: 30rem; margin-inline: auto; }
.hero-arch .photo-ph { border-radius: 228px 228px 10px 10px; min-height: clamp(360px, 48vw, 540px); }
.hero-float { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 1rem 1.1rem; display: grid; gap: 0.5rem; }
.events-float { left: 0; bottom: 0; width: min(260px, 70%); }
.rsvp-float { right: 0; top: 3.5rem; background: var(--forest); color: var(--warm-white); border: 0; display: flex; align-items: center; gap: 0.6rem; font-size: var(--fs-sm); }
.rsvp-float svg { color: var(--gold-light); flex: none; }
.dfy-band { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--forest-deep); color: #DCE3D9; padding: clamp(2rem, 5vw, 4rem); display: flex; flex-wrap: wrap; gap: var(--sp-6); align-items: center; justify-content: space-between; }
.dfy-band::before { content: ""; position: absolute; inset: 0; color: rgba(226, 204, 152, 0.08);
  background-image: linear-gradient(45deg, transparent 48.5%, currentColor 48.5% 51.5%, transparent 51.5%), linear-gradient(-45deg, transparent 48.5%, currentColor 48.5% 51.5%, transparent 51.5%); background-size: 56px 56px; }
.dfy-band > * { position: relative; }
.dfy-band > .stack { flex: 1 1 26rem; }
.dfy-band h2 { color: var(--warm-white); }
.dfy-band .eyebrow { color: var(--gold-light); }
.dfy-band .lede { color: #C9D3C8; }
.home-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); align-items: center; }
.home-cards > :first-child { transform: rotate(-2.5deg); }
.home-cards > :last-child { transform: rotate(2deg) translateY(1.5rem); }
@media (max-width: 640px) {
  .hero-visual { padding-left: 0; }
  .rsvp-float { top: 1rem; }
  .home-cards { grid-template-columns: minmax(0, 1fr); }
  .home-cards > :last-child { display: none; }
}
.hero-arch .photo-ph { align-items: center; justify-content: center; text-align: center; }
.hero-arch .photo-ph .ph-cap { max-width: 18rem; padding-bottom: 5rem; }
.bg-forest .card { color: var(--charcoal); }
.bg-forest .card .eyebrow { color: var(--gold-ink); }
.bg-forest .card .muted { color: var(--muted); }
.bg-forest .card h2, .bg-forest .card h3 { color: var(--heading); }

/* ---------- Full HTML templates (uploaded designs) ---------- */
.wsite-frame { display: block; width: 100%; height: 78vh; min-height: 520px; border: 0; background: #FBF6EC; }
.device-frame .scroll:has(.wsite-frame) { overflow: hidden; }
.tpl-thumb.html .cr { color: var(--t-accent); font-size: 1.9rem; line-height: 1; }
.tpl-thumb.html .kick { letter-spacing: 0.12em; font-family: var(--font-ethiopic, serif); }
.tpl-thumb.tibeb .tb {
  height: 14px; -webkit-mask: none; mask: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='28'%3E%3Crect width='32' height='28' fill='%231f6b3a'/%3E%3Crect width='32' height='3' fill='%23b8892b'/%3E%3Crect y='25' width='32' height='3' fill='%23b8892b'/%3E%3Cpath d='M16 6L24 14L16 22L8 14Z' fill='%23e3b22c'/%3E%3Cpath d='M16 10L20 14L16 18L12 14Z' fill='%23b3261e'/%3E%3Cpath d='M0 6L8 14L0 22ZM32 6L24 14L32 22Z' fill='%23fbf6ec'/%3E%3C/svg%3E") repeat-x left center / 16px 14px;
}
.tpl-thumb.tibeb .nm { color: #2A1D12; }
.tpl-thumb.tibeb .kick { color: #1F6B3A; }
.tpl-thumb.brana .tb {
  height: 14px; -webkit-mask: none; mask: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Crect width='24' height='24' fill='%23c08a2c'/%3E%3Cg fill='none'%3E%3Cpath d='M0 12C6 0 18 0 24 12' stroke='%231c1410' stroke-width='7'/%3E%3Cpath d='M0 12C6 0 18 0 24 12' stroke='%23a3231a' stroke-width='4'/%3E%3Cpath d='M0 12C6 24 18 24 24 12' stroke='%231c1410' stroke-width='7'/%3E%3Cpath d='M0 12C6 24 18 24 24 12' stroke='%231d3b6a' stroke-width='4'/%3E%3C/g%3E%3C/svg%3E") repeat-x left center / 14px 14px;
}
.tpl-thumb.brana .kick { color: #1D3B6A; }
.tpl-thumb.fusion .tb {
  height: 14px; -webkit-mask: none; mask: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='22'%3E%3Crect width='30' height='22' fill='%23121110'/%3E%3Crect width='30' height='2' fill='%23c6a15b'/%3E%3Crect y='20' width='30' height='2' fill='%23c6a15b'/%3E%3Cpath d='M4 11L15 5L26 11L15 17Z' fill='%23c6a15b'/%3E%3Cpath d='M9 11L15 8L21 11L15 14Z' fill='%232e6b45'/%3E%3Cpath d='M0 5L4 11L0 17ZM30 5L26 11L30 17Z' fill='%23a83a2c'/%3E%3C/svg%3E") repeat-x left center / 19px 14px;
}
.tpl-thumb.fusion .nm { font-family: "Playfair Display", var(--font-display); }
.tpl-thumb.garden .tb { height: 1px; -webkit-mask: none; mask: none; margin: 10px 18px 0; background: var(--t-accent); }
.tpl-thumb.garden .tb:last-child { margin: 0 18px 10px; }
.tpl-thumb.garden .nm { font-family: "Pinyon Script", "Cormorant Garamond", cursive; font-weight: 400; color: #55644A; }
.tpl-thumb.garden .kick { color: #9C6B67; }
.tpl-thumb.noor .tb {
  height: 14px; -webkit-mask: none; mask: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='18'%3E%3Crect width='28' height='18' fill='%23f8f3e8'/%3E%3Crect width='28' height='2' fill='%23c9a54e'/%3E%3Crect y='16' width='28' height='2' fill='%23c9a54e'/%3E%3Cpath d='M0 15L7 4L14 15Z' fill='%23b0306a'/%3E%3Cpath d='M14 15L21 4L28 15Z' fill='%231b7f8c'/%3E%3Cpath d='M7 4L14 15L21 4Z' fill='%23d9772b'/%3E%3C/svg%3E") repeat-x left center / 22px 14px;
}
.tpl-thumb.noor .kick { color: #B0306A; }
.tpl-thumb.noor .nm { color: #08302A; font-family: "Marcellus", var(--font-display); }
.tpl-thumb.emerald { background: radial-gradient(ellipse at 50% 35%, #28644e 0%, transparent 55%), linear-gradient(145deg, #0a2923, #174a3d 58%, #092720); }
.tpl-thumb.emerald .tb { height: 5px; -webkit-mask: none; mask: none; background: linear-gradient(90deg, #123c32, #c9a45b, #123c32); }
.tpl-thumb.emerald .tc { margin: 10px; border: 1px solid rgba(201,164,91,.55); }
.tpl-thumb.emerald .nm { color: #fff; font-family: Georgia, "Times New Roman", serif; }
.tpl-thumb.emerald .kick { color: #C4A45E; }
.tpl-thumb.emerald .dt { color: #E5CB91; }
.tpl-thumb.regional { background: var(--t-bg); color: var(--t-ink); }
.tpl-thumb.regional .tb { height: 6px; -webkit-mask: none; mask: none; background: var(--t-accent); }
.tpl-thumb.regional .tc { margin: 10px; border: 1px solid color-mix(in srgb, var(--t-accent) 60%, transparent); }
.tpl-thumb.regional .kick { color: var(--t-accent); letter-spacing: 0.08em; font-family: var(--font-ethiopic, serif); font-size: 0.75rem; text-transform: none; }
.tpl-thumb.regional .nm { color: var(--t-ink); }
.tpl-thumb.regional .dt { color: color-mix(in srgb, var(--t-ink) 75%, transparent); }

/* Invitation + Thank-you Card Package (homepage) */
.pkg-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
.pkg-pick { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: var(--sp-4); align-items: start; padding: var(--sp-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.pkg-thumb { border-radius: var(--r-md); overflow: hidden; }
.pkg-thumb .tpl-thumb { aspect-ratio: 3 / 4; }
.pkg-card-thumb { width: 150px; height: 204px; border: 1px solid var(--line); background: #EDE7DA; }
.pkg-card-thumb iframe { width: 560px !important; height: 760px !important; transform: scale(.268); transform-origin: top left; pointer-events: none; }
.pkg-summary { gap: var(--sp-3); }
.pkg-lines { margin: 0; display: grid; gap: .55rem; }
.pkg-lines dd { margin: 0; white-space: nowrap; }
.pkg-lines .spread { flex-wrap: nowrap; align-items: baseline; }
.pkg-lines .pkg-total { padding-top: .55rem; border-top: 1px solid var(--line); color: var(--muted); }
.pkg-lines .pkg-price dt { font-weight: 600; }
.pkg-lines .pkg-price .amount { font-size: 2.2rem; }
.pkg-lines .pkg-savings { color: var(--success, #2F6B45); }
@media (max-width: 860px) {
  .pkg-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .pkg-pick { grid-template-columns: 1fr; }
  .pkg-thumb { max-width: 150px; }
}
