/* ==========================================================================
   Bali Web Dev — Components
   1. Buttons
   2. Cards
   3. Badges & chips
   4. Icon box & stars
   5. Marquee
   6. Forms
   ========================================================================== */

/* 1. Buttons ------------------------------------------------------------- */
.bwd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.8rem 1.4rem;
	border-radius: var(--bwd-radius-pill);
	border: 1px solid transparent;
	font-family: var(--bwd-font-heading);
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1;
	white-space: nowrap;
	transition: transform 0.25s var(--bwd-ease), box-shadow 0.25s var(--bwd-ease),
		background 0.25s var(--bwd-ease), border-color 0.25s var(--bwd-ease);
}

.bwd-btn--primary {
	background: var(--bwd-gradient);
	color: #fff;
	box-shadow: 0 10px 30px -12px rgba(124, 92, 255, 0.7);
}
.bwd-btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 40px -14px rgba(124, 92, 255, 0.85);
}

.bwd-btn--ghost {
	background: var(--bwd-surface);
	border-color: var(--bwd-border);
	color: var(--bwd-text);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}
.bwd-btn--ghost:hover {
	background: var(--bwd-surface-2);
	border-color: var(--bwd-border-strong);
	transform: translateY(-2px);
}

.bwd-btn--lg {
	padding: 1rem 1.8rem;
	font-size: 1rem;
}
.bwd-btn--block {
	width: 100%;
}

/* 2. Cards --------------------------------------------------------------- */
.bwd-card {
	position: relative;
	background: var(--bwd-surface);
	border: 1px solid var(--bwd-border);
	border-radius: var(--bwd-radius-lg);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	box-shadow: var(--bwd-shadow);
	transition: border-color 0.3s var(--bwd-ease), transform 0.3s var(--bwd-ease);
}
.bwd-card--pad {
	padding: clamp(1.4rem, 3vw, 2rem);
}
.bwd-card--glow {
	overflow: hidden;
}
.bwd-card--glow::before {
	content: "";
	position: absolute;
	inset: 0;
	padding: 1px;
	border-radius: inherit;
	background: var(--bwd-gradient);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: 0;
	transition: opacity 0.35s var(--bwd-ease);
	pointer-events: none;
}
.bwd-card--glow:hover::before,
.bwd-card--glow:focus-within::before {
	opacity: 1;
}
.bwd-card:hover {
	border-color: var(--bwd-border-strong);
}

/* Feature (item daftar fitur) -------------------------------------------- */
.bwd-feature {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
}
.bwd-feature .bwd-ico {
	flex: none;
	margin-top: 0.15rem;
	color: var(--bwd-cyan);
}

/* Breadcrumb ------------------------------------------------------------- */
.bwd-crumbs {
	margin-bottom: 1rem;
}
.bwd-crumbs__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem;
	font-family: var(--bwd-font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	color: var(--bwd-text-muted);
}
.bwd-crumbs__list li + li::before {
	content: "/";
	margin-right: 0.4rem;
	color: var(--bwd-border-strong);
}
.bwd-crumbs__list a:hover {
	color: var(--bwd-text);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.bwd-crumbs__list [aria-current="page"] {
	color: var(--bwd-text);
}

/* Daftar chip (untuk siapa) ---------------------------------------------- */
.bwd-chiplist {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.6rem;
}

/* 3. Badges & chips ------------------------------------------------------ */
.bwd-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.4rem 0.85rem;
	border-radius: var(--bwd-radius-pill);
	background: var(--bwd-surface);
	border: 1px solid var(--bwd-border);
	font-family: var(--bwd-font-mono);
	font-size: 0.78rem;
	letter-spacing: 0.04em;
}
.bwd-badge .bwd-ico {
	color: var(--bwd-cyan);
}

.bwd-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.5rem 0.95rem;
	border-radius: var(--bwd-radius-pill);
	border: 1px solid var(--bwd-border);
	background: var(--bwd-surface);
	font-size: 0.85rem;
	transition: all 0.25s var(--bwd-ease);
}
.bwd-chip:hover {
	border-color: var(--bwd-border-strong);
	background: var(--bwd-surface-2);
}
.bwd-chip.is-active {
	background: var(--bwd-gradient);
	color: #fff;
	border-color: transparent;
}

/* 4. Icon box & stars ---------------------------------------------------- */
.bwd-iconbox {
	display: inline-grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-bottom: 1rem;
	border-radius: 14px;
	background: var(--bwd-surface-2);
	border: 1px solid var(--bwd-border);
	color: var(--bwd-cyan);
}
.bwd-iconbox .bwd-ico {
	width: 22px;
	height: 22px;
}

.bwd-stars {
	display: inline-flex;
	gap: 2px;
	color: #fbbf24;
}
.bwd-stars .bwd-ico {
	width: 16px;
	height: 16px;
	fill: currentColor;
	stroke: currentColor;
}

