/* ===================================================================
   نيكسوس للبرمجيات والحلول الرقمية - NEXUS SOFTWARE & TECH SOLUTIONS
   Components Stylesheet - Amwerk Munich Corporate Engineering Style
   =================================================================== */

/* ===================================================================
   Buttons (Amwerk Sharp Architectural Style)
   =================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.92rem;
  padding: 0.85rem 1.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  letter-spacing: 0.3px;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.btn-dark {
  background-color: var(--text-dark);
  color: #ffffff;
  border-color: var(--text-dark);
}

.btn-dark:hover {
  background-color: #000000;
  border-color: #000000;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-dark);
  border-color: var(--border-light);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background-color: var(--accent-soft);
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline-white:hover {
  border-color: #ffffff;
  background-color: #ffffff;
  color: var(--text-dark);
}

.btn-sm {
  padding: 0.5rem 1.15rem;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 1.05rem 2.4rem;
  font-size: 1rem;
}

/* ===================================================================
   Amwerk Project Cost Estimator Widget
   =================================================================== */
.estimator-container {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 3.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.estimator-step {
  margin-bottom: 2.5rem;
}

.estimator-step-title {
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-dark);
}

.estimator-step-title span.step-num {
  width: 32px;
  height: 32px;
  background-color: var(--bg-dark);
  color: #ffffff;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border-radius: var(--radius-sm);
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.estimate-option {
  background-color: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
  user-select: none;
}

.estimate-option:hover {
  border-color: var(--text-dark);
  background-color: #ffffff;
}

.estimate-option.active {
  border-color: var(--accent);
  background-color: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent);
}

.estimate-option .option-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.estimate-option .option-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.estimate-option .option-info h5 {
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
  color: var(--text-dark);
}

.estimate-option .option-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Estimator Live Summary Card */
.estimator-summary {
  background-color: var(--bg-dark);
  border-radius: var(--radius-sm);
  padding: 2.5rem 2rem;
  color: #ffffff;
  position: sticky;
  top: 110px;
}

.estimator-summary h4 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  color: #a0a6b5;
}

.summary-item span.val {
  color: #ffffff;
  font-weight: 700;
}

.summary-total {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.summary-total .total-label {
  font-weight: 800;
  font-size: 1.15rem;
  color: #ffffff;
}

.summary-total .total-price {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--accent);
  font-family: var(--font-heading);
  white-space: nowrap;
}

/* ===================================================================
   Amwerk FAQ Accordion (Simple Architectural Lines)
   =================================================================== */
.faq-section {
  padding: 6.5rem 0;
  background-color: var(--bg-white);
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
  background: transparent;
  transition: all 0.2s ease;
}

.faq-question {
  width: 100%;
  padding: 1.5rem 0;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: right;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-dark);
  cursor: pointer;
  user-select: none;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-light);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 0;
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  padding: 0 0 1.5rem;
  max-height: 250px;
}

/* ===================================================================
   Forms & Controls
   =================================================================== */
.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
}

.form-control, .form-select {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background-color: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-control.is-invalid {
  border-color: #e63946;
  background-color: #fff5f5;
}

.invalid-feedback {
  color: #e63946;
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 0.25rem;
  display: none;
}

.is-invalid ~ .invalid-feedback {
  display: block;
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

/* ===================================================================
   Toast Notifications
   =================================================================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 320px;
  max-width: 440px;
  background-color: var(--bg-dark);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.4rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #ffffff;
  animation: toastSlideIn 0.35s ease forwards;
}

.toast.toast-success {
  border-right: 4px solid #10b981;
}

.toast.toast-error {
  border-right: 4px solid var(--accent);
}

.toast.toast-info {
  border-right: 4px solid #0ea5e9;
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================================================================
   Floating Quick Action Buttons
   =================================================================== */
.floating-actions {
  position: fixed;
  bottom: 6rem;
  left: 2rem;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.float-btn {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.25s ease;
  color: #ffffff;
  font-size: 1.3rem;
}

.float-whatsapp {
  background-color: #25d366;
}

.float-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.back-to-top {
  background-color: var(--text-dark);
  color: #ffffff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--accent);
}

/* ===================================================================
   Filter Tabs
   =================================================================== */
.tabs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab-btn {
  background-color: var(--bg-light);
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover,
.tab-btn.active {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}
