/**
 * w3domicile V3 — buttons, cards, pricing, forms, FAQ
 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-sans);
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform var(--transition-base), box-shadow var(--transition-base),
    background var(--transition-base), border-color var(--transition-base), color var(--transition-base);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  min-height: 48px;
}

.btn-red,
.btn-orange,
.btn-blue,
.btn-primary {
  background: var(--color-accent);
  color: var(--color-surface);
  border-color: var(--color-accent);
}
.btn-red:hover,
.btn-orange:hover,
.btn-blue:hover,
.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-surface);
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}

.btn-black {
  background: var(--color-secondary);
  color: var(--color-surface);
  border-color: var(--color-secondary);
}
.btn-black:hover {
  background: var(--color-secondary-hover);
  border-color: var(--color-secondary-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgb(var(--color-secondary-rgb) / 0.32);
}

.btn-outline-white {
  background: transparent;
  color: var(--color-surface);
  border-color: var(--color-on-inverse-border-emphasis);
}
.btn-outline-white:hover {
  background: var(--color-on-inverse-surface-hover);
  border-color: var(--color-surface);
  color: var(--color-surface);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-primary);
  border-color: var(--color-border-strong);
}
.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgb(var(--color-accent-rgb) / 0.06);
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: var(--color-surface);
  border-color: var(--color-on-inverse-border-emphasis);
}
.btn-outline-white:hover {
  background: var(--color-on-inverse-surface-hover);
  border-color: var(--color-surface);
  color: var(--color-surface);
}

.btn-lg { padding: 0 35px; font-size: 14px; min-height: 48px; }
.btn-sm { padding: 0 18px; font-size: 13px; min-height: 40px; letter-spacing: 0.06em; }
.btn-full { width: 100%; }

/* Product cards */
.product-card,
.blog-card,
.pricing-card,
.service-card,
.contact-info-card {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-card-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-surface-raised);
  position: relative;
}
.product-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.product-card:hover .product-card-thumb img { transform: scale(1.03); }
.product-card-thumb-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: var(--color-surface-raised);
}

.product-card-badge {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  background: var(--color-accent);
  color: var(--color-surface);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}
.product-card-badge.badge-green { background: var(--color-success); }
.product-card-badge.badge-blue { background: var(--color-accent); }
.product-card-badge.badge-black { background: var(--color-primary); }

.quick-view-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-on-inverse-scrim);
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  opacity: 0;
  transition: opacity var(--transition-fast);
  text-decoration: none;
}
.product-card:hover .quick-view-btn { opacity: 1; }

.product-card-body { padding: var(--space-3) var(--space-4) var(--space-4); }
.product-card-title {
  font-size: var(--text-base);
  font-weight: 700;
  line-height: var(--leading-tight);
  margin-bottom: var(--space-2);
}
.product-card-title a { color: var(--color-primary); }
.product-card-title a:hover { color: var(--color-accent); }

.product-card-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.product-card-price del { font-size: var(--text-sm); color: var(--color-text-muted); }
.product-card-price .price-current,
.product-card-price .price-only {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
}
.product-card-price .price-free {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-success);
}

.product-card-btn {
  display: block;
  width: 100%;
  background: var(--color-accent);
  color: var(--color-surface);
  border: none;
  border-radius: var(--radius-md);
  padding: 10px var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-sans);
  text-align: center;
  cursor: pointer;
  transition: background var(--transition-base);
  min-height: 44px;
}
.product-card-btn:hover { background: var(--color-accent-hover); color: var(--color-surface); }
.product-card-btn.btn-black-fill {
  background: var(--color-primary);
}
.product-card-btn.btn-black-fill:hover { background: var(--color-primary-hover); }

/* Blog cards */
.blog-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.blog-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--color-surface-raised); }
.blog-thumb-ph,
.blog-thumb:has(.blog-thumb-ph) { display: none; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.blog-card:hover .blog-thumb img { transform: scale(1.03); }
.blog-body { padding: var(--space-4); }
.blog-cat {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
  display: block;
}
.blog-title { font-size: var(--text-base); font-weight: 700; margin-bottom: var(--space-2); }
.blog-title a { color: var(--color-primary); }
.blog-title a:hover { color: var(--color-accent); }
.blog-exc { font-size: var(--text-sm); color: var(--color-text-secondary); line-height: var(--leading-normal); margin-bottom: var(--space-2); }
.blog-meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: flex;
  gap: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}