/* 5. Marquee ------------------------------------------------------------- */
.bwd-marquee {
	position: relative;
	overflow: hidden;
	padding-block: 1.1rem;
	border-block: 1px solid var(--bwd-border);
	background: var(--bwd-surface);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.bwd-marquee__track {
	display: flex;
	gap: 3rem;
	width: max-content;
	animation: bwd-marquee 28s linear infinite;
}
.bwd-marquee__item {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-family: var(--bwd-font-heading);
	font-weight: 600;
	font-size: 1.05rem;
	color: var(--bwd-text-muted);
	white-space: nowrap;
}
.bwd-marquee__item .bwd-ico {
	color: var(--bwd-cyan);
}
@keyframes bwd-marquee {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

/* 6. Forms --------------------------------------------------------------- */
.bwd-field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin-bottom: 1rem;
}
.bwd-field label {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--bwd-text);
}
.bwd-input,
.bwd-textarea,
.bwd-select {
	width: 100%;
	padding: 0.85rem 1rem;
	border-radius: var(--bwd-radius-sm);
	border: 1px solid var(--bwd-border);
	background: var(--bwd-surface);
	color: var(--bwd-text);
	font-family: inherit;
	font-size: 0.95rem;
	transition: border-color 0.25s var(--bwd-ease), background 0.25s var(--bwd-ease);
}
.bwd-input::placeholder,
.bwd-textarea::placeholder {
	color: var(--bwd-text-muted);
}
.bwd-input:focus,
.bwd-textarea:focus,
.bwd-select:focus {
	outline: none;
	border-color: var(--bwd-cyan);
	background: var(--bwd-surface-2);
}
.bwd-textarea {
	min-height: 140px;
	resize: vertical;
}

/* 7. Header & navigation ------------------------------------------------- */
.bwd-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: color-mix(in srgb, var(--bwd-bg) 72%, transparent);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s var(--bwd-ease), background 0.3s var(--bwd-ease);
}
.bwd-header.is-scrolled {
	border-bottom-color: var(--bwd-border);
}
.bwd-header__inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	height: var(--bwd-header-height);
}

.bwd-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-family: var(--bwd-font-heading);
	font-weight: 700;
	font-size: 1.15rem;
	letter-spacing: -0.01em;
}
.bwd-logo__mark {
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 11px;
	background: var(--bwd-gradient);
	color: #fff;
	box-shadow: var(--bwd-glow-violet);
}
.bwd-logo__mark .bwd-ico {
	width: 20px;
	height: 20px;
}
.bwd-logo__text span {
	color: var(--bwd-cyan);
}

.bwd-nav {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin-left: auto;
}
.bwd-nav__list {
	display: flex;
	align-items: center;
	gap: 0.35rem;
}
.bwd-nav__link {
	display: inline-block;
	padding: 0.5rem 0.8rem;
	border-radius: var(--bwd-radius-pill);
	font-size: 0.95rem;
	color: var(--bwd-text-muted);
	transition: color 0.2s, background 0.2s;
}
.bwd-nav__link:hover {
	color: var(--bwd-text);
	background: var(--bwd-surface);
}
.bwd-nav__link.is-active {
	color: var(--bwd-text);
	background: var(--bwd-surface-2);
}
.bwd-nav__cta {
	display: none;
}

.bwd-header__actions {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}
.bwd-theme-toggle {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: var(--bwd-radius-pill);
	border: 1px solid var(--bwd-border);
	background: var(--bwd-surface);
	color: var(--bwd-text);
	transition: all 0.25s;
}
.bwd-theme-toggle:hover {
	border-color: var(--bwd-border-strong);
	background: var(--bwd-surface-2);
}
.bwd-theme-toggle__sun {
	display: none;
}
[data-theme="light"] .bwd-theme-toggle__sun {
	display: inline-grid;
}
[data-theme="light"] .bwd-theme-toggle__moon {
	display: none;
}

.bwd-burger {
	display: none;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: var(--bwd-radius-pill);
	border: 1px solid var(--bwd-border);
	background: var(--bwd-surface);
}
.bwd-burger .bwd-ico {
	width: 22px;
	height: 22px;
}
.bwd-burger__close {
	display: none;
}
.bwd-header.is-menu-open .bwd-burger__open {
	display: none;
}
.bwd-header.is-menu-open .bwd-burger__close {
	display: inline-grid;
}

/* 8. Footer -------------------------------------------------------------- */
.bwd-footer {
	position: relative;
	padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem;
	border-top: 1px solid var(--bwd-border);
	background: var(--bwd-bg-elevated);
}
.bwd-footer__grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
	gap: 2rem;
}
.bwd-footer__desc {
	max-width: 34ch;
	margin: 1rem 0;
	color: var(--bwd-text-muted);
}
.bwd-footer__col h3 {
	margin-bottom: 1rem;
	font-size: 1rem;
}
.bwd-footer__col ul {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}
.bwd-footer__col a {
	color: var(--bwd-text-muted);
	font-size: 0.92rem;
	transition: color 0.2s;
}
.bwd-footer__col a:hover {
	color: var(--bwd-cyan);
}
.bwd-footer__contact a,
.bwd-footer__addr {
	display: inline-flex;
	align-items: flex-start;
	gap: 0.55rem;
}
.bwd-footer__contact .bwd-ico,
.bwd-footer__addr .bwd-ico {
	margin-top: 0.2rem;
	color: var(--bwd-cyan);
}
.bwd-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: space-between;
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--bwd-border);
	color: var(--bwd-text-muted);
	font-size: 0.85rem;
}
.bwd-footer__bottom p {
	margin: 0;
}

