/* ================================================================
   CAS & SONS PROTECTIVE GROUP — FOOTER STYLES (footer.css)
   Requires Google Fonts in <head>:
   <link href="https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Inter:wght@400;500&display=swap" rel="stylesheet">
   Safe to include alongside header.css — shared :root tokens
   have identical values and will not conflict.
================================================================ */

:root {
  --clr-blue:   #244383;
  --clr-blue2:  #1a3268;
  --clr-white:  #ffffff;
  --clr-muted:  #5a6a8a;
  --clr-border: rgba(36, 67, 131, 0.15);
  --font-head:  'Rajdhani', sans-serif;
  --font-body:  'Inter', sans-serif;
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --radius:     6px;
  --max-w:      1380px;
}

/* ── FOOTER WRAPPER ──────────────────────────────────────────── */
.cas-footer {
  background: var(--clr-blue);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-body);
}

/* ── TOP 3-COLUMN SECTION ────────────────────────────────────── */
.cas-footer__top {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 24px 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
}
.cas-footer__heading {
  font-family: var(--font-head);
  font-size: 20px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--clr-white);
  margin-bottom: 16px;
}
.cas-footer__about p {
  font-size: 14px; line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
  max-width: 360px;
}

/* Quick Links */
.cas-footer__links-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.cas-footer__link-pill {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.cas-footer__link-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--clr-white);
}

/* Contact */
.cas-footer__contact-list { list-style: none; display: flex; flex-direction: column; }
.cas-footer__contact-list li {
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
  display: flex; align-items: flex-start; gap: 10px;
}
.cas-footer__contact-list li:first-child { padding-top: 0; }
.cas-footer__contact-list li:last-child { border-bottom: none; }
.cas-footer__contact-list a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.cas-footer__contact-list a:hover { color: var(--clr-white); }
.cas-footer__contact-list .label {
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  display: block; margin-bottom: 2px;
}
.cas-footer__contact-icon {
  flex-shrink: 0; width: 16px; height: 16px;
  margin-top: 2px; opacity: 0.65;
}

/* ── LICENSE BAR ─────────────────────────────────────────────── */
.cas-footer__licenses {
  background: var(--clr-blue2);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.cas-footer__licenses-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: stretch; flex-wrap: wrap;
}
.cas-footer__license-item {
  flex: 1 1 auto;
  padding: 14px 16px;
  font-family: var(--font-head);
  font-size: 13px; font-weight: 600; letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; align-items: center; justify-content: center;
}
.cas-footer__license-item:last-child { border-right: none; }

/* ── BOTTOM BAR ──────────────────────────────────────────────── */
.cas-footer__bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.cas-footer__copy { font-size: 13px; color: rgba(255, 255, 255, 0.5); }
.cas-footer__copy a { color: rgba(255, 255, 255, 0.5); text-decoration: none; }
.cas-footer__copy a:hover { color: var(--clr-white); }

/* Social panel — horizontal pill, same style as .hero-social */
.cas-footer__social {
  display: flex;
  flex-direction: row;
  gap: 7px;
  background: #fff;
  padding: 5px;
  border-radius: 12px;
}
.cas-footer__social a img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}
.cas-footer__social a {
  display: block;
  transition: transform 0.2s, opacity 0.2s;
}
.cas-footer__social a:hover { transform: translateY(-2px); opacity: 0.85; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .cas-footer__top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .cas-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .cas-footer__top { grid-template-columns: 1fr; padding: 40px 20px 32px; gap: 32px; }
  .cas-footer__about { grid-column: auto; }
  .cas-footer__licenses-inner { flex-direction: column; }
  .cas-footer__license-item {
    flex: 1 1 auto;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    text-align: left; justify-content: flex-start; padding: 12px 16px;
  }
  .cas-footer__license-item:last-child { border-bottom: none; }
  .cas-footer__bottom { flex-direction: column-reverse; align-items: flex-start; gap: 16px; }
  .cas-footer__social { max-width: 100%; }
}
