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

.site-footer {
  background: #0e2b1e;
  color: rgba(255, 255, 255, 0.65);
}

/* ── Footer Main ──────────────────────────────────── */
.footer__main {
  padding: var(--space-20) 0 var(--space-12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: var(--space-12);
}

/* ── Brand Column ─────────────────────────────────── */
.footer__logo-link {
  display: inline-block;
  margin-bottom: var(--space-5);
}

/* Constrain logo regardless of uploaded image size */
.footer__logo-link img,
.footer__logo-img {
  height: 48px !important;
  width: auto !important;
  max-width: 200px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer__logo-text {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-5);
}

.footer__tagline {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: var(--space-6);
}

/* ── Social Links ─────────────────────────────────── */
.footer__social {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer__social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.60);
  text-decoration: none;
  transition: border-color var(--transition-base), color var(--transition-base),
              background-color var(--transition-base), transform var(--transition-base);
  cursor: pointer;
}

.footer__social-link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(212, 160, 23, 0.10);
  transform: translateY(-3px);
}

/* SVG icons inside social links */
.footer__social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.footer__social-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: none;
  flex-shrink: 0;
}

/* ── Navigation Columns ──────────────────────────── */
.footer__col-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-6);
}

.footer__nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__nav-list li {
  margin-bottom: 0.75rem;
}

.footer__nav-list li a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--transition-base);
  text-decoration: none;
}

.footer__nav-list li a::before {
  content: '›';
  color: var(--color-accent);
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.footer__nav-list li a:hover {
  color: var(--color-white);
}

/* ── Contact Column ──────────────────────────────── */
.footer__contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__contact-list li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: var(--space-4);
  align-items: flex-start;
}

.footer__contact-list li a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  transition: color var(--transition-base);
  text-decoration: none;
}

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

.footer__contact-list address {
  font-style: normal;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

.footer__contact-list small {
  display: block;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 2px;
}

.footer__contact-icon {
  width: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-accent);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 1px;
}

.footer__contact-icon svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ── Footer Bottom Bar ───────────────────────────── */
.footer__bottom {
  padding: 1.75rem 0;
}

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

.footer__copyright {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 0;
}

.footer__legal {
  display: flex;
  gap: var(--space-6);
}

.footer__legal a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.38);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer__legal a:hover {
  color: rgba(255, 255, 255, 0.70);
}

/* ── Parent Company Credit (Rai Group) ───────────── */
.footer__parent-co {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.38);
}

.footer__parent-co-label {
  font-style: italic;
}

.footer__parent-co-name {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
}

/* Ready for when client provides logo file */
.footer__parent-co-logo {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}

.footer__parent-co-logo:hover {
  opacity: 0.85;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }
}

@media (max-width: 768px) {
  .footer__main {
    padding: var(--space-12) 0 var(--space-8);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

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

  .footer__legal {
    justify-content: center;
  }
}
