/* ================================
   FOOTER - PREMIUM DARK STYLE
   ================================ */

/* Footer Main Container */
.tm-footer {
  position: relative;
  background: linear-gradient(135deg, #2c1810 0%, #3d2414 50%, #2c1810 100%);
  color: #e8e0d5;
  overflow: hidden;
  padding: 80px 0 0;
}

/* Animated gradient background overlay */
.tm-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(201, 168, 106, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(141, 110, 99, 0.08) 0%, transparent 50%);
  animation: footerGradientShift 20s ease infinite;
  pointer-events: none;
}

@keyframes footerGradientShift {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* Decorative top border */
.tm-footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    transparent,
    rgba(201, 168, 106, 0.4) 20%,
    rgba(201, 168, 106, 0.8) 50%,
    rgba(201, 168, 106, 0.4) 80%,
    transparent
  );
}

.tm-footer-main {
  position: relative;
  z-index: 1;
}

/* Footer Grid */
.tm-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(201, 168, 106, 0.2);
}

/* Footer Columns */
.tm-footer-col {
  position: relative;
}

/* Company Column - Special styling */
.tm-footer-col-company {
  padding: 30px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(201, 168, 106, 0.15);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}

.tm-footer-col-company:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(201, 168, 106, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Logo */
.tm-footer-logo {
  margin-bottom: 20px;
}

.tm-footer-logo img {
  filter: brightness(1.2) saturate(0.9);
  transition: all 0.3s ease;
}

.tm-footer-col-company:hover .tm-footer-logo img {
  filter: brightness(1.4) saturate(1.1);
  transform: scale(1.05);
}

/* Tagline */
.tm-footer-tagline {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

/* Description */
.tm-footer-description {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(232, 224, 213, 0.8);
  margin-bottom: 24px;
}

/* Contact Items */
.tm-footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tm-footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(201, 168, 106, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: rgba(232, 224, 213, 0.9);
  font-size: 14px;
  border: 1px solid transparent;
}

.tm-footer-contact-item:hover {
  background: rgba(201, 168, 106, 0.12);
  border-color: rgba(201, 168, 106, 0.3);
  transform: translateX(4px);
  color: var(--accent-gold);
}

.tm-footer-contact-item img {
  filter: brightness(0) saturate(100%) invert(78%) sepia(18%) saturate(626%) hue-rotate(358deg) brightness(93%) contrast(87%);
  transition: all 0.3s ease;
}

.tm-footer-contact-item:hover img {
  filter: brightness(0) saturate(100%) invert(78%) sepia(35%) saturate(626%) hue-rotate(358deg) brightness(103%) contrast(87%);
  transform: scale(1.15);
}

/* Column Titles */
.tm-footer-col-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(201, 168, 106, 0.3);
  letter-spacing: 0.5px;
  position: relative;
}

/* Decorative line under title */
.tm-footer-col-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-gold);
  transition: width 0.4s ease;
}

.tm-footer-col:hover .tm-footer-col-title::after {
  width: 100%;
}

.tm-footer-col-title img {
  filter: brightness(0) saturate(100%) invert(78%) sepia(18%) saturate(626%) hue-rotate(358deg) brightness(93%) contrast(87%);
}

/* Footer Navigation */
.tm-footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tm-footer-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: rgba(232, 224, 213, 0.85);
  text-decoration: none;
  font-size: 14px;
  border-radius: 6px;
  transition: all 0.3s ease;
  overflow: hidden;
}

/* Hover background effect */
.tm-footer-link::before {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 106, 0.1), transparent);
  transition: left 0.5s ease;
}

.tm-footer-link:hover::before {
  left: 100%;
}

.tm-footer-link:hover {
  color: var(--accent-gold);
  background: rgba(201, 168, 106, 0.08);
  padding-left: 16px;
}

.tm-footer-link-arrow {
  font-size: 16px;
  color: rgba(201, 168, 106, 0.5);
  transition: all 0.3s ease;
}

.tm-footer-link:hover .tm-footer-link-arrow {
  color: var(--accent-gold);
  transform: translateX(4px);
}

/* Trust Badges */
.tm-footer-trust-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tm-footer-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 168, 106, 0.15);
  border-radius: 10px;
  transition: all 0.4s ease;
  cursor: default;
}

.tm-footer-badge:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(201, 168, 106, 0.4);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(201, 168, 106, 0.15);
}

.tm-footer-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(201, 168, 106, 0.2), rgba(141, 110, 99, 0.2));
  border-radius: 8px;
  transition: all 0.4s ease;
}

.tm-footer-badge:hover .tm-footer-badge-icon {
  background: linear-gradient(135deg, rgba(201, 168, 106, 0.3), rgba(141, 110, 99, 0.3));
  transform: rotate(10deg) scale(1.1);
}

