/*==============================================================================
STATSCALAR ENTERPRISE - FOOTER STYLES
Version: 2.0
Component: Website Footer
Framework: Laravel Blade + Bootstrap
Author: Balagali
Description: Professional footer styling with newsletter signup, trust indicators,
links grid, and complete responsive design for enterprise platform.
==============================================================================*/

/*==============================================================================
01. FOOTER CONTAINER - Main Footer Wrapper
==============================================================================*/
.ss-footer {
  position: relative;
  overflow: hidden;
  padding: 50px 0 0;
  background: #111827;
  color: #CBD5E1;
}

/* Top Gradient Accent */
.ss-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--ss-primary),
    #4ADE80,
    var(--ss-primary)
  );
  z-index: 1;
}

.ss-footer .container {
  position: relative;
  z-index: 2;
}

/*==============================================================================
02. FOOTER TOP - Header Section with Logo and Links
==============================================================================*/
.footer-top {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 70px;
  align-items: start;
  padding-bottom: 15px;
}

/*==============================================================================
03. FOOTER BRAND - Logo and Contact Info
==============================================================================*/
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Logo */
.footer-logo {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -1px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.3s ease;
  max-width: fit-content;
}

.footer-logo:hover {
  transform: translateY(-2px);
}

.footer-logo span {
  color: var(--ss-primary);
  font-weight: 900;
}

/* Description (if used) */
.footer-description {
  margin-bottom: 26px;
  color: #A8B6C3;
  line-height: 1.9;
  font-size: 15px;
}

/*==============================================================================
04. FOOTER CONTACT - Email Link
==============================================================================*/
.footer-contact {
  margin-top: 0;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #D7E3EC;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-contact a:hover {
  color: var(--ss-primary);
  gap: 10px;
}

.footer-contact i {
  color: var(--ss-primary);
  font-size: 16px;
  transition: transform 0.3s ease;
}

.footer-contact a:hover i {
  transform: translateY(-2px);
}

/*==============================================================================
05. FOOTER CONNECT - Social Media Section
==============================================================================*/
.footer-connect {
  margin-bottom: 28px;
}

.footer-connect h5 {
  margin-top: 15px;
  margin-bottom: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Social Links */
.footer-social {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-social a {
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: all 0.30s ease;
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--ss-primary);
  border-color: var(--ss-primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 168, 107, 0.2);
}

.footer-social a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 168, 107, 0.3);
}

.footer-social i {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.footer-social a:hover i {
  transform: scale(1.1);
}

/*==============================================================================
06. FOOTER RIGHT - Links Section
==============================================================================*/
.footer-right {
  display: flex;
  flex-direction: column;
}

/*==============================================================================
07. FOOTER LINKS GRID - 4-Column Link Grid
==============================================================================*/
.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 55px;
  margin-bottom: 30px;
  line-height: 1;
  font-size: 14px;
}

/* Column Headers */
.footer-column h4 {
  margin-bottom: 20px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

/* Column Lists */
.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-column li {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Column Links */
.footer-column a {
  color: #9FB0BB;
  text-decoration: none;
  transition: all 0.30s ease;
  display: inline-block;
}

.footer-column a:hover {
  color: #fff;
  padding-left: 8px;
}

.footer-column a:focus-visible {
  outline: none;
  color: #fff;
}

/*==============================================================================
08. NEWSLETTER SECTION - Email Subscription
==============================================================================*/
.footer-newsletter-wide {
  margin: 0 0 25px;
  padding: 20px 50px;
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footer-newsletter-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}

/* Newsletter Label */
.footer-newsletter-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--ss-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Newsletter Text */
.footer-newsletter-text h3 {
  margin-bottom: 16px;
  color: #fff;
  font-size: 30px;
  line-height: 1.3;
  font-weight: 700;
}

.footer-newsletter-text p {
  margin: 0;
  color: #A8B6C3;
  line-height: 1.8;
  font-size: 15px;
}

/* Subscribe Form */
.footer-subscribe {
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
}

.footer-subscribe .ss-input {
  flex: 1;
  height: 56px;
  padding: 0 18px;
  border: none;
  border-radius: 16px;
  background: #fff;
  font-size: 15px;
  color: #0F172A;
  transition: all 0.3s ease;
}

.footer-subscribe .ss-input::placeholder {
  color: #9FB0BB;
}

.footer-subscribe .ss-input:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 168, 107, 0.15);
}

