/**
 * Simple & Formal Footer Design
 * Clean layout with professional appearance - Optimized & Enhanced
 * 
 * Note: CSS variables are defined in header.css to avoid conflicts
 * Footer-specific variables are scoped to footer elements
 */

/* ====== Footer-Specific Variables ====== */
/* These are footer-only variables, main theme variables are in header.css */
.footer {
  /* Footer-specific color variables */
  --footer-bg: #fefefe;
  --footer-primary: #351d84; /* Primary brand color for buttons and accents */
  --footer-primary-dark: #2a1769; /* Darker shade for hover states */
  --footer-primary-light: rgba(53, 29, 132, 0.1); /* Light background */
  --footer-text: #1a1a1a;
  --footer-text-muted: #6c757d;
  --footer-border: #e0e0e0;
  --footer-icon-color: #351d84;
  --footer-link-color: #1a1a1a;
  --footer-link-hover: #351d84;
  --footer-icon-hover-bg: rgba(53, 29, 132, 0.05);
  
  /* Footer-specific spacing */
  --footer-spacing-xs: 0.5rem;
  --footer-spacing-sm: 1rem;
  --footer-spacing-md: 1.5rem;
  --footer-spacing-lg: 2rem;
  --footer-spacing-xl: 3rem;
}

/* ====== Footer Structure ====== */
.footer {
  position: relative;
  background: var(--footer-bg);
  color: var(--footer-text);
  overflow: hidden;
  border-top: 1px solid var(--footer-border);
}

/* Wave Animation */
.footer-wave-top {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.footer-wave-top svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.footer-wave-top svg path {
  fill: var(--footer-bg);
}

/* ====== Prefooter Section - Map ====== */
.prefooter {
  padding: var(--footer-spacing-xl) 0;
  background: var(--footer-bg);
  position: relative;
}

.prefooter-map-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--footer-spacing-md);
}

.map-header {
  text-align: center;
  margin-bottom: var(--footer-spacing-lg);
}

.map-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: var(--footer-spacing-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--footer-spacing-sm);
  color: var(--footer-text);
}

.map-title i {
  font-size: 1.5rem;
  color: var(--footer-primary);
}

.map-subtitle {
  font-size: 1rem;
  color: var(--footer-text-muted);
  margin: 0;
}

.map-container {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--footer-bg);
  border: 1px solid var(--footer-border);
}

.map-container iframe {
  width: 100%;
  height: 450px;
  display: block;
  border: none;
}