.tm-footer-badge-icon img {
  filter: brightness(0) saturate(100%) invert(78%) sepia(18%) saturate(626%) hue-rotate(358deg) brightness(93%) contrast(87%);
}

.tm-footer-badge-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tm-footer-badge-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-gold);
}

.tm-footer-badge-text {
  font-size: 11px;
  color: rgba(232, 224, 213, 0.7);
}

/* Service Areas Section */
.tm-footer-areas {
  padding: 40px 0;
  border-bottom: 1px solid rgba(201, 168, 106, 0.2);
}

.tm-footer-areas-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.tm-footer-areas-header img {
  filter: brightness(0) saturate(100%) invert(78%) sepia(18%) saturate(626%) hue-rotate(358deg) brightness(93%) contrast(87%);
}

.tm-footer-areas-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-gold);
  margin: 0;
  letter-spacing: 0.5px;
}

.tm-footer-areas-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.tm-footer-area-tag {
  position: relative;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 168, 106, 0.2);
  border-radius: 8px;
  color: rgba(232, 224, 213, 0.85);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
  overflow: hidden;
}

/* Gradient overlay on hover */
.tm-footer-area-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(201, 168, 106, 0.15), rgba(141, 110, 99, 0.15));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tm-footer-area-tag:hover {
  color: var(--accent-gold);
  border-color: rgba(201, 168, 106, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 168, 106, 0.2);
}

.tm-footer-area-tag:hover::before {
  opacity: 1;
}

/* Footer Bottom - Copyright */
.tm-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 0;
}

.tm-footer-copyright {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-gold);
  margin: 0;
  letter-spacing: 0.5px;
}

.tm-footer-legal {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tm-footer-legal-link {
  color: rgba(232, 224, 213, 0.8);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.3s ease;
  position: relative;
}

/* Underline effect */
.tm-footer-legal-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-gold);
  transition: width 0.3s ease;
}

.tm-footer-legal-link:hover {
  color: var(--accent-gold);
}

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

.tm-footer-legal-separator {
  color: rgba(201, 168, 106, 0.3);
}

/* ================================
   RESPONSIVE - TABLET
   ================================ */
@media (max-width: 1024px) {
  .tm-footer {
    padding: 60px 0 0;
  }

  .tm-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding-bottom: 50px;
  }

  .tm-footer-col-company {
    grid-column: 1 / -1;
    padding: 25px;
  }

  .tm-footer-trust-badges {
    grid-template-columns: repeat(4, 1fr);
  }

  .tm-footer-badge {
    padding: 12px;
  }

  .tm-footer-badge-icon {
    width: 36px;
    height: 36px;
  }
}

/* ================================
   RESPONSIVE - MOBILE
   ================================ */
@media (max-width: 768px) {
  .tm-footer {
    padding: 50px 0 0;
  }

  .tm-footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 40px;
  }

  .tm-footer-col-company {
    padding: 20px;
  }

  .tm-footer-logo img {
    width: 120px;
    height: auto;
  }

  .tm-footer-tagline {
    font-size: 15px;
  }

  .tm-footer-description {
    font-size: 13px;
  }

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

  .tm-footer-col-title {
    font-size: 15px;
    margin-bottom: 18px;
  }

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

  .tm-footer-trust-badges {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .tm-footer-badge {
    padding: 10px;
  }

  .tm-footer-badge-icon {
    width: 34px;
    height: 34px;
  }

  .tm-footer-badge-title {
    font-size: 12px;
  }

  .tm-footer-badge-text {
    font-size: 10px;
  }

  .tm-footer-areas {
    padding: 30px 0;
  }

  .tm-footer-areas-title {
    font-size: 14px;
    text-align: center;
  }

  .tm-footer-area-tag {
    padding: 8px 16px;
    font-size: 12px;
  }

  .tm-footer-bottom {
    flex-direction: column;
    gap: 16px;
    padding: 24px 0;
    text-align: center;
  }

  .tm-footer-copyright {
    font-size: 13px;
  }

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

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

/* ================================
   RESPONSIVE - SMALL MOBILE
   ================================ */
@media (max-width: 480px) {
  .tm-footer-grid {
    gap: 24px;
  }

  .tm-footer-col-company {
    padding: 16px;
  }

  .tm-footer-trust-badges {
    grid-template-columns: 1fr;
  }

  .tm-footer-badge {
    padding: 12px;
  }

  .tm-footer-areas-tags {
    gap: 8px;
  }

  .tm-footer-area-tag {
    padding: 6px 14px;
    font-size: 11px;
  }
}

/* Very small screens */
@media (max-width: 375px) {
  .tm-footer-col-company {
    padding: 14px;
  }

  .tm-footer-contact-item {
    padding: 8px 10px;
    font-size: 12px;
  }
}
