/* Footer Styles - Advanced Shadow & Color Layering */

/* Color Layering Variables - Creating depth through color shades */
:root {
  /* Base footer color: #15388A (21, 56, 138) */
  --footer-layer-1: hsl(222, 74%, 31%);    /* Darkest - deepest background */
  --footer-layer-2: hsl(222, 74%, 41%);    /* +0.1 lightness - mid layer */
  --footer-layer-3: hsl(222, 74%, 51%);    /* +0.1 lightness - elevated elements */
  --footer-layer-4: hsl(222, 74%, 61%);    /* +0.1 lightness - most prominent */
  --footer-accent: hsl(222, 74%, 71%);     /* Lightest - highlights */
}

.site-footer {
  /* Layer 1: Deepest background with gradient for natural depth */
  background: linear-gradient(180deg, 
    var(--footer-layer-1) 0%, 
    hsl(222, 74%, 28%) 100%
  );
  color: var(--color-fg-inverse);
  padding: var(--space-12) 0 var(--space-6);
  position: relative;
  
  /* Two-layer shadow: Light top + dark bottom for realism */
  box-shadow: 
    0 -1px 0 0 rgba(255, 255, 255, 0.05) inset,  /* Light inner shadow on top */
    0 -8px 32px -8px rgba(0, 0, 0, 0.3),          /* Dark shadow below */
    0 -2px 8px -2px rgba(0, 0, 0, 0.2);           /* Subtle ambient shadow */
}

.footer-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
  position: relative;
  z-index: 1;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

/* Ensure each footer section has consistent width */
.footer-company,
.footer-links,
.footer-contact {
  width: 100%;
}

.footer-title {
  font-size: var(--font-size-h5);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-4);
  color: var(--color-fg-inverse);
  position: relative;
  
  /* Elevated text with subtle shadow for depth */
  text-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.15);
}

.footer-description {
  font-size: var(--font-size-small);
  line-height: var(--line-height-body);
  margin-bottom: var(--space-4);
  opacity: 0.9;
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--space-8);
  height: var(--space-8);
  border-radius: 50%;
  
  /* Layer 2: Elevated from background with gradient */
  background: linear-gradient(135deg, 
    var(--footer-layer-2) 0%, 
    var(--footer-layer-1) 100%
  );
  
  /* Two-layer shadow: Small depth level */
  box-shadow: 
    0 1px 0 0 rgba(255, 255, 255, 0.1) inset,  /* Light on top */
    0 2px 4px rgba(0, 0, 0, 0.2),               /* Dark below */
    0 1px 2px rgba(0, 0, 0, 0.15);              /* Ambient */
  
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}

.social-link:hover {
  /* Layer 3: More elevated on hover with enhanced gradient */
  background: linear-gradient(135deg, 
    var(--footer-layer-3) 0%, 
    var(--footer-layer-2) 100%
  );
  
  /* Large shadow: Prominent hover state */
  box-shadow: 
    0 2px 0 0 rgba(255, 255, 255, 0.15) inset,  /* Stronger light on top */
    0 6px 12px rgba(0, 0, 0, 0.3),               /* Deeper shadow */
    0 2px 4px rgba(0, 0, 0, 0.2);                /* Enhanced ambient */
  
  transform: translateY(-2px);
}

.social-link svg {
  width: var(--space-4);
  height: var(--space-4);
  fill: var(--color-fg-inverse);
}

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

.footer-menu li {
  margin-bottom: var(--space-2);
}

.footer-link {
  color: var(--color-fg-inverse);
  text-decoration: none;
  font-size: var(--font-size-body);
  opacity: 0.9;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-1);
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}

.footer-link:hover {
  opacity: 1;
  
  /* Layer 2: Elevated on hover */
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.08) 0%, 
    rgba(255, 255, 255, 0.04) 100%
  );
  
  /* Small shadow: Subtle elevation */
  box-shadow: 
    0 1px 0 0 rgba(255, 255, 255, 0.1) inset,
    0 2px 4px rgba(0, 0, 0, 0.15);
  
  transform: translateY(-1px);
}

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

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-4);
  font-size: var(--font-size-body);
  width: 100%;
  color: var(--color-fg-inverse);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-1);
  
  /* Subtle elevated background */
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.03) 0%, 
    rgba(255, 255, 255, 0.01) 100%
  );
  
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.contact-item:hover {
  /* Layer 2: Elevated on hover */
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.08) 0%, 
    rgba(255, 255, 255, 0.04) 100%
  );
  
  /* Medium shadow: Standard elevation */
  box-shadow: 
    0 1px 0 0 rgba(255, 255, 255, 0.08) inset,
    0 4px 8px rgba(0, 0, 0, 0.15),
    0 1px 2px rgba(0, 0, 0, 0.1);
  
  transform: translateX(4px);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--space-5);
  height: var(--space-5);
  min-width: var(--space-5);
  margin-right: var(--space-4);
  margin-top: var(--space-1);
  flex-shrink: 0;
  border-radius: 50%;
  
  /* Layer 2: Subtle elevation with gradient */
  background: linear-gradient(135deg, 
    var(--footer-layer-2) 0%, 
    var(--footer-layer-1) 100%
  );
  
  /* Small shadow: Subtle depth */
  box-shadow: 
    0 1px 0 0 rgba(255, 255, 255, 0.08) inset,
    0 2px 4px rgba(0, 0, 0, 0.15);
}

.contact-icon svg {
  width: var(--space-4);
  height: var(--space-4);
  fill: var(--color-fg-inverse);
  opacity: 1;
}

.contact-item span,
.contact-text {
  flex-grow: 1;
  color: var(--color-fg-inverse) !important;
  opacity: 0.9;
  word-break: break-word;
  display: inline-block;
  padding-top: var(--space-1);
  padding-right: var(--space-4);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-4);
  margin-top: var(--space-4);
  font-size: var(--font-size-small);
  position: relative;
  
  /* No border - using color layering instead */
  /* Layer 2: Elevated section with gradient */
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.02) 0%, 
    transparent 100%
  );
  
  /* Inset shadow: Sunken effect to push back */
  box-shadow: 
    0 -1px 0 0 rgba(0, 0, 0, 0.2) inset,  /* Dark line on top */
    0 1px 0 0 rgba(255, 255, 255, 0.05) inset;  /* Light line on bottom */
  
  border-radius: var(--radius-1);
  padding: var(--space-4) var(--space-3);
}

.copyright {
  opacity: 0.8;
}

.footer-legal {
  display: flex;
  gap: var(--space-4);
}

.legal-link {
  color: var(--color-fg-inverse);
  text-decoration: none;
  font-size: var(--font-size-body);
  opacity: 0.8;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-1);
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.legal-link:hover {
  opacity: 1;
  
  /* Layer 2: Subtle elevation */
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.06) 0%, 
    rgba(255, 255, 255, 0.03) 100%
  );
  
  /* Small shadow */
  box-shadow: 
    0 1px 0 0 rgba(255, 255, 255, 0.08) inset,
    0 1px 3px rgba(0, 0, 0, 0.12);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
  
  .footer-company {
    grid-column: span 2;
  }
  
  .footer-contact {
    padding-right: var(--space-4);
  }
}

@media (max-width: 640px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  
  .footer-company {
    grid-column: 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
  
  .copyright {
    margin-bottom: var(--space-2);
  }
}
