/* css/footer.css */

/* ── Testimonials ── */
.testimonials {
  padding: 4rem 0 0 0; 
  background: var(--bg-main);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.testi-card {
  background: #ffffff;
  padding: 3.5rem 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.05);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.02);
  transition: all 0.3s ease;
}

.testi-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.testi-card__stars {
  color: #fbbf24;
  display: flex;
  gap: 6px;
  margin-bottom: 2rem;
}

.testi-card__quote {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
  font-weight: 500;
}

.testi-card__name {
  font-weight: 800;
  display: block;
}

.testi-card__role {
  font-size: 0.85rem;
  color: var(--accent-primary);
  text-transform: uppercase;
  font-weight: 700;
}

/* ── CONTACT SECTION (Bento Restore) ── */
.contact {
  padding: 4rem 0;
  background: var(--bg-main);
  position: relative;
}

.contact__bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(140px, auto);
  gap: 1.5rem;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

.bento-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.05);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.02);
  padding: 1.5rem;
  transition: all 0.4s ease;
  overflow: hidden;
  position: relative;
}

.bento-box:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.bento-header {
  grid-column: span 12;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bento-details {
  grid-column: span 5;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5rem;
  background: #ffffff;
  padding: 3.5rem;
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.bento-map {
  grid-column: span 7;
  grid-row: span 2;
  padding: 0;
  min-height: 400px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  /* Ensure direction for alignment */
  flex-direction: row; 
}

[dir="rtl"] .detail-item {
  flex-direction: row; /* Flex already handles RTL if dir is set on parent */
}

.bento-icon {
  width: 44px;
  height: 44px;
  background: #f1f5f9;
  color: var(--accent-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.bento-content {
  display: flex;
  flex-direction: column;
  text-align: left;
  flex: 1;
}

[dir="rtl"] .bento-content {
  text-align: right;
}

.bento-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.bento-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  line-height: 1.2;
}

.bento-value:hover {
  color: var(--accent-primary);
}

/* ── FOOTER (Dark & Compact) ── */
.footer {
  background: #0f172a;
  color: #f8fafc;
  padding: 6rem 0 3rem 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 5rem;
}

.footer__col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer__logo img {
  height: 120px;
  width: auto;
  margin-bottom: 1.5rem;
}

.footer__about {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  max-width: 320px;
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.3s ease;
}

.footer__social a:hover {
  background: var(--accent-primary);
  transform: translateY(-3px);
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__links li {
  margin-bottom: 1rem;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer__links a:hover {
  color: var(--accent-primary);
  padding-left: 5px;
}

.footer__contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__contact li {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

.footer__contact svg {
  color: var(--accent-primary);
  flex-shrink: 0;
}

.footer__bottom {
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer__legal {
  display: flex;
  gap: 2rem;
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__legal a:hover {
  color: #ffffff;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 968px) {
  .testimonials__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .testi-card {
    padding: 2rem 1.5rem;
  }

  .contact__bento {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem;
    padding: 0 1rem !important;
  }

  .bento-box {
    width: 100% !important;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 3rem 0 2rem 0;
  }

  .footer__grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 2.5rem !important;
    text-align: center !important;
    margin-bottom: 3rem;
  }

  .footer__links {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 0 !important;
    list-style: none !important;
  }
  
  /* Hide both Quick Links and Services on mobile */
  .footer__col:nth-child(2),
  .footer__col:nth-child(3) {
    display: none !important;
  }

  /* Center the contact list items */
  .footer__contact {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 0 !important;
    list-style: none !important;
    gap: 1rem !important;
  }

  .footer__contact li {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem !important;
  }

  .footer__col.brand {
    text-align: center !important;
  }
  
  .footer__bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer__legal {
    justify-content: center;
    gap: 1.5rem;
  }

  /* Contact overrides */
  .bento-details {
    padding: 2rem 1.5rem !important;
    gap: 1.5rem !important;
  }

  .bento-map {
    height: 300px !important;
    display: flex !important;
  }

  .bento-map iframe {
    height: 100% !important;
    width: 100% !important;
  }

  /* Footer Logo overrides */
  .footer__logo {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 2rem;
  }

  .footer__logo img {
    height: 180px !important;
  }

  .footer__social {
    justify-content: center;
    margin-bottom: 2rem;
  }
}

/* RTL Support */
[dir="rtl"] .footer__links a:hover {
  padding-left: 0;
  padding-right: 5px;
}

/* ── Scroll to Top Button ── */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #2563eb !important; /* Modern blue */
  color: #ffffff !important;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  background: #1d4ed8 !important; /* Darker blue on hover */
}

html[dir="rtl"] .scroll-top-btn {
  right: auto;
  left: 2rem;
}

