/* ==========================================================================
   Components: buttons, chips, pills, headings, forms, search, placeholders
   ========================================================================== */

/* ---------- Buttons ---------- */
.btn {
	--bg: var(--surface); --fg: var(--ink); --bd: var(--line);
	position: relative; isolation: isolate; overflow: hidden;
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 24px;
	border-radius: var(--r-pill); border: 1px solid var(--bd);
	background: var(--bg); color: var(--fg);
	font-weight: 650; font-size: 1rem; text-decoration: none; line-height: 1; white-space: nowrap;
	transition: transform .35s var(--ease), box-shadow .35s var(--ease), color .25s, background .25s;
	will-change: transform;
}
.btn .icon { transition: transform .35s var(--ease); }
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:hover .icon { transform: translateX(4px); }
.btn .ur { font-size: .95rem; line-height: 1; transform: translateY(3px); opacity: .85; }
.btn--primary { --bg: var(--green); --fg: #fff; --bd: transparent; box-shadow: 0 10px 24px -10px rgba(11, 122, 90, .75); }
.btn--primary::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, .28) 40%, transparent 60%);
	transform: translateX(-100%);
	transition: transform .8s var(--ease);
}
.btn--primary:hover::before { transform: translateX(100%); }
.btn--primary:hover { --bg: #096A4E; }
.btn--gold { --bg: var(--gold-2); --fg: var(--ink); --bd: transparent; }
.btn--ghost { --bg: transparent; --bd: var(--line-2); }
.btn--ghost:hover { --bg: var(--surface); }
.btn--ink { --bg: var(--ink); --fg: #fff; --bd: transparent; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .92rem; }
.btn--block { width: 100%; }

.link-arrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-weight: 650; color: var(--ink); text-decoration: none;
	padding: 10px 4px; border-bottom: 1.5px solid var(--ink);
}
.link-arrow .icon { transition: transform .35s var(--ease); }
.link-arrow:hover { color: var(--green); border-color: var(--green); }
.link-arrow:hover .icon { transform: translateX(5px); }

/* ---------- Eyebrow & section heading ---------- */
.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	margin: 0 0 14px;
	font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	color: var(--green);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--gold); }
.section-head {
	display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
	margin-bottom: clamp(28px, 4vw, 48px);
}
.section-title { margin: 0; max-width: 18ch; }
.section-title-ur { margin: 4px 0 0; font-size: clamp(1.1rem, 1rem + .6vw, 1.5rem); color: var(--green); line-height: 1.9; }

/* ---------- Chips & pills ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
	--c: var(--green); --c-soft: var(--green-soft);
	display: inline-flex; align-items: center; gap: 6px;
	padding: 5px 12px 5px 8px; border-radius: var(--r-pill);
	background: var(--c-soft); color: var(--c);
	font-size: var(--fs-xs); font-weight: 650; text-decoration: none; line-height: 1.4;
	border: 1px solid transparent;
	transition: transform .25s var(--ease), border-color .25s;
}
.chip .icon { width: 15px; height: 15px; }
a.chip:hover { color: var(--c); border-color: currentColor; transform: translateY(-1px); }
.chip--gold   { --c: #8A6510;       --c-soft: var(--gold-soft); }
.chip--rose   { --c: #B53A2E;       --c-soft: var(--rose-soft); }
.chip--sky    { --c: var(--sky);    --c-soft: var(--sky-soft); }
.chip--violet { --c: var(--violet); --c-soft: var(--violet-soft); }
.chip--ink    { --c: var(--ink);    --c-soft: var(--ink-soft); }
.chip--plain  { --c: var(--ink-2);  --c-soft: var(--surface); border-color: var(--line); padding: 7px 14px; font-size: var(--fs-sm); cursor: pointer; }
.chip--plain:hover, .chip--plain[aria-pressed="true"] { --c: #fff; --c-soft: var(--ink); border-color: var(--ink); }

.pill {
	--c: var(--green); --c-soft: var(--green-soft);
	display: inline-flex; align-items: center; gap: 7px;
	padding: 4px 11px; border-radius: var(--r-pill);
	background: var(--c-soft); color: var(--c);
	font-size: var(--fs-xs); font-weight: 700; line-height: 1.5;
}
.pill .ur { font-size: .78rem; line-height: 1; font-weight: 400; opacity: .9; }
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 20%, transparent); }
.pill--gold   { --c: #8A6510;       --c-soft: var(--gold-soft); }
.pill--sky    { --c: var(--sky);    --c-soft: var(--sky-soft); }
.pill--violet { --c: var(--violet); --c-soft: var(--violet-soft); }
.pill--rose   { --c: #B53A2E;       --c-soft: var(--rose-soft); }
.pill--sky .pill__dot, .pill--gold .pill__dot { animation: pulse 2s infinite; }

.sample-badge {
	display: inline-block; padding: 2px 8px; border-radius: 6px;
	background: repeating-linear-gradient(-45deg, var(--gold-soft) 0 6px, #fff7e3 6px 12px);
	border: 1px dashed var(--gold); color: #8A6510;
	font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}

/* ---------- Placeholder & media ---------- */
.ph, .media {
	position: relative; overflow: hidden; border-radius: var(--r);
	background: var(--paper-2);
}
.ph--card, .media--card { aspect-ratio: 16 / 10; }
.ph--wide, .media--wide { aspect-ratio: 21 / 9; }
.ph--square, .media--square { aspect-ratio: 1; }
.ph--tall, .media--tall { aspect-ratio: 4 / 5; }
.ph__svg, .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.ph__glyph { transform-box: fill-box; }
.ph__orb { transition: transform 1.2s var(--ease); }
.ph__tag {
	position: absolute; right: 12px; bottom: 12px;
	padding: 3px 9px; border-radius: var(--r-pill);
	background: rgba(255, 255, 255, .75); backdrop-filter: blur(6px);
	font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}

