/* =========================================================
   SCOPIONE — Footer Styles
   Extracted from scopione-child.css for maintainability.
   Enqueue via scopione_enqueue_footer_css() in functions.php
   ========================================================= */


/* ===== Base footer typography ===== */

/* Override Bootstrap's .bg-dark (#343a40) with Scopione's darker tone.
   ID + class specificity beats Bootstrap's .bg-dark !important regardless of load order. */
#footer.bg-dark {
	background-color: #151515 !important;
}

#footer {
	font-size: .9125rem;
}

/* Self-sufficient overrides — ID specificity guards against CSS-combiner reordering. */
#footer small,
#footer .small {
	font-size: 0.9375rem;              /* matches var(--text-sm) — beats Bootstrap's 80% */
}
#footer a {
	color: rgba(255,255,255,.5);
	font-weight: 500;
	text-decoration: none;
	transition: color .2s ease;
}
#footer a:hover {
    color: #fff;
    text-decoration: none;
}
#footer .text-white-50 {
	color: rgba(255,255,255,.5) !important;
}


/* ===== Social icon buttons ===== */

.social-buttons a {
	font-size: 1.125rem;
	margin-top: 5px;
    margin-bottom: 10px;
    padding: .125rem .175rem;
}

/* Spacing between tagline and social icons */
.footer .social-buttons {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.footer .footer-brand p {
  margin-bottom: 0.4rem !important;
}

/* Social icons hover effect (SVG sprite) */
.footer .social-buttons a svg {
  color: #a9a9a9;
  transition: color 0.25s ease, transform 0.2s ease;
}
.footer .social-buttons a:hover svg,
.footer .social-buttons a:focus svg {
  color: var(--sc-yellow);
  transform: translateY(-1px);
}

/* Legacy .social-icon class (responsive sizing) */
.list-inline-item .social-icon {
  width: 24px !important;
  height: auto !important;
  transition: transform 0.25s ease, color 0.25s ease;
  color: #fff;
  vertical-align: middle;
}

@media (max-width: 991.98px) {
  .list-inline-item .social-icon {
    width: 32px !important;
  }
}

@media (max-width: 767.98px) {
  .list-inline-item .social-icon {
    width: 38px !important;
  }
}

@media (max-width: 480px) {
  .list-inline-item .social-icon {
    width: 44px !important;
  }
}

.list-inline-item a:hover .social-icon {
  color: var(--sc-yellow);
  transform: scale(1.15);
}

/* Tap-friendly space */
.list-inline-item a {
  display: inline-block;
  padding: 4px;
}


/* ===== Payment card icons (legacy) ===== */

.ccards i {
	font-size: 2rem;
	color: #6c757d;
}


/* ===== Footer nav links (.flinks) ===== */

@media (max-width: 767.98px) {
	.flinks li, .flinks li a {padding: 0.4rem 0;}
}


/* ===== Footer feature / trust-badge row (.bg-darker) ===== */

/* Trust badge icon color — ID specificity beats Bootstrap's .text-warning (#ffc107) */
#footer .text-warning {
    color: #F6941D !important;
}

/* Container spacing */
.bg-darker .container.border-bottom {
    padding-top: .75rem;
    padding-bottom: .75rem;
}

/* Center each column's content */
.bg-darker .row > [class*="col-"] {
    display: flex;
    justify-content: center;
}

/* Feature box styling */
.bg-darker .d-flex.align-items-start {
    gap: 12px;
    max-width: 360px;
}

/* Icon container */
.bg-darker .d-flex .flex-shrink-0 {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* Icon styling */
.bg-darker .d-flex .flex-shrink-0 svg {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    margin-top: 4px;
}

/* Typography */
.bg-darker .d-flex h6 {
    margin: 0 0 2px 0;
    font-weight: 600;
}

.bg-darker .d-flex p {
    margin: 0;
    opacity: .8;
}

/* Mobile: centered block, left-aligned content */
@media (max-width: 767.98px) {
    .bg-darker .container,
    .bg-darker .row {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .bg-darker .col-sm-6,
    .bg-darker .col-md-3 {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-bottom: .5rem;
    }

    .bg-darker .d-flex.align-items-start {
        justify-content: flex-start;
        width: auto;
        min-width: 280px;
    }

    .bg-darker .d-flex h6,
    .bg-darker .d-flex p,
    .bg-darker .d-flex small {
        text-align: left;
    }
}

/* Tablet: 2x2 grid spacing */
@media (min-width: 768px) and (max-width: 991.98px) {
    .bg-darker .row > [class*="col-"] {
        margin-bottom: .5rem;
    }
}

/* Desktop: lighter divider */
@media (min-width: 768px) {
    .bg-darker .container.border-bottom {
        border-bottom-color: rgba(255, 255, 255, .08) !important;
    }
}


/* ===== Mobile centering — social icons & logo ===== */

@media (max-width: 767.98px) {
  /* Social icons row */
  .footer .social-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    margin: 0 auto !important;
    text-align: center;
  }
  .footer .social-buttons .list-inline-item { margin: 0 6px; }

  /* Logo only */
  .footer .footer-brand {
    display: block;
    text-align: center !important;
    margin: 0 auto 0.75rem auto !important;
  }
  .footer .footer-brand img {
    display: block;
    margin: 0 auto;
    max-width: 180px;
    height: auto;
  }
}


/* ===== Footer legal bar ===== */

.footer-legal-links {
  font-size: 0.875rem !important;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.25px;
  color: rgba(255,255,255,0.75) !important;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 0.5rem;
}

.footer-legal-links .list-inline-item {
  margin-right: 0.5rem;
}

.footer-legal-links .list-inline-item.mx-2 {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  color: rgba(255,255,255,0.4);
}

.footer-legal-links a {
  color: rgba(255,255,255,0.75) !important;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
  font-weight: 400;
}

.footer-legal-links a:hover {
  color: var(--sc-yellow) !important;
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  .footer-legal-links {
    font-size: 0.9375rem !important;
    line-height: 1.6;
    justify-content: center;
    text-align: center;
  }
}
