/* ==========================================================================
   Premium Footer - Modern Responsive Design
   ========================================================================== */

:root {
  --footer-bg: #111111;
  --footer-text: #b0b0b0;
  --footer-heading: #ffffff;
  --footer-accent: #ffffff;
  --footer-border: rgba(255, 255, 255, 0.1);
  --footer-hover: #ffffff;
  --footer-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Main Footer Container
   ========================================================================== */

.premium-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 40px 0 0;
  font-family: inherit;
  position: relative;
  overflow: hidden;
  z-index: 10;
  line-height: 1.6;
}

.premium-footer .container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 30px;
  width: 100%;
}

/* ==========================================================================
   Footer Top Section
   ========================================================================== */

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--footer-border);
}

/* ==========================================================================
   Brand Section
   ========================================================================== */

.footer-brand {
  max-width: 450px;
}

.footer-brand__title {
  color: var(--footer-heading);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin: 0 0 20px 0;
  text-transform: uppercase;
  line-height: 1.2;
}

.footer-brand__description {
  line-height: 1.7;
  color: var(--footer-text);
  margin: 0 0 20px 0;
  font-size: 15px;
  max-width: 100%;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-link {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--footer-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--footer-heading);
  text-decoration: none;
  transition: var(--footer-transition);
  position: relative;
  overflow: hidden;
  background: transparent;
}

.social-link svg {
  width: 20px;
  height: 20px;
  transition: var(--footer-transition);
  z-index: 1;
  position: relative;
}

.social-link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--footer-heading);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.social-link:hover::before,
.social-link:focus::before {
  width: 100%;
  height: 100%;
}

.social-link:hover,
.social-link:focus {
  border-color: transparent;
  color: var(--footer-bg);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.social-link:hover svg,
.social-link:focus svg {
  transform: scale(1.1);
}

.social-link:active {
  transform: translateY(-1px);
}

/* ==========================================================================
   Links Section
   ========================================================================== */

.footer-links-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-column {
  min-width: 0;
}

.footer-column__title {
  color: var(--footer-heading);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 18px 0;
  position: relative;
  padding-bottom: 12px;
}

.footer-column__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background-color: var(--footer-heading);
  transition: width 0.3s ease;
}

.footer-column:hover .footer-column__title::after {
  width: 50px;
}

.footer-column__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column__list li {
  margin-bottom: 10px;
}

.footer-link {
  color: var(--footer-text);
  text-decoration: none;
  transition: var(--footer-transition);
  display: inline-block;
  font-size: 15px;
  position: relative;
  padding: 4px 0;
  line-height: 1.6;
}

.footer-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--footer-heading);
  transition: width 0.3s ease;
}

.footer-link:hover,
.footer-link:focus {
  color: var(--footer-heading);
  padding-left: 8px;
}

