/* Footer — dark theme matching navbar */
.footer {
  background: #111111;
  color: #ffffff;
  margin: 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  padding: 60px 0 40px;
  font-family: Inter, Montserrat, Arial, sans-serif;
  max-width: calc(100% - 40px);
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Override section container padding when footer is inside a section */
.section .footer {
  margin: 20px;
  width: calc(100% - 40px);
  max-width: calc(100vw - 40px);
  position: relative;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Remove container constraints when footer is in section - match navbar style */
.section .footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  margin-bottom: 16px;
}

.footer-logo h3 {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
  line-height: 1.2;
}

.footer-logo p {
  font-size: 14px;
  color: #94a3b8;
  margin: 0;
  font-weight: 500;
}

.footer-description {
  font-size: 14px;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0 0 24px 0;
}

.footer-section h4 {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 20px 0;
  line-height: 1.2;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s ease;
  display: inline-block;
  position: relative;
  padding: 2px 0;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.footer-links a:hover,
.footer-links a:focus {
  color: #ffffff;
}

.footer-links a:hover::after,
.footer-links a:focus::after {
  transform: scaleX(1);
}

/* Social Links */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, transform 0.1s ease, border-color 0.25s ease;
  font-size: 14px;
}

.social-link:hover,
.social-link:focus {
  background: #ffffff;
  color: #111111;
  border-color: #ffffff;
  transform: translateY(-2px);
}

.social-link:active {
  transform: translateY(0);
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.contact-item i {
  color: #ffffff;
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  width: 20px;
}

.contact-item p {
  margin: 0;
  color: #94a3b8;
}

.contact-item a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

.contact-item a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.contact-item a:hover,
.contact-item a:focus {
  color: #ffffff;
}

.contact-item a:hover::after,
.contact-item a:focus::after {
  transform: scaleX(1);
}

/* Footer contact — 2 columns, compact like other sections */
.footer-section--contact {
  gap: 0;
}

.footer-links--contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
  row-gap: 10px;
}

.footer-links--contact li {
  margin: 0;
  min-width: 0;
}

.footer-links--contact a,
.footer-links--contact .footer-links__text {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
  word-break: break-word;
}

.footer-links--contact a,
.footer-links--contact .footer-links__text {
  color: #cbd5e1;
}

.footer-links--contact a:hover,
.footer-links--contact a:focus {
  color: #ffffff;
}

.footer-links--contact a i,
.footer-links--contact .footer-links__text i {
  width: 16px;
  flex-shrink: 0;
  text-align: center;
  color: #ffffff;
  font-size: 14px;
}

.footer-links__text {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.5;
}

.footer-social-compact {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.footer-social-compact__link {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.footer-social-compact__link:hover {
  color: #fff;
}

.footer-social-compact__link--instagram:hover {
  background: #e1306c;
  border-color: #e1306c;
}

.footer-social-compact__link--tiktok:hover {
  background: #000;
  border-color: #000;
}

.footer-social-compact__link--linkedin:hover {
  background: #0a66c2;
  border-color: #0a66c2;
}

/* Copyright */
.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
}

.copyright p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
  font-weight: 400;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .footer .container {
    padding: 0 20px;
  }

  .footer-content {
    gap: 40px;
  }
}

@media (max-width: 992px) {
  .footer {
    margin: 15px;
    padding: 50px 0 25px;
  }

  .footer .container {
    padding: 0 20px;
  }

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

  .footer-section--contact {
    grid-column: 1 / -1;
  }

  .footer-logo h3 {
    font-size: 24px;
  }

  .footer-description {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .footer {
    margin: 10px;
    border-radius: 16px;
    padding: 40px 0 20px;
  }

  /* Override section container padding on mobile */
  .section .footer {
    margin: 10px;
    width: calc(100% - 20px);
  }

  .footer .container {
    padding: 0 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 28px;
  }

  .footer-section {
    text-align: left;
  }

  .footer-logo h3 {
    font-size: 22px;
  }

  .footer-logo p {
    font-size: 13px;
  }

  .footer-description {
    font-size: 13px;
    line-height: 1.6;
    margin-top: 12px;
  }

  .footer-section h4 {
    font-size: 16px;
    margin-bottom: 16px;
  }

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

  .footer-links a {
    font-size: 14px;
  }

  .footer-links--contact {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  /* Ensure footer section displays fully on mobile */
  .section .footer {
    margin: 10px;
    width: calc(100% - 20px);
    min-height: 90vh;
    height: auto;
  }

  .footer {
    min-height: auto;
    height: auto;
    overflow: visible;
  }

  .footer-content {
    min-height: auto;
    height: auto;
  }

  .copyright {
    padding-top: 20px;
    margin-top: 0;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .footer {
    margin: 8px;
    padding: 35px 0 18px;
    border-radius: 14px;
  }

  .section .footer {
    margin: 8px;
    width: calc(100% - 16px);
  }

  .footer .container {
    padding: 0 16px;
  }

  .footer-content {
    gap: 24px;
    margin-bottom: 24px;
  }

  .footer-logo h3 {
    font-size: 20px;
  }

  .footer-description {
    font-size: 12px;
    margin-top: 10px;
  }

  .footer-section h4 {
    font-size: 15px;
    margin-bottom: 14px;
  }

  .footer-links a {
    font-size: 13px;
  }

  .contact-item {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .copyright {
    padding-top: 18px;
  }

  .copyright p {
    font-size: 12px;
  }

  .contact-item p {
    font-size: 13px;
  }

  .social-links {
    justify-content: flex-start;
    gap: 10px;
    margin-top: 16px;
  }

  .social-link {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .footer {
    margin: 8px;
    border-radius: 14px;
    padding: 32px 0 18px;
  }

  .section .footer {
    margin: 8px;
    width: calc(100% - 16px);
  }

  .footer .container {
    padding: 0 16px;
  }

  .footer-content {
    gap: 24px;
    margin-bottom: 24px;
  }

  .footer-logo h3 {
    font-size: 20px;
  }

  .footer-description {
    font-size: 12px;
  }

  .footer-section h4 {
    font-size: 15px;
    margin-bottom: 14px;
  }

  .footer-links a {
    font-size: 13px;
  }

  .contact-item p {
    font-size: 12px;
  }

  .social-link {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .copyright {
    font-size: 11px;
  }
}

/* Accessibility */
.footer a:focus-visible,
.footer button:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 2px;
}