/* css/footer.css */
/* Includes Testimonials, Contact, and Final Footer styles */

.testimonials {
  padding: var(--section-padding);
  background-color: transparent;
  text-align: center;
}

.testimonials__header {
  margin-bottom: 4rem;
  text-align: center;
}

/* ── Grouped Stack Layout ── */
.testimonials__container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 400px; /* Reduced from 480px to tighten space */
}

/* The groups are absolute to crossfade */
.testimonials__group {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
}

/* Make first group visible on load */
.testimonials__group:first-child {
  opacity: 1;
  visibility: visible;
}

.testimonials__card {
  background: #ffffff;
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  height: 100%;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  transition: transform 0.4s ease;
}

.testimonials__card:hover {
  transform: translateY(-5px);
}

.testimonials__text {
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.testimonials__author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonials__author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-primary);
}

.testimonials__author-info {
  display: flex;
  flex-direction: column;
}

.testimonials__author-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1rem;
}

.testimonials__author-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Pagination Indicators ── */
.testimonials__pagination {
  margin-top: 2rem; /* Tighter navigation area */
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.testi-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.testi-dot.active {
  background: var(--accent-primary);
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(234, 88, 12, 0.3);
}

/* Desktop-only: Hide mobile dots and arrows */
.testimonials__mobile-only {
  display: none;
}
.testi-nav {
  display: none;
}

@media (max-width: 968px) {
  .testimonials {
    padding: 2.5rem 0; /* Tightened global section spacing */
  }

  .testimonials__header {
    margin-bottom: 2.5rem;
  }

  .testimonials__container {
    min-height: auto;
    display: block;
    padding: 0 1rem;
  }

  .testimonials__group {
    display: block;
    position: relative;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .testimonials__nav-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 0 0.5rem; /* Small padding for arrows */
  }

  .testi-nav {
    display: flex; /* Show on mobile */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .testi-nav:active {
    transform: translateY(-50%) scale(0.9);
    background: var(--bg-tertiary);
  }

  .testi-nav svg {
    width: 20px;
    height: 20px;
  }

  .testi-prev { left: -5px; }
  .testi-next { right: -5px; }

  /* Single-card stack/fade for mobile */
  .testimonials__card {
    display: none; /* Hide all by default on mobile */
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 2.5rem 2rem;
    min-height: 420px; /* Uniform height to prevent jumps */
    background: #ffffff;
    background-image: radial-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 28px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    text-align: center;
    flex-direction: column;
    justify-content: center;
  }

  .testimonials__card.active-mobile {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  .testimonials__text {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 2rem;
    min-height: 120px; /* Space for text */
  }

  .testimonials__pagination {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
  }

  .testimonials__mobile-only {
    display: block !important;
  }
}

/* Contact Details */
.contact {
  padding: 1rem 0 5rem 0; /* Dramatically reduced top padding to kill the gap */
  background-color: transparent;
}

/* ── Bento Box Contact Architecture ── */
.contact__bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(130px, auto);
  gap: 1.5rem;
  align-items: stretch;
}

.bento-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.55) 100%);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
  overflow: hidden;
  position: relative;
  display: flex;
  text-decoration: none;
}

.bento-box:hover {
  transform: translateY(-5px);
  border-color: rgba(234, 88, 12, 0.4);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

/* Header Span */
.bento-header {
  grid-column: span 12;
  grid-row: span 1;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
  text-align: left;
}

.bento-header .badge {
  align-self: flex-start;
}

.bento-header .contact__desc {
  margin-bottom: 0;
  font-size: 1.05rem;
  margin-top: 1rem;
}

/* Form Span */
.bento-form {
  grid-column: span 8;
  grid-row: span 1;
  padding: 3rem;
  flex-direction: column;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.input-group {
  position: relative;
  width: 100%;
}

.input-group input, 
.input-group textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
}

.input-group textarea {
  min-height: 120px;
  resize: none;
}

.input-group input:focus, 
.input-group textarea:focus {
  background: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(234, 88, 12, 0.1);
}

.form-submit {
  width: 100%;
  padding: 1.1rem !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 1rem;
  cursor: pointer;
  border: none;
}

.submit-icon {
  transition: transform 0.3s ease;
}

.form-submit:hover .submit-icon {
  transform: translate(3px, -3px);
}

.form-status {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  min-height: 1.2em;
}

.form-status.success { color: #059669; }
.form-status.error { color: #dc2626; }

/* Details Span */
.bento-details {
  grid-column: span 4;
  grid-row: span 1;
  padding: 3rem;
  flex-direction: column;
  justify-content: center;
  gap: 2.5rem;
  background: var(--bg-tertiary);
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.detail-item .bento-value {
  font-size: 1.15rem;
  transition: color 0.3s ease;
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
}

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

/* Shared Details */
.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(234, 88, 12, 0.08);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(234, 88, 12, 0.15);
  transition: var(--transition-fast);
}

.bento-box:hover .bento-icon {
  transform: scale(1.1);
}

.bento-icon svg {
  width: 22px;
  height: 22px;
}

.bento-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bento-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

/* Mobile Breakpoint Handlers for Bento */
@media (max-width: 968px) {
  .contact__bento {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 1.25rem;
  }
  .bento-header, .bento-form, .bento-details {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  
  .bento-header {
    padding: 2.5rem 1.75rem;
  }

  .bento-form, .bento-details {
    padding: 2.5rem 1.75rem;
  }

  .bento-details {
    gap: 2rem;
  }

  .detail-item .bento-value {
    font-size: 1.1rem;
  }

  .form-grid {
  grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .contact-form {
    gap: 1.25rem;
  }
}

/* ── Footer Details ── */
/* ── Footer Details ── */
.footer {
  background-color: transparent;
  padding: 4rem 0 2.5rem 0;
  border-top: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.footer__wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.footer__brand-box {
  flex: 1;
  max-width: 450px;
}

.footer__logo {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}

.footer__tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

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

.footer__social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.footer__social a:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.2);
}

.footer__nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer__nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.footer__nav a:hover {
  color: var(--accent-primary);
}

.footer__bottom {
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.footer__legal a {
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.footer__legal a:hover {
  color: var(--accent-primary);
}

/* Mobile Breakpoint Handlers for Footer */
@media (max-width: 968px) {
  .footer {
    padding: 3.5rem 0 2.5rem 0;
  }

  .footer__wrapper {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
  }

  .footer__brand-box {
    max-width: 100%;
  }

  .footer__social {
    justify-content: center;
  }

  .footer__nav {
    justify-content: center;
    gap: 1.5rem;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }

  .footer__legal {
    justify-content: center;
    gap: 1.5rem;
  }
}
