/* ======================================================================
   Hibachi W — Global Button System
   Location: /assets/css/base/buttons.css
   ====================================================================== */

/* ===================== Base Button ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  padding: 14px 32px;
  line-height: 1.2;
  border-radius: 9999px;
  border: 0;
  text-decoration: none;
  font-weight: 600;
  font-family: 'Rubik', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition:
  background-color .2s ease,
    box-shadow .2s ease,
    color .2s ease,
    transform .1s ease;
  background: #fff;
  color: #1a1919;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}

.btn:focus-visible {
  outline: 2px solid #ff4f00;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px rgba(255,79,0,.25);
}

/* ===================== Primary CTA (Orange) ===================== */
.btn--primary {
  background: #ff4f00;
  color: #fff;
}

.btn--primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 10px rgba(0,0,0,0.10);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

/* ===================== Invert Button (White / Orange Border) ===================== */
.btn--invert {
    font-size: 18px;
    color: rgb(26 25 25);
    font-family: Rubik;
    cursor: pointer;
    text-transform: uppercase;
    line-height: 18px;
    padding: 18px 42px;
    font-weight: 600;
    border-radius: 30px;
    background-color: #fff;
    margin: 40px 0 0;
    text-shadow: none
}
.btn--invert:hover,
.btn--invert:focus{ background:#d7d3d3; color:#495e59;}

/* ===================== Secondary (Gray) ===================== */
.btn--secondary {
  background: #f7f7f7;
  color: #333;
  border: 2px solid #e5e5e5;
}

.btn--secondary:hover {
  background: #fff;
  border-color: #dcdcdc;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,.10);
}

/* ===================== Coupon / Green Button ===================== */
.btn--coupon {
  background: #256928;
  color: #fff;
  font-weight: 700;
  border: 1px solid #f0c88c;
}

.btn--coupon:hover,
.btn--coupon:focus {
  background: #114c14;
  color: #ff4f00;
}

/* ===================== Ghost Button (Outline) ===================== */
.btn--ghost {
  border: 2px solid #ff4d00;
  color: #ff4d00;
  background-color: transparent;
  border-radius: 9999px;
  font-weight: 700;
  padding: 12px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn--ghost:hover {
  background-color: #ff4d00;
  color: #fff;
}

/* ===================== Text CTA link-action ===================== */
.link-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  letter-spacing: .2px;
  color: #ff4f00;
  text-underline-offset: 3px;
  transition: color .18s ease, transform .18s ease;
}

.link-action:hover {
  color: #ff6f33;
  text-decoration: underline;
  transform: translateY(-1px);
}

.link-action .icon {
  width: 1.05em;
  height: 1.05em;
  line-height: 1;
  display: inline-block;
  transition: transform .18s ease;
}

.link-action:hover .icon {
  transform: translateX(2px);
}

/* ===================== NEW — Small Button ===================== */
.btn--sm {
  padding: 8px 18px;
  font-size: 14px;
  line-height: 1.2;
}

/* ===================== NEW — Large Button ===================== */
.btn--lg {
  padding: 18px 48px;
  font-size: 20px;
  line-height: 1.3;
}

/* ===================== NEW — Block Button (Full Width) ===================== */
.btn--block {
  width: 100%;
  display: flex;
}

/* ===================== NEW — Round Button ===================== */
.btn--round {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* ===================== NEW — Loading State ===================== */
.btn[aria-busy="true"],
.btn--loading {
  pointer-events: none;
  opacity: 0.75;
}

.btn--loading::after {
  content: "";
  margin-left: 8px;
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: spin .6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===================== Mobile Hover Reduction ===================== */
@media (max-width: 768px){
  .btn:hover{
    transform:none;
  }
  .btn:active{
    transform: translateY(0);
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
    filter: saturate(1.05);
  }
  .link-action:hover{
    transform:none;
  }
}

/* ===================== Reduce Motion ===================== */
@media (prefers-reduced-motion: reduce){
  .btn,
  .link-action{
    transition: none;
  }
}
