/* ==========================================================================
   Components CSS — ColorLab Design System
   Buttons • Cards • Badges • Nav • Forms • Marketing blocks
   ========================================================================== */

/* ==========================================================================
   1. NAVBAR
   ========================================================================== */

.navbar {
  border-bottom: 1px solid transparent;
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
  transition:
    background-color var(--transition-normal),
    border-color var(--transition-normal),
    box-shadow var(--transition-normal);
}

.navbar.scrolled {
  border-bottom-color: var(--color-border);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--color-text);
  display: flex;
  align-items: center;
}

.logo img {
  height: 30px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-text);
}

/* ==========================================================================
   2. BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

/* Black / brand primary button */
.btn-primary {
  background-color: var(--brand-primary);
  color: var(--text-inverse);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: #000;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* Ghost / secondary button */
.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-main);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--bg-muted);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* Blue accent button — used for hero primary CTA */
.btn-accent {
  background-color: var(--brand-accent);
  color: var(--text-inverse);
  box-shadow: 0 4px 14px 0 rgba(124, 58, 237, 0.3);
  border-radius: var(--radius-md);
}

.btn-accent:hover {
  background-color: #6D28D9;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 0.975rem;
}

/* ==========================================================================
   3. CARDS (Base)
   ========================================================================== */

.card {
  background-color: var(--bg-card);
  border-radius: var(--r-xl);
  border: 1px solid var(--border-subtle);
  padding: var(--s-8);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-relax);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border-hover);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 0) var(--mouse-y, 0),
    rgba(124, 58, 237, 0.03),
    transparent 40%
  );
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
}

.card:hover::after {
  opacity: 1;
}

.card h3 {
  font-size: var(--text-h4);
  font-weight: 700;
  margin-bottom: var(--s-2);
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.card p {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text-muted);
}

/* ==========================================================================
   4. BADGES
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.35rem 0.9rem;
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--brand-accent-soft);
  color: var(--brand-accent);
  border: 1px solid rgba(124, 58, 237, 0.15);
  margin-bottom: var(--s-4);
}

.badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 1;
  flex-shrink: 0;
}

/* Dark glass badge — used in offers section */
.badge-glass {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  letter-spacing: 0.08em;
}

.badge-glass::before {
  background: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */

.hero {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: var(--text-hero);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: var(--s-4);
  color: var(--text-main);
}

.hero-subtitle {
  font-size: var(--text-h4);
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.6;
  margin: 0 0 var(--s-8);
}

.hero-actions {
  display: flex;
  gap: 0.875rem;
  align-items: center;
  margin-bottom: 2rem;
}

/* Hero CTA button is blue (accent), not black */
.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.875rem 1.75rem;
  font-size: 0.975rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  background-color: var(--preview-primary, var(--color-hero-cta));
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color 0.4s ease,
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
  box-shadow: 0 4px 16px rgba(26, 86, 255, 0.25);
  letter-spacing: -0.01em;
  line-height: 1;
}

.hero-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(26, 86, 255, 0.35);
  color: #fff;
}

/* Interactive color picker (try-it panel) */
.hero-interactive {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
}

.hero-interactive-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-color-picker {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

/* Palette swatch buttons */
.color-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #fff;
  cursor: pointer;
  background: none;
  padding: 0;
  box-shadow: 0 0 0 2px transparent;
  transition:
    transform 160ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 160ms ease;
  flex-shrink: 0;
}

.color-btn:hover {
  transform: scale(1.22);
}

.color-btn.active {
  transform: scale(1.18);
}

/* ==========================================================================
   6. HERO VISUAL CARDS (Right side floating composition)
   ========================================================================== */

.hero-visuals {
  position: relative;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ambient blur glow behind cards */
.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 260px;
  height: 260px;
  background: var(--preview-primary, var(--color-hero-cta));
  filter: blur(88px);
  opacity: 0.12;
  transform: translate(-50%, -50%);
  transition: background 0.5s ease;
  border-radius: 50%;
  pointer-events: none;
}

/* Decorative dot grid */
.hero-dots {
  position: absolute;
  top: 10px;
  right: -10px;
  width: 140px;
  height: 140px;
  background-image: radial-gradient(
    var(--color-border) 1.5px,
    transparent 1.5px
  );
  background-size: 14px 14px;
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
}

