/* =============================================================================
   YAD AL MA — FOOTER STYLES
   ============================================================================= */

.footer {
  background: var(--color-dark);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

/* Decorative leaf pattern background */
.footer::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(27, 94, 32, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.footer::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -80px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 121, 107, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* Top CTA banner inside footer */
.footer-cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  padding: var(--space-12) 0;
  position: relative;
  overflow: hidden;
}

.footer-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero-landscape.jpg') center/cover no-repeat;
  opacity: 0.08;
}

.footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  position: relative;
}

.footer-cta-text .heading-3 {
  color: var(--color-white);
  margin-bottom: var(--space-2);
}

.footer-cta-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-lg);
  max-width: none;
}

.footer-cta-actions {
  display: flex;
  gap: var(--space-4);
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* Footer main body */
.footer-main {
  padding: var(--space-16) 0 var(--space-12);
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: var(--space-10);
}

/* Brand column */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  width: fit-content;
}

.footer-logo-img {
  height: 56px;
  width: auto;
  /* Light version for dark background */
  filter: brightness(1.1);
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  line-height: 1;
}

.footer-logo-tagline {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.55);
  display: block;
  letter-spacing: 0.05em;
}

.footer-brand-desc {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.75;
  max-width: 34ch;
}

/* Certifications / Awards */
.footer-badges {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.footer-badge {
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
}

/* Social links */
.footer-social {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: all var(--transition-base);
}

.footer-social-link:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-3px);
}

.footer-social-link svg,
.footer-social-link i {
  width: 18px;
  height: 18px;
  font-size: 18px;
  line-height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Column heading */
.footer-col-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  color: var(--color-white);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--color-primary-light);
  border-radius: 2px;
}

/* Footer links */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  list-style: none;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.62);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color var(--transition-fast), padding-left var(--transition-base);
  padding: 0.2rem 0;
}

.footer-link::before {
  content: '';
  width: 6px;
  height: 1px;
  background: var(--color-primary-light);
  flex-shrink: 0;
  transition: width var(--transition-base);
}

.footer-link:hover {
  color: var(--color-white);
  padding-left: 4px;
}

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

/* Contact info in footer */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.footer-contact-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-contact-icon svg,
.footer-contact-icon i {
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.footer-contact-label {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 3px;
}

.footer-contact-value {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color var(--transition-fast);
  display: block;
}

.footer-contact-value:hover { color: var(--color-white); }

/* Map embed preview */
.footer-map {
  margin-top: var(--space-4);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 120px;
}

.footer-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) invert(0.9) contrast(0.85);
  opacity: 0.7;
  transition: opacity var(--transition-base);
}

.footer-map:hover iframe {
  opacity: 1;
  filter: none;
}

/* Working hours */
.footer-hours {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-hours-time {
  color: rgba(255, 255, 255, 0.85);
  font-weight: var(--fw-medium);
}

/* Divider */
.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
}

/* Footer bottom bar */
.footer-bottom {
  padding: var(--space-6) 0;
  position: relative;
  z-index: 1;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.45);
}

.footer-copyright a {
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition-fast);
  text-decoration: none;
}

.footer-copyright a:hover { color: var(--color-white); }

.footer-legal-links {
  display: flex;
  gap: var(--space-4);
  list-style: none;
  flex-wrap: wrap;
}

.footer-legal-links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-legal-links a:hover { color: rgba(255, 255, 255, 0.8); }

/* Back to top button */
.back-to-top {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.back-to-top:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-3px);
}

.back-to-top svg,
.back-to-top i {
  width: 18px;
  height: 18px;
  font-size: 18px;
  line-height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* -----------------------------------------------------------------------------
   RESPONSIVE
   ----------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .footer-cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-cta-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-brand-desc { max-width: none; }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-main { padding: var(--space-12) 0; }
  .footer-social { justify-content: flex-start; }
}

/* -----------------------------------------------------------------------------
   ADDITIONAL FOOTER & CONTACT UTILITIES
   ----------------------------------------------------------------------------- */
.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  font-weight: var(--fw-semibold);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: all var(--transition-base);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  width: fit-content;
}

.footer-cta-btn:hover {
  background: var(--color-accent);
  color: var(--color-dark);
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 2px;
}

.footer-contact-link {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-contact-link:hover {
  color: var(--color-white);
}

.footer-legal-link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-legal-link:hover {
  color: rgba(255, 255, 255, 0.85);
}