.footer-subscribe .ss-btn {
  min-width: 170px;
  height: 56px;
  padding: 0 30px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

/* Newsletter Note */
.footer-note {
  display: block;
  color: #94A3B8;
  font-size: 13px;
  text-align: left;
}

/*==============================================================================
09. TRUST STRIP - Enterprise Trust Indicators
==============================================================================*/
.footer-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding: 14px 0;
  margin-bottom: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-trust-item {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-trust-item:hover {
  transform: translateY(-2px);
}

/* Trust Icon */
.footer-trust-item i {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(0, 168, 107, 0.12);
  color: var(--ss-primary);
  font-size: 24px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.footer-trust-item:hover i {
  background: var(--ss-primary);
  color: #fff;
  transform: scale(1.1);
}

/* Trust Text */
.footer-trust-item h5 {
  margin-bottom: 4px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.footer-trust-item p {
  margin: 0;
  color: #94A3B8;
  font-size: 14px;
  line-height: 1.4;
}

/*==============================================================================
10. FOOTER BOTTOM - Copyright and Bottom Links
==============================================================================*/
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 26px 0;
}

/* Copyright */
.footer-copyright p {
  margin: 0;
  color: #94A3B8;
  font-size: 14px;
}

.footer-copyright strong {
  color: #fff;
  font-weight: 600;
}

/* Bottom Links */
.footer-bottom-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-bottom-links a {
  position: relative;
  color: #94A3B8;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.footer-bottom-links a:hover {
  color: #fff;
}

/* Bottom Link Underline Animation */
.footer-bottom-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: var(--ss-primary);
  transition: width 0.3s ease;
}

.footer-bottom-links a:hover::after {
  width: 100%;
}

.footer-bottom-links a:focus-visible {
  outline: none;
  color: #fff;
}

/*==============================================================================
11. RESPONSIVE DESIGN - Media Queries
==============================================================================*/

/* Large Desktop - 1400px and below */
@media (max-width: 1400px) {
  .footer-top {
    grid-template-columns: 340px 1fr;
    gap: 50px;
  }
  
  .footer-links-grid {
    gap: 40px;
  }
}

/* Large Tablet - 1200px and below */
@media (max-width: 1200px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 55px;
  }
  
  .footer-brand {
    max-width: 760px;
  }
  
  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  
  .footer-newsletter-content {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  
  .footer-newsletter-text {
    text-align: center;
  }
  
  .footer-trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet - 992px and below */
@media (max-width: 992px) {
  .ss-footer {
    padding: 70px 0 0;
  }
  
  .footer-newsletter-wide {
    padding: 36px;
  }
  
  .footer-subscribe {
    flex-direction: column;
  }
  
  .footer-subscribe .ss-btn {
    width: 100%;
    min-width: auto;
  }
  
  .footer-trust-strip {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .footer-bottom-links {
    justify-content: center;
  }
}

/* Small Tablet - 768px and below */
@media (max-width: 768px) {
  .ss-footer {
    padding: 60px 0 0;
  }
  
  .footer-logo {
    font-size: 34px;
  }
  
  .footer-description {
    font-size: 15px;
  }
  
  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .footer-column {
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .footer-column:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  
  .footer-newsletter-wide {
    padding: 30px 24px;
  }
  
  .footer-newsletter-text h3 {
    font-size: 28px;
  }
}

/* Mobile - 576px and below */
@media (max-width: 576px) {
  .ss-footer {
    text-align: center;
  }
  
  .footer-brand {
    align-items: center;
    gap: 16px;
  }
  
  .footer-logo {
    font-size: 30px;
  }
  
  .footer-description {
    max-width: 100%;
  }
  
  .footer-contact {
    justify-content: center;
    display: flex;
  }
  
  .footer-connect {
    text-align: center;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-column {
    align-items: center;
  }
  
  .footer-column ul {
    align-items: center;
  }
  
  .footer-column a:hover {
    padding-left: 0;
  }
  
  .footer-newsletter-text h3 {
    font-size: 24px;
  }
  
  .footer-newsletter-wide {
    padding: 26px 20px;
  }
  
  .footer-trust-item {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-bottom-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* Extra Small Mobile - 380px and below */
@media (max-width: 380px) {
  .footer-bottom-links {
    grid-template-columns: 1fr;
  }
  
  .footer-newsletter-wide {
    padding: 20px 16px;
  }
  
  .footer-logo {
    font-size: 26px;
  }
}

/*==============================================================================
12. ACCESSIBILITY & UTILITIES
==============================================================================*/

/* Focus Styles */
.footer-social a:focus-visible,
.footer-column a:focus-visible,
.footer-bottom-links a:focus-visible {
  outline: none;
  color: #fff;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .footer-social a,
  .footer-column a,
  .footer-bottom-links a,
  .footer-trust-item,
  .footer-trust-item i {
    transition: none;
    animation: none;
  }
  
  .footer-social a:hover {
    transform: none;
  }
  
  .footer-logo:hover,
  .footer-trust-item:hover {
    transform: none;
  }
}

/* Print Styles */
@media print {
  .ss-footer {
    padding-top: 20px;
  }
  
  .footer-newsletter-wide {
    display: none;
  }
}