/* Primary palette card */
.hero-palette-card {
  position: absolute;
  top: 30px;
  right: 10px;
  width: 256px;
  background-color: var(--preview-card, #f8fafc);
  border: 1px solid var(--preview-border, var(--color-border));
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.04);
  transform: rotate(2.5deg);
  z-index: 3;
  transition:
    background-color 0.5s ease,
    border-color 0.5s ease,
    box-shadow 0.5s ease;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.1rem;
}

.hero-card-dots {
  display: flex;
  gap: 0.45rem;
}

.hero-card-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transition: background-color 0.4s ease;
}

.hero-card-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--preview-text-sec, var(--color-text-muted));
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-swatch-primary {
  height: 90px;
  background-color: var(--preview-primary, var(--color-hero-cta));
  border-radius: 10px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-end;
  padding: 0.7rem;
  transition: background-color 0.4s ease;
}

.hero-swatch-label {
  background-color: rgba(255, 255, 255, 0.92);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #0f172a;
}

.hero-swatch-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.hero-swatch-secondary,
.hero-swatch-accent {
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  padding: 0.45rem;
  transition: background-color 0.4s ease;
}

.hero-swatch-secondary {
  background-color: var(--preview-secondary, #0ea5e9);
}

.hero-swatch-accent {
  background-color: var(--preview-accent, #f43f5e);
}

.hero-swatch-label-sm {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.58rem;
  font-weight: 700;
  color: #0f172a;
}

/* Secondary UI block-fragment card */
.hero-ui-block {
  position: absolute;
  bottom: 50px;
  left: 0;
  width: 210px;
  background-color: var(--preview-surface, #fff);
  border: 1px solid var(--preview-border, var(--color-border));
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.07),
    0 3px 8px rgba(0, 0, 0, 0.04);
  transform: rotate(-3.5deg);
  z-index: 2;
  transition:
    background-color 0.5s ease,
    border-color 0.5s ease;
}

.hero-ui-block-line {
  height: 5px;
  width: 42%;
  background-color: var(--preview-text-sec, var(--color-text-muted));
  border-radius: 3px;
  margin-bottom: 1.1rem;
  opacity: 0.4;
  transition: background-color 0.4s ease;
}

.hero-ui-block-placeholder {
  height: 52px;
  background-color: var(--preview-text-pri, var(--color-text));
  border-radius: 8px;
  margin-bottom: 0.9rem;
  opacity: 0.05;
  transition: background-color 0.4s ease;
}

.hero-ui-block-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.hero-ui-input {
  flex: 1;
  height: 26px;
  background-color: var(--preview-bg, #f1f5f9);
  border: 1px solid var(--preview-border, var(--color-border));
  border-radius: 6px;
  transition: all 0.4s ease;
}

.hero-ui-btn {
  width: 56px;
  height: 26px;
  background-color: var(--preview-primary, var(--color-hero-cta));
  border-radius: 6px;
  transition: background-color 0.4s ease;
}

/* Floating notification chip */
.hero-chip {
  position: absolute;
  bottom: 158px;
  right: -8px;
  padding: 0.55rem 1rem;
  background-color: var(--preview-card, #f8fafc);
  border: 1px solid var(--preview-border, var(--color-border));
  color: var(--preview-text-pri, var(--color-text));
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.78rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 4;
  transition:
    background-color 0.4s ease,
    border-color 0.4s ease,
    color 0.4s ease;
  white-space: nowrap;
}

.hero-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--preview-accent, #f43f5e);
  flex-shrink: 0;
  animation: chipPulse 2s ease-in-out infinite;
}

@keyframes chipPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(0.85);
  }
}

/* ==========================================================================
   7. SECTION TYPOGRAPHY
   ========================================================================== */

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-bottom: var(--s-2);
}

.section-title {
  font-size: var(--text-h2);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: var(--s-3);
  color: var(--text-main);
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto var(--s-16);
  line-height: 1.6;
}

/* ==========================================================================
   8. SERVICE CARDS
   ========================================================================== */
/* Service Card Specifics */
.service-card:hover { border-top-color: var(--brand-accent); }

