/*
 * ╔══════════════════════════════════════════════════╗
 * ║  villaGo — Footer Component                     ║
 * ╚══════════════════════════════════════════════════╝
 */

.footer {
  background: #1a1a1a;
  color: white;
  padding: var(--y-space-xxl) var(--y-space-m) var(--y-space-l);
}

.footer-grid {
  max-width: 1280px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-block-end: 48px;
}

/* ── Brand column ────────────────────────────────── */
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--y-space-s);
  margin-block-end: var(--y-space-m);
}

.footer-logo-link {
  display: flex;
  align-items: center;
  gap: var(--y-space-s);
  text-decoration: none;
}

.footer-logo {
  height: 36px;
  width: auto;
}

.footer-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--y-color-primary);
  border-radius: var(--y-radius-s);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-brand-name {
  color: white;
  font-size: 1.2rem;
  font-weight: var(--y-weight-bold);
}

.footer-brand-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--y-font-s);
  line-height: 1.8;
  margin-block-end: var(--y-space-l);
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--y-radius-s);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--y-transition-fast);
  color: white;
  min-height: 44px;
  min-width: 44px;
}

.footer-social-link:hover {
  background: var(--y-color-primary);
}

/* ── Link columns ────────────────────────────────── */
.footer-heading {
  color: white;
  font-size: 1rem;
  font-weight: var(--y-weight-bold);
  margin-block-end: 20px;
}

.footer-link {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--y-font-s);
  margin-block-end: 12px;
  transition: color var(--y-transition-fast);
}

.footer-link:hover {
  color: var(--y-color-accent);
}

/* ── Contact items ───────────────────────────────── */
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-block-end: var(--y-space-m);
}

.footer-contact-icon {
  color: var(--y-color-accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer-contact-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--y-font-s);
}

/* ── Bottom bar ──────────────────────────────────── */
.footer-bottom {
  max-width: 1280px;
  margin-inline: auto;
  border-block-start: 1px solid rgba(255, 255, 255, 0.1);
  padding-block-start: var(--y-space-l);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--y-space-m);
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.4);
  font-size: var(--y-font-xs);
}

.footer-bottom-links {
  display: flex;
  gap: var(--y-space-l);
}

.footer-bottom-link {
  color: rgba(255, 255, 255, 0.4);
  font-size: var(--y-font-xs);
  transition: color var(--y-transition-fast);
}

.footer-bottom-link:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE STYLES
   ═══════════════════════════════════════════════════ */

/* ── Large Desktop (lg) ──────────────────────────── */
@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Tablet (md) ─────────────────────────────────── */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: var(--y-space-l); }
  .footer { padding-block-start: var(--y-space-xl); }
}

/* ── Mobile Landscape / Large Phone (sm) ─────────── */
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--y-space-m); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── Small Phone (xs) ────────────────────────────── */
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-links { flex-direction: column; gap: var(--y-space-s); }
}
