/* ==========================================================================
   Asia Finest — Reusable Components
   ========================================================================== */

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.af-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid rgba(248, 248, 248, .16);
  background: rgba(248, 248, 248, .06);
  color: var(--af-ivory);
  cursor: pointer;
  transition: background .2s;
  text-decoration: none;
}

.af-btn:hover {
  background: rgba(248, 248, 248, .10);
  text-decoration: none;
}

.af-btn--primary {
  background: var(--af-gold);
  border-color: rgba(255, 255, 255, .16);
  color: #0b0b0b;
}

.af-btn--primary:hover {
  filter: brightness(1.04);
  background: var(--af-gold);
}

.af-btn--full {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Pills
   -------------------------------------------------------------------------- */

.af-pill {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(128, 88, 8, .45);
  background: rgba(128, 88, 8, .08);
  color: var(--af-ivory);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .02em;
}

/* --------------------------------------------------------------------------
   Dot indicator
   -------------------------------------------------------------------------- */

.af-dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--af-gold);
  display: inline-block;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.af-card {
  border-radius: var(--af-radius);
  overflow: hidden;
  border: 1px solid rgba(248, 248, 248, .10);
  background: rgba(248, 248, 248, .03);
  transition: transform .18s ease, background .18s ease;
  text-decoration: none;
  display: block;
  color: inherit;
}

.af-card:hover {
  transform: translateY(-4px);
  background: rgba(248, 248, 248, .05);
  text-decoration: none;
}

.af-card__img {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.af-card__body {
  padding: 16px;
}

.af-card__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: rgba(248, 248, 248, .68);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.af-card__title {
  font-family: var(--af-serif);
  font-size: 22px;
  margin: 10px 0 6px;
}

.af-card__text {
  margin: 0;
  color: rgba(248, 248, 248, .76);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Values / Process boxes
   -------------------------------------------------------------------------- */

.af-value {
  border-radius: var(--af-radius);
  border: 1px solid rgba(248, 248, 248, .10);
  background: rgba(248, 248, 248, .04);
  padding: 18px;
}

.af-value__title {
  display: block;
  font-family: var(--af-serif);
  font-size: 20px;
  margin-bottom: 6px;
}

.af-value__text {
  color: rgba(248, 248, 248, .76);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Glass Panel
   -------------------------------------------------------------------------- */

.af-panel {
  border-radius: calc(var(--af-radius) + 4px);
  overflow: hidden;
  border: 1px solid rgba(248, 248, 248, .12);
  background: rgba(16, 16, 16, .45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--af-shadow);
}

.af-panel__top {
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(248, 248, 248, .10);
}

.af-panel__body {
  padding: 14px 18px 18px;
}

/* --------------------------------------------------------------------------
   Form fields
   -------------------------------------------------------------------------- */

.af-field {
  display: grid;
  gap: 6px;
}

.af-label {
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(248, 248, 248, .70);
}

.af-input {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(248, 248, 248, .14);
  background: rgba(248, 248, 248, .06);
  color: var(--af-ivory);
  outline: none;
  font-family: inherit;
  font-size: 14px;
}

.af-input::placeholder {
  color: rgba(248, 248, 248, .55);
}

.af-input:focus {
  border-color: rgba(128, 88, 8, .55);
}

.af-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   Guide items
   -------------------------------------------------------------------------- */

.af-guide {
  border-radius: calc(var(--af-radius) + 4px);
  border: 1px solid rgba(248, 248, 248, .10);
  background:
    radial-gradient(ellipse at 30% 50%, rgba(128, 88, 8, .06) 0%, transparent 70%),
    rgba(248, 248, 248, .03);
  padding: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: center;
}

.af-guide-list {
  display: grid;
  gap: 10px;
}

.af-guide-item {
  border-radius: 14px;
  border: 1px solid rgba(248, 248, 248, .10);
  background: rgba(16, 16, 16, .35);
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.af-guide-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.af-guide-item span {
  display: block;
  font-size: 13px;
  color: rgba(248, 248, 248, .72);
}

.af-num {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  border: 1px solid rgba(128, 88, 8, .55);
  display: grid;
  place-items: center;
  color: var(--af-gold);
  font-weight: 700;
  font-size: 13px;
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   CTA Band
   -------------------------------------------------------------------------- */

.af-cta-band {
  border-radius: calc(var(--af-radius) + 6px);
  border: 1px solid rgba(248, 248, 248, .10);
  background: linear-gradient(90deg, rgba(128, 88, 8, .18), rgba(248, 248, 248, .02));
  padding: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.af-cta-band h3 {
  margin: 0;
  font-family: var(--af-serif);
  font-size: 30px;
}

.af-cta-band__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Scroll indicator
   -------------------------------------------------------------------------- */

.af-scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgba(248, 248, 248, .70);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  pointer-events: none;
}

.af-mouse {
  width: 22px;
  height: 34px;
  border-radius: 14px;
  border: 1px solid rgba(248, 248, 248, .28);
  position: relative;
}

.af-mouse::after {
  content: "";
  width: 4px;
  height: 6px;
  border-radius: 4px;
  background: rgba(248, 248, 248, .60);
  position: absolute;
  left: 50%;
  top: 7px;
  transform: translateX(-50%);
  animation: af-wheel 1.6s ease-in-out infinite;
}

@keyframes af-wheel {
  0%   { opacity: 1; top: 7px; }
  50%  { opacity: .4; top: 16px; }
  100% { opacity: 1; top: 7px; }
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.af-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--af-space-normal);
}

.af-pagination a,
.af-pagination span {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  text-decoration: none;
  color: var(--af-ivory);
  transition: background .2s;
}

.af-pagination a:hover {
  background: rgba(248, 248, 248, .06);
  text-decoration: none;
}

.af-pagination .current {
  background: var(--af-gold);
  color: #0b0b0b;
}

/* --------------------------------------------------------------------------
   Widgets
   -------------------------------------------------------------------------- */

.af-widget {
  margin-bottom: var(--af-space-compact);
}

.af-widget-title {
  font-family: var(--af-serif);
  font-size: 20px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(248, 248, 248, .10);
}