.service-card h3 {
  font-size: var(--text-h4);
  font-weight: 700;
  margin-bottom: var(--s-2);
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.service-card p {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text-muted);
}

/* ==========================================================================
   9. FEATURE CARDS
   ========================================================================== */
/* Feature Card specifics - layout and spacing already in base .card */

/* ==========================================================================
   10. ICON BOX
   ========================================================================== */

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bg-muted);
  color: var(--brand-accent);
  margin-bottom: var(--s-6);
  flex-shrink: 0;
  transition: all var(--transition-base);
  border: 1px solid var(--border-subtle);
}

.card:hover .icon-box {
  transform: scale(1.1) rotate(-4deg);
  background: var(--brand-accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px -4px var(--brand-accent);
}

/* ==========================================================================
   11. HOW IT WORKS — Step Cards
   ========================================================================== */

.step-card {
  position: relative;
  padding: 2rem;
  text-align: inherit;
}

.step-number {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--color-text);
  opacity: 0.05;
  display: block;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.5rem;
}

.step-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.step-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* ==========================================================================
   12. PRICING
   ========================================================================== */

.pricing-grid {
  display: grid;
  gap: var(--s-6);
  margin-top: var(--s-10);
  align-items: start;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-card {
  /* Inherits foundational premium styles from .card */
}

.pricing-card.popular {
  border: 2px solid var(--brand-accent);
  box-shadow: 0 12px 40px -8px rgba(124, 58, 237, 0.2);
}

.pricing-card.popular:hover {
  transform: translateY(-12px) scale(1.02);
}

.pricing-header h3 {
  font-size: var(--text-h3);
  margin-bottom: var(--s-2);
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  margin: var(--s-6) 0;
  letter-spacing: -0.05em;
}

.pricing-price span {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-features {
  margin-bottom: var(--s-8);
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--s-3);
}

.pricing-features .icon {
  width: 18px;
  height: 18px;
  color: var(--brand-accent);
}

.pricing-card.popular::before {
  content: "موصى به";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-accent);
  color: #fff;
  padding: 0.32rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pricing-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  color: var(--color-text);
}

.pricing-header p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

.pricing-price {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--color-text);
  margin: 1.25rem 0;
  letter-spacing: -0.04em;
  line-height: 1;
  display: flex;
  align-items: flex-end;
  gap: 0.2rem;
}

.pricing-price sup {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.pricing-price span {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-bottom: 0.15rem;
}

.pricing-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 1.25rem 0;
}

.pricing-features {
  margin: 0 0 1.5rem;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  line-height: 1.4;
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* SVG check icon for pricing lists */
.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  flex-shrink: 0;
  font-size: 0.6rem;
  font-weight: 700;
}

.pricing-features li svg.icon {
  width: 15px;
  height: 15px;
  color: #059669;
  flex-shrink: 0;
}

/* ==========================================================================
   13. TESTIMONIALS
   ========================================================================== */

.testimonials-grid {
  display: grid;
  gap: var(--s-6);
  margin-top: var(--s-10);
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  /* Inherits unified premium styles from .card */
}

.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 5rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--color-text);
  opacity: 0.04;
  pointer-events: none;
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--s-4);
  color: var(--brand-yellow);
  font-size: var(--text-base);
}

.testimonial-content {
  font-size: var(--text-base);
  color: var(--text-main);
  margin-bottom: var(--s-6);
  font-style: italic;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--color-border);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.author-info h5 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
  margin: 0 0 0.15rem;
}

.author-info p {
  font-size: 0.78rem;
  color: var(--color-text-light);
  margin: 0;
  line-height: 1.4;
}

/* ==========================================================================
   14. FORMS
   ========================================================================== */

.form-group {
  margin-bottom: 1.25rem;
  text-align: start;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--bg-muted);
  border: var(--border-width) solid var(--border-main);
  border-radius: var(--radius-md);
  color: var(--text-main);
  transition: all var(--transition-base);
  line-height: 1.5;
}

.form-control::placeholder {
  color: var(--text-light);
}

.form-control:focus {
  outline: none;
  background: #fff;
  border-color: var(--border-interactive);
  box-shadow: 0 0 0 4px var(--border-focus);
}

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

