/* Servas International Footer - Shopify Inspired Design */

/* Reset and Base Styles */
.servas-footer {
  background-color: #000000;
  color: #b5b5b5;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.servas-footer * {
  box-sizing: border-box;
}

/* Footer Wrapper */
.footer-wrapper {
  width: 100%;
}

/* Main Footer Section */
.footer-main {
  padding: 40px 0 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Container */
.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Logo Section */
.footer-logo-section {
  margin-bottom: 40px;
}

.footer-logo {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.footer-logo:hover {
  opacity: 1;
}

/* Footer Grid */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

/* Footer Column */
.footer-column {
  min-width: 0;
}

/* Footer Title */
.footer-title {
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 16px 0;
}

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

.footer-list li {
  margin-bottom: 12px;
}

/* Footer Links */
.footer-link {
  color: #b5b5b5;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
  display: inline-block;
}

.footer-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Footer Bottom */
.footer-bottom {
  background-color: #000000;
  padding: 20px 0;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Footer Bottom Left */
.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Language Selector */
.language-selector {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: #b5b5b5;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.language-selector:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.language-selector svg {
  flex-shrink: 0;
}

.language-selector .chevron {
  margin-left: 4px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.dropdown-arrow {
  margin-left: auto;
  padding-left: 8px;
}

/* Footer Legal Navigation */
.footer-legal-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-legal-link {
  color: #b5b5b5;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.footer-legal-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Footer Social */
.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #b5b5b5;
  transition: all 0.2s ease;
}

.social-icon:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-2px);
}

.social-icon svg {
  width: 16px;
  height: 16px;
}

/* Responsive Design */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 60px;
  }

  .footer-main {
    padding: 40px 0 50px;
  }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
  .footer-main {
    padding: 32px 0 40px;
  }

  .footer-logo-section {
    margin-bottom: 32px;
  }

  .footer-logo {
    height: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-title {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .footer-list li {
    margin-bottom: 10px;
  }

  .footer-link {
    font-size: 13px;
  }

  .footer-bottom {
    padding: 16px 0 20px;
  }

  .footer-bottom-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer-bottom-left {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 16px;
  }

  .language-selector {
    width: 100%;
    justify-content: space-between;
  }

  .footer-legal-nav {
    gap: 12px;
  }

  .footer-legal-link {
    font-size: 12px;
  }

  .footer-bottom-right {
    width: 100%;
  }

  .footer-social {
    gap: 12px;
  }

  .social-icon {
    width: 36px;
    height: 36px;
  }
}

/* Small Mobile (max-width: 479px) */
@media (max-width: 479px) {
  .footer-container {
    padding: 0 16px;
  }

  .footer-legal-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Hover Effects Enhancement for Desktop */
@media (hover: hover) and (pointer: fine) {
  .footer-link {
    position: relative;
    overflow: hidden;
  }

  .footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #ffffff;
    transition: width 0.3s ease;
  }

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

  .footer-link:hover {
    text-decoration: none;
  }
}

/* Print Styles */
@media print {
  .servas-footer {
    display: none;
  }
}

/* Accessibility Improvements */
.servas-footer a:focus,
.servas-footer button:focus {
  outline: 2px solid #4a90e2;
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .servas-footer {
    border-top: 1px solid #ffffff;
  }

  .footer-link {
    text-decoration: underline;
  }

  .social-icon {
    border: 1px solid currentColor;
  }
}

/* Dark Mode Already Default - Light Mode Alternative */
@media (prefers-color-scheme: light) {
  /* Users who prefer light mode will still see dark footer */
  /* This maintains brand consistency like Shopify */
}

/* Animation for Page Load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-column {
  animation: fadeInUp 0.5s ease-out;
  animation-fill-mode: both;
}

.footer-column:nth-child(1) {
  animation-delay: 0.1s;
}
.footer-column:nth-child(2) {
  animation-delay: 0.2s;
}
.footer-column:nth-child(3) {
  animation-delay: 0.3s;
}
.footer-column:nth-child(4) {
  animation-delay: 0.4s;
}

/* Collapsible Sections for Mobile (Optional Enhancement) */
@media (max-width: 767px) {
  .footer-column {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 24px;
  }

  .footer-column:last-child {
    border-bottom: none;
  }

  .footer-title {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    user-select: none;
  }

  .footer-title::after {
    content: '+';
    font-size: 18px;
    font-weight: 300;
    color: #b5b5b5;
    transition: transform 0.3s ease;
  }

  .footer-column.expanded .footer-title::after {
    transform: rotate(45deg);
  }

  /* Note: JavaScript would be needed to toggle the 'expanded' class */
}
