/*--------------------------------------------------------------
Footer Styling (footer.css)
--------------------------------------------------------------*/

.site-footer {
  background-color: var(--eerie-black);
  background:
    url('https://armdesign.agency/projekti/rok/sibo/wp-content/uploads/2025/05/mask-grid-.png'),              
    var(--eerie-black);                           
  background-repeat: repeat, no-repeat;
  background-position: top left, center bottom;
  background-size: cover;
  color: var(--antiflash-white);
  height: 1080px;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-top: 8rem;
  overflow: hidden;
}

/* 2. Container stacks top/middle/bottom */
.site-footer .site-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 3. Top widgets (logo/socials + columns + CTA) */
.footer-widgets {
  flex: 0 0 auto;
}

/* 4. Middle hexagon pattern at very bottom */
.before-footer {
  flex: 1;
}

/* 5. Bottom row pinned to bottom */
.footer-bottom {
  flex: 0 0 auto;
  background: transparent;
  color: var(--platinum);
  background-image: url(https://armdesign.agency/projekti/rok/sibo/wp-content/uploads/2025/05/mask-grid-.png) !important;
  justify-content: space-between;
}

/* 6. Column headings */
.site-footer h6 {
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  color: var(--red-pantone);
  margin-bottom: 1rem;
}

/* 7. Unstyled lists */
.site-footer ul.list-unstyled {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer ul.list-unstyled li {
  margin-bottom: 0.5rem;
}

/* 8. Links */
.site-footer a {
  color: var(--antiflash-white);
  text-decoration: none;
  font-size: 14px;
  line-height: 30px;
}
.site-footer a:hover {
  text-decoration: underline;
}

/* 9. Social icons */
.footer-widgets .list-inline {
  margin: 0;
  padding: 0;
}
.footer-widgets .list-inline-item + .list-inline-item {
  margin-left: 1rem;
}
.footer-widgets .list-inline-item img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

/* 10. Bottom row link spacing */
.footer-bottom .list-inline-item + .list-inline-item {
  margin-left: 2rem;
}

/* default: no extra left margin on small screens */
.bottom-spacing-logo {
  margin-left: 0;
  margin-top: 1rem;
}

/* ≥576px (sm) */
@media (min-width: 576px) {
  .bottom-spacing-logo {
    margin-left: 4rem;  /* ~64px */
    margin-top: 0;
  }
}

/* ≥768px (md) */
@media (min-width: 768px) {
  .bottom-spacing-logo {
    margin-left: 8rem;  /* ~128px */
  }
}

/* ≥992px (lg) */
@media (min-width: 992px) {
  .bottom-spacing-logo {
    margin-left: 2rem; /* ~192px */
  }
}

/* ≥1200px (xl) */
@media (min-width: 1200px) {
  .bottom-spacing-logo {
    margin-left: 0rem;
  }
}

.site-footer h6 {
    font-size: 16px;
    line-height: 30px;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--red-pantone);
    margin-bottom: 2rem;
}

.bottom-spacing-logo p.mb-0 {
    font-size: 14px;
    line-height: 30px;
}

/* before-footer panels */
.before-footer-panels {
  margin-top: 5rem !important;
  margin-bottom: 2rem;
}
.before-footer-panels .panel {
  display: flex;
  flex-direction: column;
  justify-content: center;   
  align-items: flex-start;
  height: 340px;             
  border-radius: 5px;       
  box-sizing: border-box;    
  padding: 1.5rem;           
}

.before-footer-panels .col-md-6 {
  display: flex;
}

.before-footer-panels .col-md-6 > .panel {
  flex: 1;                   
}

.before-footer-panels .panel-dark {
  background-color: var(--eerie-black);
  background-image: url('https://armdesign.agency/projekti/rok/sibo/wp-content/uploads/2025/05/before-footer-panel-background.png');
  color: var(--white);
  background-size: cover;
}
.before-footer-panels .panel-red {
  background-color: var(--brand-red);
  background-image: url('https://armdesign.agency/projekti/rok/sibo/wp-content/uploads/2025/05/before-footer-panel-background-red.png');
  color: var(--white);
  background-size: cover;
}
.before-footer-panels h3 {
  font-size: 36px;
  line-height: 48px;
  font-weight: SemiBold;
  color: var(--white);
}
.before-footer-panels p.small {
  font-size: 16px;
  line-height: 30px;
}
.before-footer-panels a {
  color: inherit;
  text-decoration: none;
}
.before-footer-panels a:hover {
  text-decoration: underline;
}

.panel-red h3, .panel-dark h3 {
    padding: 0px !important;
}

.footer-widgets .justify-content-end span.btn-sibo__text {
    font-size: 18px;
}






@media (max-width: 768px) {
.site-container.before-footer-panels.row.gx-4.mb-5.px-4 {
    padding-left: 0px !important;
    padding-right: 0px !important;
	gap: 25px;
}	
.panel-red h3, .panel-dark h3 {
    font-size: 24px !important;
    line-height: 36px !important;
}
.before-footer-panels .col-md-6 > .panel {
    padding: 1.5rem !important;
}	
.before-footer-panels p.small {
    font-size: 14px !important;
    line-height: 21px !important;
	width: 100%;
}	
.before-footer-panels .container-fluid.row.gx-3 {
    display: flex;
    flex-direction: column;
    width: 100% !important;
}	
.before-footer-panels .container-fluid.row.gx-3 .col-6 {
    line-height: 21px;
    font-size: 14px;
    width: 100%;
}	
.before-footer-panels .panel-dark, .before-footer-panels .panel-red {
    background-position: right;
}	




footer.site-footer {
    padding-top: 0rem !important;
}	
ul.list-inline.mb-0.mt-lg-5 {
    display: flex;
    margin: auto 0;
    width: 100%;
    text-align: center;
    justify-content: space-between;
    margin-top: 25px;
}
.site-footer .col {
    width: 32%;
	margin-top: 25px;
}	
.site-footer a {
    font-size: 12.5px;
	line-height: 15px;
}
.list-inline-item a, ul.list-inline.mb-0.bottom-spacing-logo p {
    color: #666666 ! IMPORTANT;
	padding-top: 0px !important;
}
.footer-bottom > a.navbar-brand:last-child {
    padding: 0px !important;
    margin: 0px !important;
}
.before-footer-panels .panel {
    height: 375px !important;
}
.site-footer a.btn.btn-sibo.btn-sibo--white {
    display: none !important;
}
footer.site-footer {
    height: auto;
}
.footer-bottom.d-flex.align-items-center.px-3.py-4 {
    display: flex;
    flex-direction: column;
}
ul.list-inline.mb-0.bottom-spacing-logo {
        display: flex;
        flex-direction: row;
        flex-flow: wrap;
		justify-content: center;
}
ul.list-inline.mb-0.bottom-spacing-logo p {
    order: 5;
    width: 100% !important;
    clear: both;
	flex: 0 0 100%;
	text-align: center;
}
li.list-inline-item.ms-5 {
    margin-left: 10px !important;
}
}