.map-button {
  position: absolute;
  bottom: var(--footer-spacing-md);
  right: var(--footer-spacing-md);
  display: inline-flex;
  align-items: center;
  gap: var(--footer-spacing-xs);
  padding: 12px 24px;
  background: var(--footer-primary);
  color: #ffffff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

.map-button:hover {
  background: var(--footer-primary-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.map-button i {
  font-size: 1rem;
}

/* ====== Main Footer - Improved Grid System ====== */
.footer-main {
  padding: var(--footer-spacing-xl) 0;
  position: relative;
  background: var(--footer-bg);
}

/* Footer Content Wrapper - Single Column Layout */
.footer-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--footer-spacing-md);
  gap: var(--footer-spacing-lg);
}

/* Footer Logo Section */
.footer-logo-section {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.footer-logo {
  max-width: 200px;
  height: auto;
  margin: 0 auto;
}

/* Footer License Badge */
.footer-license-badge {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Footer Description */
.footer-description {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* Footer Features - One Row */
.footer-features {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.company-features {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: var(--footer-spacing-md);
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--footer-spacing-xs);
  padding: 8px 16px;
  background: transparent;
  border: none;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

/* Footer Contact Section */
.footer-contact-section {
  width: 100%;
  margin-top: var(--footer-spacing-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Footer Social Section */
.footer-social-section {
  width: 100%;
  margin-top: var(--footer-spacing-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Logo hover effect */
.footer-logo:hover {
  transform: scale(1.02);
}

.company-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--footer-spacing-xs);
  padding: 8px 16px;
  background: var(--footer-primary-light);
  border: 1px solid var(--footer-primary);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--footer-primary);
  width: fit-content;
  margin: 0 auto;
  font-weight: 600;
  transition: var(--transition);
}

.company-badge:hover {
  background: var(--footer-primary);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.company-badge i {
  font-size: 0.9rem;
  color: inherit;
}

.company-description {
  line-height: 1.8;
  color: var(--footer-text-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* Feature item styles - already defined in footer-features section above */

.feature-item i {
  color: var(--footer-primary);
  font-size: 1.1rem;
  min-width: 20px;
  transition: var(--transition);
}

.feature-item:hover i {
  transform: scale(1.1);
}

.feature-item span {
  font-size: 0.95rem;
  color: var(--footer-text);
  font-weight: 400;
  line-height: 1.6;
  transition: var(--transition);
}

.feature-item:hover span {
  color: var(--footer-primary);
}

/* Footer Headings */
.footer-heading {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--footer-spacing-md);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--footer-spacing-xs);
  color: var(--footer-text);
  line-height: 1.4;
  text-align: center;
  width: 100%;
}

.footer-heading i {
  color: var(--footer-primary);
  font-size: 1.2rem;
  margin-left: 8px;
  margin-bottom: 4px;
}

.heading-text {
  display: inline-block;
}

.heading-line {
  width: 50px;
  height: 3px;
  background: var(--footer-primary);
  border-radius: 2px;
  margin: 0 auto;
  display: block;
}

/* Footer Navigation & Services - Shared Base Styles */
.footer-nav,
.services-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--footer-spacing-xs);
  width: 100%;
}

.footer-nav {
  align-items: flex-start;
}

.footer-nav li,
.services-list li {
  display: flex;
  width: 100%;
  margin: 0;
}

.footer-nav li a,
.services-list li {
  display: flex;
  align-items: center;
  gap: var(--footer-spacing-xs);
  padding: 8px 0;
  padding-right: 0;
  transition: var(--transition);
  position: relative;
  width: 100%;
  justify-content: flex-start;
}

.footer-nav li a {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.6;
}

.footer-nav li a::before,
.services-list li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: var(--footer-primary);
  transition: width 0.3s ease;
}

.nav-icon {
  color: var(--footer-primary);
  font-size: 0.6rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: var(--transition);
  margin-left: 4px;
  flex-shrink: 0;
}

.footer-nav li a:hover {
  color: var(--footer-primary);
  padding-right: 12px;
}

.footer-nav li a:hover::before {
  width: 4px;
}

.footer-nav li a:hover .nav-icon {
  opacity: 1;
  transform: translateX(0);
}

/* Services List - Extends base list styles */
.services-list li {
  gap: var(--footer-spacing-sm);
  background: transparent;
  border: none;
}

.services-list li:hover {
  transform: translateX(-4px);
  padding-right: 8px;
}

.services-list li:hover::before {
  width: 4px;
}

.services-list i {
  color: var(--footer-primary);
  font-size: 1.1rem;
  min-width: 20px;
  transition: var(--transition);
}

.services-list li:hover i {
  transform: scale(1.1);
}

.services-list span {
  font-size: 0.95rem;
  color: var(--footer-text);
  font-weight: 400;
  line-height: 1.6;
  transition: var(--transition);
}

.services-list li:hover span {
  color: var(--footer-primary);
}

/* Contact Icons */
.contact-cards {
  display: flex;
  flex-direction: row;
  gap: var(--footer-spacing-sm);
  margin-bottom: var(--footer-spacing-md);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
  transition: var(--transition-fast);
}

/* Shared Icon Button Styles */
.contact-card a,
.social-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: transparent;
  border: 2px solid var(--footer-primary);
  border-radius: 8px;
  color: var(--footer-primary);
  text-decoration: none;
  transition: var(--transition);
}

.contact-card a:hover,
.social-item:hover {
  border-color: var(--footer-primary-dark);
  background: var(--footer-primary);
  color: #ffffff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-md);
}

.contact-card a i,
.social-item i,
.social-item svg {
  font-size: 1.3rem;
  color: inherit;
  transition: var(--transition);
}

/* Social Media Icons */
/* Social section styles moved to footer-social-section */

.social-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--footer-spacing-xs);
  justify-content: center;
  align-items: center;
  width: 100%;
}

.social-item:hover i,
.social-item:hover svg {
  transform: scale(1.15);
  color: inherit;
}

.social-item span {
  display: none;
}

/* Social brand colors on hover - Enhanced with primary color fallback */
.social-item.linkedin:hover {
  border-color: #0077b5;
  background: #0077b5;
  color: #ffffff;
}

.social-item.whatsapp:hover {
  border-color: #25d366;
  background: #25d366;
  color: #ffffff;
}

.social-item.instagram:hover {
  border-color: #bc1888;
  background: #bc1888;
  color: #ffffff;
}

.social-item.snapchat:hover {
  border-color: #FFFC00;
  background: #FFFC00;
  color: #000000;
}

.social-item.tiktok:hover,
.social-item.twitter:hover {
  border-color: #000000;
  background: #000000;
  color: #ffffff;
}

/* ====== Footer Bottom ====== */
.footer-bottom {
  background: var(--footer-bg);
  padding: var(--footer-spacing-md) 0;
  border-top: 1px solid var(--footer-border);
}

.bottom-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: var(--footer-spacing-md);
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--footer-spacing-md);
  text-align: center;
}