/* ---------- Forms ---------- */
.li-form { display: grid; gap: 22px; }
.li-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.li-wide { grid-column: 1 / -1; }
.li-field { display: grid; gap: 8px; }
.li-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 650; font-size: var(--fs-sm); color: var(--ink); }
.li-label .ur { font-size: .95rem; color: var(--green); line-height: 1.6; font-weight: 400; }
.li-form input, .li-form select, .li-form textarea {
	width: 100%; min-height: 54px; padding: 14px 16px;
	border: 1.5px solid var(--line); border-radius: 14px;
	background: var(--surface);
	transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.li-form textarea { min-height: 150px; resize: vertical; }
.li-form input:hover, .li-form select:hover, .li-form textarea:hover { border-color: var(--line-2); }
.li-form input:focus, .li-form select:focus, .li-form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(11, 122, 90, .12); }
.li-form .btn { justify-self: start; }
.li-form-note { margin: 0; font-size: var(--fs-sm); color: var(--ink-3); }
.li-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.li-notice {
	display: grid; gap: 4px; padding: 14px 18px; border-radius: 14px;
	font-weight: 600; animation: pop .5s var(--ease-spring);
}
.li-notice .ur { font-weight: 400; line-height: 1.9; }
.li-notice--ok { background: var(--green-soft); color: var(--green); }
.li-notice--err { background: var(--rose-soft); color: #B53A2E; }

/* ---------- Search overlay ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 300; display: grid; place-items: start center; padding: 10vh var(--gutter) 0; }
.search-overlay[hidden] { display: none; }
.search-overlay__backdrop { position: absolute; inset: 0; background: rgba(14, 27, 44, .32); backdrop-filter: blur(6px); animation: fade .3s var(--ease); }
.search-panel {
	position: relative; width: min(680px, 100%);
	background: var(--surface); border-radius: 24px; border: 1px solid var(--line);
	box-shadow: var(--shadow-lg);
	animation: drop .45s var(--ease-spring);
	overflow: hidden;
}
.search-panel__form { display: flex; align-items: center; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.search-panel__form .icon { color: var(--green); width: 22px; height: 22px; }
.search-panel__form input { flex: 1; height: 68px; border: 0; background: transparent; font-size: 1.2rem; outline: none; }
.search-panel__body { padding: 18px 20px 22px; max-height: 60vh; overflow: auto; }
.search-panel__results { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.search-panel__results:not(:empty) + * { display: none; }
.search-result a {
	display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
	padding: 12px 14px; border-radius: 14px; text-decoration: none; color: var(--ink);
	transition: background .2s;
}
.search-result a:hover, .search-result a:focus-visible { background: var(--paper); }
.search-result__type { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--green); background: var(--green-soft); padding: 3px 8px; border-radius: 6px; }
.search-result .icon { color: var(--ink-3); }
.search-empty { color: var(--ink-3); padding: 12px 4px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 56px; flex-wrap: wrap; }
.pagination .page-numbers {
	display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 12px;
	border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
	color: var(--ink); text-decoration: none; font-weight: 600;
	transition: transform .25s var(--ease), background .25s, color .25s;
}
.pagination .page-numbers:hover { transform: translateY(-2px); }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Share ---------- */
.share { display: flex; gap: 8px; align-items: center; }
.share__btn {
	position: relative; display: grid; place-items: center; width: 42px; height: 42px;
	border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
	transition: transform .3s var(--ease-spring), background .25s, color .25s;
}
.share__btn:hover { transform: translateY(-3px); color: #fff; background: var(--ink); }
.share__btn--facebook:hover { background: #1877F2; }
.share__btn--whatsapp:hover { background: #25D366; }
.share__toast {
	position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 6px);
	padding: 4px 10px; border-radius: 8px; background: var(--ink); color: #fff;
	font-size: .72rem; white-space: nowrap; opacity: 0; pointer-events: none;
	transition: opacity .25s, transform .25s var(--ease);
}
.share__btn.is-copied .share__toast { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 720px) {
	.li-form-grid { grid-template-columns: 1fr; }
	.li-form .btn { width: 100%; }
	.search-overlay { padding-top: 12px; }
}
