/* Minimal footer */
footer {
  position: relative;
  display: block;
  width: 100%;
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  background: var(--color-white);
}


.footer-col {
  padding-bottom: var(--space-xl);
}

footer h2,
footer h3,
footer h4 {
  margin: 0 0 var(--space-lg);
  color: var(--color-primary);
}

footer a:hover {
  color: var(--color-secondary);
}

.footer-widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-widget li {
  margin-bottom: var(--space-2xs);
}

.rights-text {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text);
  padding-bottom: var(--space-xl);
  font-style: italic;
}

/* Minimal footer logo rules (non-invasive) */
.footer-col .custom-logo,
.footer-col .custom-logo-link img {
  display: block;
  max-width: 14rem; /* ~224px at 16px root */
  width: 100%;
  height: auto;
}


/* Ensure footer logo/images are visible and responsive */
.footer-col img {
  display: block;
  max-width: 100%;
  height: auto;
}

.footer-logo .site-title {
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

/* Defensive: ensure widget containers don't clip content from other styles/plugins */
.footer-col,
.footer-widget {
  overflow: visible !important;
  max-height: none !important;
}

.footer-widget p,
.footer-widget .wp-block-paragraph {
  margin: 0 0 var(--space-xs);
  line-height: 1.45;
}


/* Logo sizing in footer */
.footer-logo img {
  width: 220px;
  max-width: 100%;
  height: auto;
}

/* Widget titles and lists */
.footer-widget .widgettitle {
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-md);
  font-size: 1.05rem;
}


.footer-widget ul,
.footer-widget .menu{
  display:flex;
  flex-direction:column;
  gap:0.8rem;
}

.footer-widget li a{
  position:relative;
  display:inline-flex;
  align-items:center;
  padding-left:1rem;
  text-decoration:none;
  color:var(--color-text);
  transition: color var(--transition-fast) ease, transform var(--transition-fast) ease, padding-left var(--transition-fast) ease;
}

.footer-widget li a::before{
  content:"\203A";
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-50%);
  color:var(--color-primary-alt);
}

.footer-widget li a:hover{
  color:var(--color-primary);
  transform:translateX(0.3rem);
}

/* Divider + bottom row layout */
#footer .container-fluid > .row + .row {
  border-top: 1px solid var(--color-border, rgba(0,0,0,0.06));
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  align-items: center;
}

#footer .container-fluid > .row + .row .col-xl-4:first-child {
  display: flex;
  align-items: center;
}

#footer .container-fluid > .row + .row .col-xl-4.text-center {
  text-align: center;
}

/* Seals in center column */
.footer-widget.footer_widget5 {
  display: inline-block;
  margin: 0 .75rem;
}

.footer-widget.footer_widget5 img {
  width: 4.375rem; /* ~70px at 16px root */
  height: auto;
  display: block;
}

.carfted-by-disignx-block {
  display: flex;
  justify-content: flex-end; /* right aligned */
  align-items: center;
}

.carfted-by-disignx-block img {
  width: 2.5rem; /* slightly smaller than seals */
  height: auto;
  display: inline-block;
}

/* Responsive: two columns on medium, full width on small */
@media (max-width: 1199.98px) {
  #footer .footer-col {
    flex: 1 1 50%;
    min-width: 320px;
  }

  /* Center bottom row elements on medium screens and add spacing under seals */
  #footer .container-fluid > .row + .row {
    text-align: center;
  }

  #footer .container-fluid > .row + .row .col-xl-4,
  #footer .container-fluid > .row + .row .col-xl-4.text-center {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .carfted-by-disignx-block {
    justify-content: center;
  }

  /* Add vertical spacing under the seals */
  .footer-widget.footer_widget5 img {
    margin-bottom: 1.25rem; /* 1.25rem = comfortable spacing */
  }
}

@media (max-width: 767.98px) {
  #footer .container-fluid > .row:first-child {
    flex-direction: column;
  }

  #footer .footer-col {
    flex: 1 1 100%;
    min-width: 100%;
    padding-right: 0;
  }

  /* Center bottom row elements on small screens and add spacing under seals */
  #footer .container-fluid > .row + .row {
    text-align: center;
  }

  #footer .container-fluid > .row + .row .col-xl-4,
  #footer .container-fluid > .row + .row .col-xl-4.text-center {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Ensure crafted-by is centered and slightly smaller on small screens */
  .carfted-by-disignx-block {
    justify-content: center;
  }

  /* Add vertical spacing under the seals on small screens */
  .footer-widget.footer_widget5 img {
    margin-bottom: 1.25rem;
  }
}