.copyright-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.legal-links-section {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: var(--footer-spacing-xs) 0;
}

.copyright-section p {
  margin: 0;
  color: var(--footer-text-muted);
  font-size: 0.875rem;
}

.legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--footer-spacing-sm);
  flex-wrap: wrap;
}

.legal-links a {
  color: var(--footer-text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  transition: var(--transition);
  position: relative;
  padding: 4px 0;
}

.legal-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--footer-primary);
  transition: width 0.3s ease;
  border-radius: 1px;
}

.legal-links a:hover {
  color: var(--footer-primary);
}

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

.divider {
  color: var(--footer-border);
  font-size: 0.75rem;
}

.developer-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--footer-spacing-xs);
  color: var(--footer-text-muted);
  font-size: 0.875rem;
  margin-top: var(--footer-spacing-xs);
}

.developer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--footer-primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
}

.developer-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--footer-primary);
  transition: width 0.3s ease;
}

.developer-link:hover {
  color: var(--footer-primary-dark);
}

.developer-link:hover::after {
  width: 100%;
}

.developer-link i {
  font-size: 1.1rem;
  color: inherit;
  transition: var(--transition);
}

.developer-link:hover i {
  transform: rotate(-45deg) scale(1.1);
}

/* ====== Responsive Design ====== */
/* Large Desktop (1200px+) - Already handled above */

/* Desktop (992px - 1199px) - Enhanced */
@media (max-width: 1199px) and (min-width: 992px) {
  .footer-content-wrapper {
    gap: var(--footer-spacing-lg);
  }
  
  .footer-logo {
    max-width: 220px;
  }
  
  .footer-heading {
    font-size: 1.1rem;
  }
  
  .company-description {
    font-size: 0.95rem;
  }
}

/* Tablet Landscape (768px - 991px) - Enhanced */
@media (max-width: 991px) and (min-width: 768px) {
  .prefooter {
    padding: var(--footer-spacing-xl) 0;
  }
  
  .prefooter-map-wrapper {
    padding: 0 var(--footer-spacing-md);
  }
  
  .map-title {
    font-size: 1.6rem;
  }
  
  .map-subtitle {
    font-size: 1rem;
  }
  
  .map-container iframe {
    height: 400px;
  }
  
  .footer-main {
    padding: var(--footer-spacing-xl) 0;
  }
  
  /* Contact section styling for tablet */
  .contact-cards {
    justify-content: center;
    gap: var(--footer-spacing-sm);
  }
  
  .social-links-grid {
    justify-content: center;
    gap: var(--footer-spacing-xs);
  }
  
  .contact-card a,
  .social-item {
    width: 50px;
    height: 50px;
  }
  
  .contact-card a i,
  .social-item i,
  .social-item svg {
    font-size: 1.3rem;
  }
}

