/* ==========================================================================
   Komaki Roy EV - Cyber-Grid Footer (Requires root.css)
   ========================================================================== */

.cyber-footer {
  position: relative;
  background-color: #050505; /* Deep cyber black */
  padding-top: var(--space-2xl);
  overflow: hidden;
  z-index: 1;
}

/* Glowing Top Accent Line */
.footer-glow-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #f36422, transparent);
  box-shadow: 0 0 15px rgba(243, 100, 34, 0.8);
  z-index: 2;
}

/* Premium Tech-Grid Background */
.footer-grid-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center center;
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

/* Fade out the grid at the top and bottom */
.footer-grid-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #050505 0%, transparent 20%, transparent 80%, #050505 100%);
}

.footer-content {
  position: relative;
  z-index: 3;
}

/* --- Pre-Footer CTA (Newsletter) --- */
.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-2xl);
  backdrop-filter: blur(10px);
}

.cta-heading {
  font-size: var(--fs-2xl);
  color: #ffffff;
  margin-bottom: var(--space-xs);
}

.cta-text p {
  color: var(--clr-text-muted);
  margin: 0;
}

.cta-form {
  display: flex;
  gap: var(--space-sm);
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.cyber-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 4px !important;
  color: #ffffff !important;
  transition: border-color var(--transition-fast) !important;
}

.cyber-input:focus {
  border-color: #f36422 !important;
  box-shadow: 0 0 10px rgba(243, 100, 34, 0.2) !important;
}

/* Subscribe button using the cyber styling */
.cta-form .cyber-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  background: rgba(243, 100, 34, 0.1);
  color: #f36422;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid #f36422;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cta-form .cyber-btn:hover {
  background: #f36422;
  color: #000;
  box-shadow: 0 0 15px rgba(243, 100, 34, 0.5);
}

/* --- Main Footer Grid --- */
.footer-main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer-logo {
  height: clamp(40px, 5vw, 55px);
  margin-bottom: var(--space-md);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.brand-desc {
  font-size: var(--fs-sm);
  line-height: 1.8;
  color: #a1a1aa;
  max-width: 350px;
  margin-bottom: var(--space-md);
}

/* Social Icons (Moved to Brand Column) */
.brand-socials {
  margin-top: var(--space-md);
}

.social-icons {
  display: flex;
  gap: var(--space-sm);
}

.social-glass {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px; /* Techy square look */
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.social-glass:hover {
  background: rgba(243, 100, 34, 0.1);
  border-color: #f36422;
  color: #f36422;
  box-shadow: 0 0 15px rgba(243, 100, 34, 0.3);
  transform: translateY(-3px);
}

.footer-title {
  font-size: var(--fs-base);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
  position: relative;
  display: inline-block;
}

/* Small neon underline for titles */
.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 25px;
  height: 2px;
  background: #f36422;
  box-shadow: 0 0 5px #f36422;
}

/* --- Footer Links --- */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: #a1a1aa;
  font-size: var(--fs-sm);
  display: inline-flex;
  align-items: center;
  transition: all var(--transition-fast);
}

/* Cyber sliding arrow effect on hover */
.footer-links a::before {
  content: '›';
  color: #f36422;
  font-size: 1.2rem;
  line-height: 1;
  opacity: 0;
  transform: translateX(-10px);
  transition: all var(--transition-fast);
  margin-right: 0;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(5px);
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
  margin-right: 8px;
}

/* --- Contact Information --- */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  align-items: flex-start;
}

.contact-icon {
  color: #f36422;
  font-size: var(--fs-lg);
  margin-top: 2px;
  text-shadow: 0 0 10px rgba(243, 100, 34, 0.4);
}

.contact-detail {
  color: #a1a1aa;
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.phone-link {
  color: #ffffff;
  font-weight: 700;
  font-size: var(--fs-base);
  letter-spacing: 0.05em;
  transition: color var(--transition-fast);
}

.phone-link:hover {
  color: #f36422;
  text-shadow: 0 0 10px rgba(243, 100, 34, 0.5);
}

/* --- Footer Bottom Layout (Left / Center / Right) --- */
.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: var(--fs-xs);
  color: #71717a;
}

.footer-bottom p {
  margin: 0;
}

.bottom-col-left {
  text-align: left;
}

.bottom-col-center {
  text-align: center;
}

.bottom-col-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-sm);
}

/* "Managed by aonebox" Link Styling */
.agency-link {
  color: #f36422;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all var(--transition-fast);
}

.agency-link:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(243, 100, 34, 0.6);
}

/* Legal Links */
.legal-links a {
  color: #71717a;
  transition: color var(--transition-fast);
}

.legal-links a:hover {
  color: #ffffff;
}

.separator {
  color: rgba(255, 255, 255, 0.2);
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
  }
  .brand-col {
    grid-column: 1 / -1; /* Makes the brand column full width on tablets */
  }
}

@media (max-width: 768px) {
  .footer-cta {
    flex-direction: column;
    text-align: center;
    padding: var(--space-md);
  }
  .cta-form {
    width: 100%;
    flex-direction: column;
  }
  
  /* Stack the bottom bar on mobile */
  .footer-bottom {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .bottom-col-left, 
  .bottom-col-center {
    text-align: center;
  }
  
  .bottom-col-right {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}