.bwd-social {
	display: flex;
	gap: 0.6rem;
}
.bwd-social a {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--bwd-border);
	background: var(--bwd-surface);
	color: var(--bwd-text-muted);
	transition: all 0.25s;
}
.bwd-social a:hover {
	color: #fff;
	background: var(--bwd-gradient);
	border-color: transparent;
	transform: translateY(-2px);
}
.bwd-social .bwd-ico {
	width: 18px;
	height: 18px;
}

/* 9. Back to top --------------------------------------------------------- */
.bwd-totop {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 90;
	display: inline-grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--bwd-gradient);
	color: #fff;
	box-shadow: var(--bwd-glow-violet);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: all 0.3s var(--bwd-ease);
}
.bwd-totop.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}
.bwd-totop .bwd-ico {
	transform: rotate(-90deg);
}

/* 10. Alerts ------------------------------------------------------------- */
.bwd-alert {
	padding: 0.9rem 1.1rem;
	border-radius: var(--bwd-radius-sm);
	border: 1px solid var(--bwd-border);
	background: var(--bwd-surface);
	font-size: 0.9rem;
}
.bwd-alert--ok {
	border-color: rgba(34, 211, 238, 0.5);
	color: var(--bwd-cyan);
}
.bwd-alert--err {
	border-color: rgba(244, 114, 182, 0.5);
	color: var(--bwd-pink);
}

/* 11. Light theme refinements ------------------------------------------- */
[data-theme="light"] .bwd-card {
	background: #ffffff;
	border-color: rgba(10, 14, 30, 0.08);
	box-shadow: 0 14px 34px -22px rgba(10, 14, 30, 0.28);
}
[data-theme="light"] .bwd-iconbox {
	background: rgba(255, 107, 94, 0.12);
	border-color: rgba(255, 107, 94, 0.25);
	color: #c2410c;
}
[data-theme="light"] .bwd-eyebrow,
[data-theme="light"] .bwd-service__link,
[data-theme="light"] .bwd-work__cat,
[data-theme="light"] .bwd-portfolio__cat,
[data-theme="light"] .bwd-price__tag {
	color: #0e7490;
}

/* 12. Anti-spam honeypot ------------------------------------------------- */
.bwd-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

/* 13. Floating WhatsApp & social proof ----------------------------------- */
.bwd-wa-float {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 95;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem;
	border-radius: var(--bwd-radius-pill);
	background: #25d366;
	color: #fff;
	box-shadow: 0 12px 30px -10px rgba(37, 211, 102, 0.7);
	transition: transform 0.25s var(--bwd-ease), box-shadow 0.25s var(--bwd-ease);
}
.bwd-wa-float:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 38px -12px rgba(37, 211, 102, 0.85);
}
.bwd-wa-float .bwd-ico {
	width: 26px;
	height: 26px;
}
.bwd-wa-float__label {
	display: none;
	padding-right: 0.4rem;
	font-family: var(--bwd-font-heading);
	font-weight: 600;
}
@media (min-width: 768px) {
	.bwd-wa-float__label {
		display: inline;
	}
}
.bwd-totop {
	bottom: 5rem;
}

.bwd-logos {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	justify-content: center;
}
.bwd-logo-chip {
	padding: 0.7rem 1.2rem;
	border: 1px solid var(--bwd-border);
	border-radius: var(--bwd-radius-pill);
	background: var(--bwd-surface);
	color: var(--bwd-text-muted);
	font-family: var(--bwd-font-heading);
	font-weight: 600;
}

.bwd-form-trust {
	margin: 0 0 0.8rem;
	font-size: 0.85rem;
	color: var(--bwd-text-muted);
}

/* 14. Legal prose -------------------------------------------------------- */
.bwd-prose {
	max-width: 820px;
	margin-inline: auto;
	color: var(--bwd-text);
	font-size: 1.02rem;
}
.bwd-prose > * + * {
	margin-top: 1rem;
}
.bwd-prose h2 {
	margin-top: 2rem;
	font-size: clamp(1.3rem, 2.5vw, 1.6rem);
}
.bwd-prose h3 {
	margin-top: 1.5rem;
	font-size: 1.15rem;
}
.bwd-prose ul,
.bwd-prose ol {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding-left: 1.3rem;
}
.bwd-prose ul {
	list-style: disc;
}
.bwd-prose ol {
	list-style: decimal;
}
.bwd-prose a {
	color: var(--bwd-cyan);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.bwd-footer__bottom a {
	color: var(--bwd-text-muted);
	transition: color 0.2s;
}
.bwd-footer__bottom a:hover {
	color: var(--bwd-cyan);
}