.footer-link:hover::before,
.footer-link:focus::before {
  width: calc(100% - 8px);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.footer-column--contact {
  min-width: 220px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-label {
  font-size: 11px;
  text-transform: uppercase;
  color: #888;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin: 0;
}

.contact-text {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.7;
  transition: var(--footer-transition);
  display: inline-block;
}

.contact-text:hover,
.contact-text:focus {
  color: var(--footer-heading);
  transform: translateX(3px);
}

/* ==========================================================================
   Footer Bottom Section
   ========================================================================== */

.footer-bottom {
  border-top: 1px solid var(--footer-border);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.copyright {
  font-size: 14px;
  color: #888;
  margin: 0;
  line-height: 1.6;
}

.copyright-link {
  color: var(--footer-text);
  text-decoration: none;
  transition: var(--footer-transition);
  font-weight: 500;
}

.copyright-link:hover,
.copyright-link:focus {
  color: var(--footer-heading);
  text-decoration: underline;
}

/* Scroll Top Button */
.scroll-top-btn {
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  border: 1.5px solid var(--footer-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--footer-heading);
  text-decoration: none;
  transition: var(--footer-transition);
  cursor: pointer;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.scroll-top-btn svg {
  width: 20px;
  height: 20px;
  transition: var(--footer-transition);
  z-index: 1;
  position: relative;
}

.scroll-top-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--footer-heading);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.scroll-top-btn:hover::before,
.scroll-top-btn:focus::before {
  width: 100%;
  height: 100%;
}

.scroll-top-btn:hover,
.scroll-top-btn:focus {
  border-color: transparent;
  color: var(--footer-bg);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.scroll-top-btn:hover svg,
.scroll-top-btn:focus svg {
  transform: translateY(-2px);
}

.scroll-top-btn:active {
  transform: translateY(-3px);
}

/* ==========================================================================
   Responsive Design - Tablet & Smaller Laptops
   ========================================================================== */

@media (max-width: 1024px) {
  .premium-footer {
    padding: 35px 0 0;
  }

  .footer-top {
    gap: 35px;
  }

  .footer-links-group {
    gap: 25px;
  }
}

@media (max-width: 992px) {
  .premium-footer {
    padding: 35px 0 0;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 35px;
    margin-bottom: 30px;
    padding-bottom: 30px;
  }

  .footer-brand {
    max-width: 100%;
    text-align: center;
  }

  .footer-brand__title {
    font-size: 26px;
    margin-bottom: 15px;
  }

  .footer-brand__description {
    margin-bottom: 18px;
  }

  .social-links {
    justify-content: center;
  }

  .footer-links-group {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
}

/* Medium Tablets */
@media (max-width: 820px) {
  .footer-links-group {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .footer-column--contact {
    grid-column: 1 / -1;
  }
}

/* ==========================================================================
   Responsive Design - Mobile Devices
   ========================================================================== */

@media (max-width: 768px) {
  .premium-footer {
    padding: 30px 0 0;
  }

  .premium-footer .container {
    padding: 0 20px;
  }

  .footer-top {
    gap: 25px;
    margin-bottom: 25px;
    padding-bottom: 25px;
  }

  /* Brand Section Mobile */
  .footer-brand {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--footer-border);
  }

  .footer-brand__title {
    font-size: 22px;
    margin-bottom: 12px;
  }

  .footer-brand__description {
    font-size: 14px;
    margin-bottom: 18px;
    max-width: 100%;
  }

  .social-links {
    gap: 12px;
  }

  .social-link {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  /* Links Section Mobile */
  .footer-links-group {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-column {
    width: 100%;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
  }

  .footer-column:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
  }

  .footer-column__title {
    font-size: 14px;
    margin-bottom: 15px;
    display: inline-block;
    padding-bottom: 10px;
  }

  .footer-column__title::after {
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
  }

  .footer-column:hover .footer-column__title::after {
    width: 50px;
  }

  .footer-column__list li {
    margin-bottom: 10px;
  }

  .footer-link {
    font-size: 15px;
    padding: 6px 0;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .footer-link:hover,
  .footer-link:focus {
    padding-left: 0;
    transform: translateY(-2px);
  }

  .footer-link::before {
    display: none;
  }

  /* Contact Section Mobile */
  .footer-column--contact {
    min-width: 100%;
  }

  .contact-info {
    gap: 20px;
    align-items: center;
  }

  .contact-item {
    align-items: center;
    text-align: center;
    max-width: 100%;
  }

  .contact-label {
    font-size: 11px;
    margin-bottom: 4px;
  }

  .contact-text {
    font-size: 15px;
    line-height: 1.7;
    max-width: 100%;
    word-break: break-word;
  }

  .contact-text:hover,
  .contact-text:focus {
    transform: none;
  }

  /* Footer Bottom Mobile */
  .footer-bottom {
    flex-direction: column-reverse;
    text-align: center;
    gap: 20px;
    padding: 20px 0;
  }

  .copyright {
    font-size: 13px;
    width: 100%;
  }

  .scroll-top-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }
}

/* ==========================================================================
   Responsive Design - Small Mobile Devices
   ========================================================================== */

@media (max-width: 480px) {
  .premium-footer {
    padding: 25px 0 0;
  }

  .premium-footer .container {
    padding: 0 15px;
  }

  .footer-top {
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
  }

  .footer-brand {
    padding-bottom: 18px;
  }

  .footer-brand__title {
    font-size: 20px;
    letter-spacing: 1px;
    margin-bottom: 10px;
  }

  .footer-brand__description {
    font-size: 13px;
    margin-bottom: 15px;
  }

  .social-link {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
  }

  .footer-column {
    padding: 18px 0;
  }

  .footer-column__title {
    font-size: 13px;
    margin-bottom: 12px;
    padding-bottom: 8px;
  }

  .footer-column__list li {
    margin-bottom: 8px;
  }

  .footer-link {
    font-size: 14px;
    padding: 5px 0;
    min-height: 38px;
  }

  .contact-info {
    gap: 18px;
  }

  .contact-text {
    font-size: 14px;
    max-width: 100%;
  }

  .footer-bottom {
    padding: 18px 0;
    gap: 18px;
  }

  .copyright {
    font-size: 12px;
  }

  .scroll-top-btn {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
  }
}

@media (max-width: 380px) {
  .premium-footer {
    padding: 20px 0 0;
  }

  .footer-top {
    gap: 18px;
    margin-bottom: 18px;
    padding-bottom: 18px;
  }

  .footer-brand__title {
    font-size: 18px;
  }

  .footer-brand__description {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .social-links {
    gap: 10px;
  }

  .social-link {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  .footer-column {
    padding: 15px 0;
  }

  .footer-column__title {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .footer-link {
    font-size: 13px;
    min-height: 36px;
  }

  .contact-info {
    gap: 15px;
  }

  .contact-text {
    font-size: 13px;
  }

  .footer-bottom {
    padding: 15px 0;
    gap: 15px;
  }

  .copyright {
    font-size: 11px;
  }

  .scroll-top-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
}

/* ==========================================================================
   Accessibility & Focus States
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .premium-footer *,
  .premium-footer *::before,
  .premium-footer *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.social-link:focus-visible,
.footer-link:focus-visible,
.contact-text:focus-visible,
.copyright-link:focus-visible,
.scroll-top-btn:focus-visible {
  outline: 2px solid var(--footer-heading);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  .premium-footer {
    padding: 40px 0;
  }

  .social-links,
  .scroll-top-btn {
    display: none;
  }
}
