/* =============================================
   FOOTER STYLES
   ============================================= */

/* Footer wrapper */
.footer-wrapper {
  position: relative;
}

/* Spacer before footer */
.footer-spacer {
  position: relative;
  height: 80px;
  background-color: #F5EBD9;
}

@media (min-width: 768px) {
  .footer-spacer { height: 110px; }
}

@media (min-width: 1024px) {
  .footer-spacer { height: 140px; }
}

@media (min-width: 1920px) {
  .footer-spacer { height: 200px; }
}

/* Main footer */
.advanced-footer {
  position: relative;
  background-color: #8B3A2E;
}

/* Background image */
.footer-bg-image {
  position: absolute;
  inset: 0;
  background-image: url("../images/footer/footer_image.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.footer-bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(139, 58, 46, 0.4) 0%, 
    rgba(196, 92, 73, 0.35) 50%, 
    rgba(168, 77, 61, 0.4) 100%
  );
}

/* Top decoration image */
.footer-top-decoration {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  pointer-events: none;
  display: flex;
  justify-content: center;
}

.footer-top-decoration img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: contain;
  transform: translateY(50%);
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
}

@media (min-width: 768px) {
  .footer-top-decoration img { max-height: 220px; }
}

@media (min-width: 1024px) {
  .footer-top-decoration img { max-height: 280px; }
}

@media (min-width: 1440px) {
  .footer-top-decoration img { max-height: 350px; }
}

@media (min-width: 1920px) {
  .footer-top-decoration img { max-height: 450px; }
}

/* Rug background overlay */
.footer-rug-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.1;
  pointer-events: none;
  z-index: 1;
}

.footer-rug-horizontal {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 2000px;
  height: auto;
  object-fit: contain;
}

.footer-rug-vertical {
  position: absolute;
  right: -20%;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  width: 150%;
  height: auto;
  object-fit: contain;
}

/* Footer column title */
.footer-title {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, white, transparent);
  border-radius: 2px;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: white;
  transform: translateX(4px);
}

.footer-links a::before {
  content: '';
  width: 0;
  height: 1px;
  background: white;
  transition: width 0.3s ease;
}

.footer-links a:hover::before {
  width: 12px;
}

/* Branch cards */
.branch-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.branch-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
}

.branch-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}

.branch-icon {
  font-size: 1rem;
}

.branch-name {
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Contact info */
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.contact-label {
  display: block;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-value {
  display: block;
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Social grid */
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.social-link.facebook:hover { background: #1877F2; }
.social-link.instagram:hover { 
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); 
}
.social-link.tiktok:hover { background: #000000; }
.social-link.youtube:hover { background: #FF0000; }
.social-link.linkedin:hover { background: #0A66C2; }
.social-link.whatsapp:hover { background: #25D366; }

/* Footer divider */
.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  margin-top: 2rem;
}

/* =============================================
   RESPONSIVE - Large Screens
   ============================================= */
@media (min-width: 1920px) {
  .footer-title { font-size: 1.25rem; }
  .footer-links a { font-size: 1.1rem; }
  .branch-name { font-size: 0.9rem; }
  .contact-value { font-size: 1rem; }
  .social-link { width: 52px; height: 52px; }
}

@media (min-width: 2048px) {
  .footer-title { font-size: 1.5rem; }
  .footer-links a { font-size: 1.25rem; }
  .branch-card { padding: 0.85rem 1rem; }
  .branch-name { font-size: 1rem; }
  .contact-icon { width: 44px; height: 44px; }
  .contact-value { font-size: 1.15rem; }
  .social-link { width: 60px; height: 60px; }
  .social-link svg { width: 24px; height: 24px; }
}