/* ==========================================================================
   15. CONTACT
   ========================================================================== */

.contact-wrapper {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr 1.5fr;
  }
}

.contact-info {
  text-align: start;
}

.info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
  align-items: flex-start;
}

.info-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  background: #eff6ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.info-text h5 {
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.info-text p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
}

.contact-form.card {
  padding: 2.5rem;
}

/* Map Placeholder */
.map-placeholder {
  width: 100%;
  height: 260px;
  background:
    linear-gradient(rgba(241, 245, 249, 0.9), rgba(241, 245, 249, 0.9)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 24px,
      rgba(0, 0, 0, 0.04) 24px,
      rgba(0, 0, 0, 0.04) 25px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 24px,
      rgba(0, 0, 0, 0.04) 24px,
      rgba(0, 0, 0, 0.04) 25px
    );
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast);
}

.map-placeholder:hover {
  border-color: var(--color-border-hover);
  background:
    linear-gradient(rgba(236, 240, 245, 0.95), rgba(236, 240, 245, 0.95)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 24px,
      rgba(0, 0, 0, 0.05) 24px,
      rgba(0, 0, 0, 0.05) 25px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 24px,
      rgba(0, 0, 0, 0.05) 24px,
      rgba(0, 0, 0, 0.05) 25px
    );
}

.map-placeholder::after {
  content: "📍  Click to load map";
  color: var(--color-text-light);
  font-size: 0.825rem;
  font-weight: 500;
}

.map-placeholder::before {
  content: "";
  width: 40px;
  height: 40px;
  background: var(--color-border);
  border-radius: 50%;
  display: block;
}

/* ==========================================================================
   16. FAQ ACCORDION
   ========================================================================== */

.faq-accordion {
  max-width: 720px;
  margin: 2.5rem auto 0;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  margin-bottom: var(--s-3);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.faq-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  gap: 1rem;
}

.faq-header h4 {
  margin: 0;
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.faq-chevron {
  width: 18px;
  height: 18px;
  color: var(--color-text-light);
  flex-shrink: 0;
  transition:
    transform var(--transition-normal),
    color var(--transition-fast);
}

.faq-card.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--color-text);
}

.faq-card.open .faq-header {
  border-bottom: 1px solid var(--color-border);
}

/* Smooth height animation via CSS grid trick */
.faq-content-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--transition-normal);
  overflow: hidden;
}

.faq-content-wrapper.open {
  grid-template-rows: 1fr;
}

.faq-content-inner {
  overflow: hidden;
  padding: 0 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.925rem;
  line-height: 1.8;
}

.faq-content-wrapper.open .faq-content-inner {
  padding: 1.1rem 1.5rem 1.5rem;
}

/* Legacy compat — hide old faq-content (motion.css takes over) */
.faq-content {
  display: block !important;
  padding: 0 !important;
  animation: none !important;
}

/* ==========================================================================
   17. FOOTER
   ========================================================================== */

.footer {
  background: var(--bg-muted);
  padding-top: var(--s-20);
  padding-bottom: var(--s-12);
  border-top: 1px solid var(--border-subtle);
}

.footer-top {
  display: grid;
  gap: var(--s-12);
  margin-bottom: var(--s-16);
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 2.5fr 1fr 1fr 1fr;
  }
}

.footer-col h5 {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-main);
  margin-bottom: var(--s-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.footer-links a {
  color: var(--text-muted);
  font-size: var(--text-sm);
  transition: all var(--transition-base);
}

.footer-links a:hover {
  color: var(--brand-accent);
  transform: translateX(-4px);
}

[dir="rtl"] .footer-links a:hover {
  transform: translateX(4px);
}

.footer-bottom {
  padding-top: var(--s-8);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  align-items: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom-links {
  display: flex;
  gap: var(--s-6);
}

/* ==========================================================================
   18. MISC UTILITIES
   ========================================================================== */

/* Text selection */
::selection {
  background: rgba(26, 86, 255, 0.12);
  color: var(--color-text);
}

/* Nav accent link (Login btn in nav) */
.nav-links .btn.btn-sm {
  border-radius: var(--radius-md);
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}