/* NP post cards */
.np-post-wrap {
  overflow: hidden;
  border-radius: 10px;
}
.np-post-card {
  border: 0;
  border-radius: 10px;
  box-shadow: 0 0 50px rgba(5, 5, 5, 0.08);
  overflow: visible;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.np-post-card:hover { transform: none; box-shadow: 0 0 50px rgba(5, 5, 5, 0.12); }
.new-badge {
  position: absolute;
  top: 10px;
  left: -42px;
  width: 150px;
  height: 26px;
  background: var(--color-secondary);
  color: #fff;
  font-style: italic;
  font-weight: 700;
  font-size: 11.2px;
  line-height: 26px;
  text-transform: uppercase;
  text-align: center;
  transform: rotate(-45deg);
  transform-origin: 75px 13px;
  z-index: 10;
  pointer-events: none;
  letter-spacing: 0.04em;
}
.np-post-card .blog-thumb {
  aspect-ratio: 350 / 210;
  border-radius: 10px 10px 0 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, #F16334 0 46%, #111214 46% 100%);
}
.np-post-card .blog-thumb:has(.np-cover),
.np-post-card .blog-thumb:has(.blog-thumb-ph) { display: block; }
.np-cover-1 .np-cover,
.np-cover-1.blog-thumb { background: linear-gradient(115deg, #111214 0 52%, #F16334 52% 100%); }
.np-cover-2 .np-cover,
.np-cover-2.blog-thumb { background: linear-gradient(125deg, #F16334 0 40%, #1a1b1f 40% 72%, #4387F4 72% 100%); }
.np-cover {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 210px;
  height: 100%;
  padding: 22px 20px 18px;
  color: #fff;
  position: relative;
}
.np-cover-title {
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
  font-weight: 700;
  line-height: 1.2;
  max-width: 70%;
  letter-spacing: -0.02em;
}
.np-cover-logo {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  background: #26272C;
  color: #fff;
  padding: 5px 8px;
  border-radius: 3px;
}
.np-cover-0 .np-cover-logo { left: 16px; }
.np-post-card .blog-body { padding: 16px 16px 22px; }
.np-post-card .card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.np-post-card .blog-cat {
  color: #808080;
  font-weight: 500;
  letter-spacing: 0.5px;
  font-size: 13px;
  margin: 0;
  display: block;
}
.np-post-card .blog-cat:hover { color: var(--color-accent); }
.read-time {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #808080;
  font-size: 13px;
  font-weight: 300;
  white-space: nowrap;
}
.read-time .icon-clock { flex-shrink: 0; }
.np-post-card .blog-title {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
}
.np-post-card .blog-title a { color: #1a1a1a; }
.np-post-card .blog-exc {
  font-size: 16px;
  font-weight: 300;
  color: #222429;
  line-height: 1.6;
  margin: 0;
}

/* Pricing cards */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-5); }
.pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  border: 2px solid var(--color-accent);
  box-shadow: var(--shadow-md);
}
.pricing-card-top {
  background: var(--color-accent);
  padding: var(--space-2);
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-surface);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.pricing-card-body { padding: var(--space-5); flex: 1; display: flex; flex-direction: column; }
.pricing-card-name { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--space-2); }
.pricing-card-desc { font-size: var(--text-sm); color: var(--color-text-secondary); line-height: var(--leading-normal); margin-bottom: var(--space-4); }
.pricing-price { margin-bottom: var(--space-4); }
.pricing-price .amount {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.04em;
  line-height: 1;
}
.pricing-price .amount.free { color: var(--color-success); }
.pricing-price .was { font-size: var(--text-sm); color: var(--color-text-muted); text-decoration: line-through; display: block; margin-bottom: 2px; }
.pricing-price .note { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: var(--space-1); display: block; }
.pricing-features { list-style: none; margin-bottom: var(--space-5); flex: 1; display: flex; flex-direction: column; gap: var(--space-2); }
.pricing-features li { display: flex; align-items: flex-start; gap: var(--space-2); font-size: var(--text-sm); }
.pricing-features li::before { content: '✓'; color: var(--color-success); font-weight: 700; flex-shrink: 0; }
.pricing-features li.off { color: var(--color-text-muted); }
.pricing-features li.off::before { content: '—'; color: var(--color-text-muted); }
.pricing-btn { display: flex; flex-direction: column; gap: var(--space-2); }
.pricing-card-cat {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
}
.pricing-guarantee {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  text-align: center;
  max-width: 680px;
  margin: var(--space-7) auto 0;
}
.pricing-guarantee h2 { font-size: var(--text-xl); margin-bottom: var(--space-3); }
.pricing-guarantee p { color: var(--color-text-secondary); line-height: var(--leading-relaxed); margin-bottom: var(--space-5); }
.pricing-guarantee-badges {
  display: flex;
  gap: var(--space-5);
  justify-content: center;
  flex-wrap: wrap;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
}

/* FAQ */
.faq-list { max-width: var(--container-narrow); }
.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: var(--space-2); overflow: hidden; }
.faq-question {
  width: 100%;
  text-align: left;
  padding: var(--space-4);
  background: var(--color-surface);
  border: none;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 44px;
}
.faq-question:hover { background: var(--color-surface-raised); }
.faq-question[aria-expanded="true"] { background: rgb(var(--color-accent-rgb) / 0.08); color: var(--color-accent-hover); }
.faq-answer { display: none; padding: 0 var(--space-4) var(--space-4); font-size: var(--text-sm); color: var(--color-text-secondary); line-height: var(--leading-relaxed); }
.faq-answer.open { display: block; }

/* Forms & widgets */
.widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}
.widget-title {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-surface-raised);
}

.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"],
.contact-form-wrap textarea,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  background: var(--color-surface);
  margin-bottom: var(--space-3);
}
.contact-form-wrap input:focus,
.contact-form-wrap textarea:focus,
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-focus-ring);
}

.form-notice {
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: var(--text-sm);
  margin-bottom: var(--space-5);
}
.form-notice--ok {
  background: var(--color-secondary-subtle);
  border: 1px solid var(--color-secondary);
  color: var(--color-secondary-hover);
}
.form-notice--err {
  background: #FCEBEA;
  border: 1px solid var(--color-error);
  color: var(--color-error);
}

@media (prefers-reduced-motion: reduce) {
  .product-card:hover,
  .blog-card:hover,
  .pricing-card:hover { transform: none; }
}
