/* ============================================
   ROYAL STITCH PUNJAB — COMPONENTS
   Buttons, Cards, Forms, Modals, Navigation
   ============================================ */

/* ══════════════════════════════════════════════
   NAVIGATION BAR
   ══════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-xl);
  background: var(--bg-overlay);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.navbar-brand .brand-icon {
  width: 40px;
  height: 40px;
  color: var(--icon-color);
  filter: var(--icon-glow);
}

.navbar-brand .brand-name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
}

.navbar-brand .brand-name span {
  color: var(--accent);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.navbar-links a,
.navbar-links button {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  transition: color var(--transition-fast);
  position: relative;
  padding: var(--space-xs) 0;
  background: none;
  border: none;
  cursor: pointer;
}

.navbar-links a::after,
.navbar-links button.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-base);
}

.navbar-links a:hover,
.navbar-links a.active,
.navbar-links button.nav-link:hover {
  color: var(--text-primary);
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
  width: 100%;
}

.navbar-controls {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Theme Toggle */
.theme-toggle,
.lang-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
  cursor: pointer;
}

.theme-toggle:hover,
.lang-toggle:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-glow);
}

.theme-toggle svg,
.lang-toggle svg {
  width: 20px;
  height: 20px;
  color: var(--icon-color);
  filter: var(--icon-glow);
}

/* Mobile Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  z-index: calc(var(--z-overlay) + 1);
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-overlay);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: var(--z-overlay);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.mobile-nav.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a,
.mobile-nav button {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  transition: color var(--transition-fast);
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-nav a:hover,
.mobile-nav button:hover {
  color: var(--accent);
}

/* ══════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-xl);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn svg {
  width: 18px;
  height: 18px;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-strong);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent-border);
}

.btn-secondary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-ghost:hover {
  border-color: var(--accent-border);
  color: var(--accent);
}

.btn-cta {
  background: var(--gradient-crimson);
  color: #FFFFFF;
  border-color: var(--crimson);
  font-size: var(--text-base);
  padding: var(--space-md) var(--space-2xl);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(217, 4, 41, 0.4);
}

.btn-lg {
  padding: var(--space-md) var(--space-2xl);
  font-size: var(--text-base);
  border-radius: var(--border-radius-lg);
}

.btn-sm {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-xs);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--border-radius-full);
}

/* ══════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.card-body {
  padding: var(--space-lg);
}

.card-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-xs);
}

.card-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--border-radius-md);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--icon-color);
  filter: var(--icon-glow);
}

/* Service Card Variant */
.service-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
}

.service-card .card-icon {
  margin: 0 auto var(--space-lg);
  width: 72px;
  height: 72px;
  border-radius: var(--border-radius-xl);
}

.service-card .card-icon svg {
  width: 36px;
  height: 36px;
}

/* Testimonial Card */
.testimonial-card {
  padding: var(--space-2xl);
  position: relative;
}

.testimonial-card .quote-icon {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 40px;
  height: 40px;
  color: var(--accent-light);
  opacity: 0.3;
}

.testimonial-card .stars {
  display: flex;
  gap: 4px;
  margin-bottom: var(--space-md);
}

.testimonial-card .stars svg {
  width: 18px;
  height: 18px;
  color: var(--icon-color);
  filter: var(--icon-glow);
}

.testimonial-card .review-text {
  font-size: var(--text-md);
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: var(--line-height-relaxed);
}

.testimonial-card .reviewer {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.testimonial-card .reviewer-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-full);
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  color: #FFFFFF;
  font-size: var(--text-lg);
}

.testimonial-card .reviewer-name {
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
}

.testimonial-card .reviewer-location {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════
   FORMS
   ══════════════════════════════════════════════ */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  color: var(--text-primary);
  font-size: var(--text-base);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px var(--accent-light);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-md) center;
  padding-right: var(--space-2xl);
  cursor: pointer;
}

/* File Upload */
.file-upload {
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
}

.file-upload:hover,
.file-upload.dragover {
  border-color: var(--accent-border);
  background: var(--accent-light);
}

.file-upload input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-upload .upload-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  color: var(--icon-color);
  filter: var(--icon-glow);
}

.file-upload .upload-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.file-upload .upload-text strong {
  color: var(--accent);
}

/* ══════════════════════════════════════════════
   MODAL / LIGHTBOX
   ══════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}

.modal-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--border-radius-md);
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--border-radius-full);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-full);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-nav.prev { left: -60px; }
.modal-nav.next { right: -60px; }

/* ══════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ══════════════════════════════════════════════ */
.toast-container {
  position: fixed;
  top: calc(var(--navbar-height) + var(--space-md));
  right: var(--space-lg);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.toast {
  min-width: 300px;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--border-radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  animation: slideInRight 0.4s ease forwards;
}

.toast.success {
  border-left: 4px solid #22C55E;
}

.toast.error {
  border-left: 4px solid #EF4444;
}

.toast.info {
  border-left: 4px solid var(--accent);
}

.toast-message {
  font-size: var(--text-sm);
  color: var(--text-primary);
}

.toast-close {
  margin-left: auto;
  cursor: pointer;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.toast-close:hover {
  color: var(--text-primary);
}

/* ══════════════════════════════════════════════
   WHATSAPP FLOATING BUTTON
   ══════════════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: var(--z-whatsapp);
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-full);
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: all var(--transition-base);
  animation: float 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-card);
  color: var(--text-primary);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--border-radius-md);
  font-size: var(--text-sm);
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
}

/* ══════════════════════════════════════════════
   EMERGENCY SOS BUTTON
   ══════════════════════════════════════════════ */
.sos-button {
  position: fixed;
  bottom: var(--space-xl);
  left: var(--space-xl);
  z-index: var(--z-sos);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  background: var(--gradient-crimson);
  color: #FFFFFF;
  border-radius: var(--border-radius-xl);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(217, 4, 41, 0.4);
  animation: pulseSOS 2s infinite;
  transition: all var(--transition-base);
  border: none;
}

.sos-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(217, 4, 41, 0.6);
}

.sos-button svg {
  width: 18px;
  height: 18px;
}

/* ══════════════════════════════════════════════
   BADGES & TAGS
   ══════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  border-radius: var(--border-radius-xl);
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.badge-gold {
  background: rgba(212, 175, 55, 0.15);
  color: #D4AF37;
  border-color: #D4AF37;
}

.badge-crimson {
  background: rgba(217, 4, 41, 0.15);
  color: #D90429;
  border-color: #D90429;
}

/* ══════════════════════════════════════════════
   GALLERY FILTER TABS
   ══════════════════════════════════════════════ */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-2xl);
}

.filter-tab {
  padding: var(--space-xs) var(--space-lg);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-xl);
  cursor: pointer;
  transition: all var(--transition-base);
}

.filter-tab:hover {
  border-color: var(--accent-border);
  color: var(--accent);
}

.filter-tab.active {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}

/* ══════════════════════════════════════════════
   PROCESS STEPS
   ══════════════════════════════════════════════ */
.process-steps {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 20%;
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-border), var(--accent-border));
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 250px;
}

.process-step .step-number {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius-full);
  background: var(--gradient-accent);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  box-shadow: var(--shadow-glow);
}

.process-step .step-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-xs);
}

.process-step .step-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