/* Tablet Portrait (576px - 767px) - Enhanced */
@media (max-width: 767px) and (min-width: 576px) {
  .prefooter {
    padding: var(--footer-spacing-lg) 0;
  }
  
  .map-title {
    font-size: 1.4rem;
  }
  
  .map-subtitle {
    font-size: 0.95rem;
  }
  
  .map-container iframe {
    height: 320px;
  }
  
  .footer-main {
    padding: var(--footer-spacing-lg) 0;
  }
  
  .footer-heading {
    font-size: 1.05rem;
    margin-bottom: var(--footer-spacing-sm);
  }
  
  .footer-heading i {
    font-size: 1.1rem;
  }
  
  .footer-nav {
    gap: var(--footer-spacing-xs);
  }
  
  .footer-nav li a {
    font-size: 0.9rem;
    padding: 8px 0;
  }
  
  .contact-cards,
  .social-links-grid {
    justify-content: center;
    gap: var(--footer-spacing-xs);
  }
  
  .contact-card a,
  .social-item {
    width: 48px;
    height: 48px;
  }
  
  .contact-card a i,
  .social-item i,
  .social-item svg {
    font-size: 1.25rem;
  }
  
  .company-info {
    text-align: center;
  }
  
  .footer-logo {
    margin: 0 auto;
  }
  
  .company-badge {
    margin: 0 auto;
  }
}

/* Mobile (up to 575px) */
@media (max-width: 575px) {
  .prefooter {
    padding: var(--footer-spacing-md) 0;
  }
  
  .map-title {
    font-size: 1.25rem;
    flex-direction: column;
    gap: var(--footer-spacing-xs);
  }
  
  .map-subtitle {
    font-size: 0.875rem;
  }
  
  .map-container iframe {
    height: 250px;
  }
  
  .map-button {
    position: static;
    margin-top: var(--footer-spacing-sm);
    width: 100%;
    justify-content: center;
    padding: 10px 20px;
    font-size: 0.875rem;
  }
  
  .footer-main {
    padding: var(--footer-spacing-md) 0;
  }
  
  /* Mobile: Single Column Layout */
  .footer-content-wrapper {
    gap: var(--footer-spacing-md);
  }
  
  .footer-logo {
    max-width: 180px;
  }
  
  .company-badge {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
  
  .company-description {
    font-size: 0.9rem;
  }
  
  .company-features {
    flex-direction: column;
    gap: var(--footer-spacing-xs);
  }
  
  .feature-item {
    justify-content: center;
    padding: 6px 12px;
  }
  
  .footer-content-wrapper {
    gap: var(--footer-spacing-md);
  }
  
  .footer-logo {
    max-width: 180px;
  }
  
  .footer-heading {
    font-size: 1rem;
    margin-bottom: var(--footer-spacing-sm);
  }
  
  .footer-heading .heading-line {
    margin: 0 auto;
  }
  
  .company-features {
    flex-direction: row;
    gap: var(--footer-spacing-sm);
    flex-wrap: wrap;
  }
  
  .contact-cards,
  .social-links-grid {
    justify-content: center;
    gap: var(--footer-spacing-xs);
  }
  
  .contact-card a,
  .social-item {
    width: 44px;
    height: 44px;
  }
  
  .contact-card a i,
  .social-item i,
  .social-item svg {
    font-size: 1.2rem;
  }
  
  .bottom-content {
    gap: var(--footer-spacing-sm);
  }
  
  .legal-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--footer-spacing-xs);
  }
  
  .legal-links a {
    font-size: 0.8rem;
  }
  
  .copyright-section p {
    font-size: 0.8rem;
  }
  
  .developer-section {
    font-size: 0.8rem;
  }
  
  .footer-bottom {
    padding: var(--footer-spacing-sm) 0;
  }
}

/* ====== Animations ====== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer [data-aos] {
  transition-property: transform, opacity;
}

