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

.site-footer {
  background: #383710;
  padding-block: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 -16px 32px rgba(56, 55, 20, 0.2);
}

/* Dot-grid overlay */
/* SVG helper classes replacing inline styles */
.footer-svg-stroke {
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.footer-svg-play {
  fill: var(--color-primary-dark);
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(201, 157, 102, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

/* ---- Column 1: Brand ---- */
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.footer__logo {
  display: inline-block;
}

.footer__logo img {
  height: 38px;
  width: auto;
}

.footer__tagline {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.75;
  max-width: 300px;
}

/* Social icons */
.footer__social {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.footer__social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 0.3px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: background var(--transition-base),
              border-color var(--transition-base),
              color var(--transition-base);
}

.footer__social-link--fb:hover  { background: #1877F2; border-color: #1877F2; color: #fff; }
.footer__social-link--ig:hover  { background: #E1306C; border-color: #E1306C; color: #fff; }
.footer__social-link--tt:hover  { background: #000;    border-color: #69C9D0; color: #fff; }
.footer__social-link--yt:hover  { background: #FF0000; border-color: #FF0000; color: #fff; }

.footer__social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ---- Columns 2 & 3 ---- */
.footer__col-title {
  font-size: 0.6875rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

/* Branches list */
.footer__branches {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__branch-link {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__branch-link::before {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
  opacity: 0.6;
}

.footer__branch-link:hover {
  color: var(--color-accent);
}

.footer__branch-link:hover::before {
  opacity: 1;
}

/* Contact list */
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
}

.footer__contact-row svg {
  width: 15px;
  height: 15px;
  fill: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__contact-row a {
  color: inherit;
  transition: color var(--transition-fast);
}

.footer__contact-row a:hover {
  color: var(--color-accent);
}

/* ---- Divider ---- */
.footer__divider {
  border: none;
  border-top: 0.3px solid rgba(255, 255, 255, 0.08);
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ---- Bottom bar ---- */
.footer__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
  padding-block: var(--space-lg);
}

.footer__copyright {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer__copyright a {
  color: var(--color-accent);
  transition: opacity var(--transition-fast);
}

.footer__copyright a:hover {
  opacity: 0.8;
}

.footer__credits {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* 640px – 2-col grid */
@media (min-width: 640px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* 768px – iPad Mini */
@media (min-width: 768px) {
  .site-footer {
    padding-block: var(--space-4xl) 0;
  }

  .footer__tagline {
    font-size: 0.9375rem;
  }

  .footer__branch-link,
  .footer__contact-row {
    font-size: 0.9375rem;
  }
}

/* 853px – ZenBook Fold */
@media (min-width: 853px) {
  .footer__inner {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--space-3xl);
  }

  .footer__logo img {
    height: 44px;
  }
}

/* 900px – Surface Pro */
@media (min-width: 900px) {
  .footer__tagline {
    max-width: 340px;
  }
}

/* 1024px – iPad Pro */
@media (min-width: 1024px) {
  .site-footer {
    padding-block: var(--space-4xl) 0;
  }

  .footer__inner {
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: var(--space-4xl);
  }

  .footer__logo img {
    height: 48px;
  }

  .footer__col-title {
    font-size: 0.75rem;
    margin-bottom: var(--space-lg);
  }

  .footer__branch-link,
  .footer__contact-row {
    font-size: 1rem;
  }

  .footer__tagline {
    font-size: 1rem;
    max-width: 360px;
  }
}

/* 1280px – Desktop */
@media (min-width: 1280px) {
  .footer__inner {
    gap: var(--space-4xl);
  }

  .footer__logo img {
    height: 52px;
  }
}

/* 1440px – Wide */
@media (min-width: 1440px) {
  .footer__tagline {
    max-width: 400px;
  }
}

/* Nest Hub */
@media (min-width: 1024px) and (max-height: 650px) {
  .site-footer {
    padding-top: var(--space-2xl);
  }
}

/* Phone landscape */
@media (orientation: landscape) and (max-height: 500px) {
  .site-footer {
    padding-top: var(--space-2xl);
  }
}
