/* ==========================================================
   Security Biz – Footer
   ========================================================== */
.sb-footer {
	--sbf-bg: #0d1a16;
	--sbf-bottom: #0b1512;
	--sbf-accent: #3fae49;
	--sbf-strip: #f1f7f2;
	--sbf-line: rgba(255, 255, 255, .1);
	--sbf-muted: rgba(255, 255, 255, .72);
	position: relative;
	font-family: var(--sb-font-body);
	color: #fff;
}
.sbf-container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 24px; }


/* ---------- CTA strip ---------- */
.sbf-strip {
	position: relative; z-index: 2; margin-bottom: -10px;
	display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 36px;
	background: var(--sbf-strip); border-radius: 18px; padding: 24px 36px;
	color: var(--sb-heading);
	box-shadow: 0 10px 40px rgba(16, 32, 47, .06);
}
.sbf-strip__msg { display: flex; align-items: center; gap: 22px; padding-right: 36px; border-right: 1px solid #cfdcd1; }
.sbf-strip__ico {
	flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%;
	background: #dcefdd; color: var(--sb-green);
	display: flex; align-items: center; justify-content: center; font-size: 26px;
	transition: transform .4s var(--sb-ease), background .3s, color .3s;
}
.sbf-strip__ico svg { width: 26px; fill: currentColor; }
.sb-footer .sbf-strip__title { font-family: var(--sb-font); font-size: 24px; line-height: 1.25; font-weight: 700; color: var(--sb-heading); }
.sb-footer .sbf-strip__title-green { display: block; color: var(--sb-green); }
.sb-footer .sbf-strip__text { margin-top: 4px; font-size: 15px; color: var(--sb-text); }
.sbf-strip__phone { display: flex; align-items: center; gap: 20px; color: var(--sb-heading); }
.sb-footer .sbf-strip__label { display: block; font-size: 14px; color: var(--sb-text); }
.sb-footer .sbf-strip__number { display: block; font-family: var(--sb-font); font-size: 26px; font-weight: 700; line-height: 1.3; color: var(--sb-heading); transition: color .3s; }
.sb-footer .sbf-strip__note { font-style: normal; font-size: 14px; color: var(--sb-text); }
.sbf-strip__phone:hover .sbf-strip__number { color: var(--sb-green); }
.sbf-strip__phone:hover .sbf-strip__ico { background: var(--sb-green); color: #fff; animation: sbf-ring .7s ease; }
.sbf-strip__msg:hover .sbf-strip__ico { transform: rotate(-8deg) scale(1.05); }
.sbf-strip__btn { padding: 14px 28px; }
@keyframes sbf-ring { 0%,100% { transform: rotate(0); } 20%,60% { transform: rotate(-14deg); } 40%,80% { transform: rotate(14deg); } }

/* ---------- Main ---------- */
.sbf-main {
	position: relative; overflow: hidden;
	background:
		linear-gradient(90deg, var(--sbf-bg) 0%, var(--sbf-bg) 60%, rgba(13, 26, 22, .7) 85%, rgba(13, 26, 22, .35) 100%),
		var(--sbf-photo, none) right center / auto 100% no-repeat,
		var(--sbf-bg);
	border-radius: 28px 28px 0 0;
	padding: 76px 0 48px;
}
.sbf-main::after { /* subtle diagonal stripes */
	content: ""; position: absolute; right: -80px; bottom: -40px; width: 420px; height: 420px; pointer-events: none;
	background: repeating-linear-gradient(120deg, transparent 0 40px, rgba(63, 174, 73, .06) 40px 80px);
	opacity: .8;
}
.sbf-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 300px 1fr 330px; }
.sbf-brand { padding-right: 36px; border-right: 1px solid var(--sbf-line); }
.sbf-logo { display: inline-flex; }
.sbf-logo img { display: block; max-width: 100%; height: auto; }
.sbf-logo span { font-family: var(--sb-font); font-size: 30px; font-weight: 700; color: #fff; }
.sb-footer .sbf-about { margin-top: 28px; font-size: 15px; line-height: 1.7; color: var(--sbf-muted); }
.sbf-social { display: flex; gap: 12px; margin-top: 28px !important; }
.sbf-social a {
	width: 42px; height: 42px; border-radius: 50%;
	background: rgba(255, 255, 255, .08); color: #fff;
	display: flex; align-items: center; justify-content: center; font-size: 16px;
	transition: background .3s var(--sb-ease), transform .3s var(--sb-ease), color .3s;
}
.sbf-social a svg { width: 16px; fill: currentColor; }
.sbf-social a:hover { background: var(--sbf-accent); transform: translateY(-4px); }

.sbf-cols { display: grid; grid-template-columns: .8fr 1fr 1fr; gap: 32px; padding: 0 36px; border-right: 1px solid var(--sbf-line); }
.sbf-contact-wrap { padding-left: 36px; }

.sbf-title { font-family: var(--sb-font); }
.sb-footer .sbf-toggle {
	display: block; width: 100%; text-align: left; cursor: default;
	font-family: var(--sb-font) !important; font-size: 18px !important; font-weight: 700; color: #fff !important; line-height: 1.3;
	padding-bottom: 16px !important; position: relative;
}
.sbf-toggle::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--sbf-accent); transition: width .35s var(--sb-ease); }
.sbf-col:hover .sbf-toggle::after { width: 60px; }
.sbf-toggle i { display: none; }
.sbf-panel__inner { padding-top: 24px; }

.sbf-links li + li { margin-top: 14px; }
.sbf-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: rgba(255, 255, 255, .85); font-size: 15px; transition: color .3s, transform .3s var(--sb-ease); }
.sbf-links a i { font-size: 10px; opacity: .8; transition: transform .3s var(--sb-ease), color .3s; }
.sbf-links a:hover { color: var(--sbf-accent); }
.sbf-links a:hover .sbf-links__text { transform: translateX(4px); }
.sbf-links__text { transition: transform .3s var(--sb-ease); }
.sbf-links a:hover i { transform: translateX(4px); color: var(--sbf-accent); }

.sbf-contact li + li { margin-top: 18px; }
.sbf-contact__item { display: flex; align-items: center; gap: 16px; color: #fff; }
.sbf-contact__ico {
	flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
	background: var(--sbf-accent); color: #fff;
	display: flex; align-items: center; justify-content: center; font-size: 15px;
	transition: transform .35s var(--sb-ease), box-shadow .35s;
}
.sbf-contact__ico svg { width: 15px; fill: currentColor; }
.sbf-contact__item:hover .sbf-contact__ico { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(63, 174, 73, .2); }
.sbf-contact__body { display: flex; flex-direction: column; gap: 3px; }
.sb-footer .sbf-contact__label { display: none; font-size: 13px; color: var(--sbf-muted); }
.sb-footer .sbf-contact__title { font-size: 15px; font-weight: 600; color: #fff; transition: color .3s; }
.sb-footer .sbf-contact__sub { font-size: 13.5px; color: var(--sbf-muted); }
a.sbf-contact__item:hover .sbf-contact__title { color: var(--sbf-accent); }

/* ---------- Bottom ---------- */
.sbf-bottom { background: var(--sbf-bottom); border-top: 1px solid var(--sbf-line); }
.sbf-bottom__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.sb-footer .sbf-copy { font-size: 14.5px; color: rgba(255, 255, 255, .85); }
.sbf-legal { display: flex; align-items: center; }
.sbf-legal li { padding: 0 22px; border-left: 1px solid rgba(255, 255, 255, .25); line-height: 1; }
.sbf-legal li:first-child { border-left: 0; }
.sbf-legal li:last-child { padding-right: 0; }
.sbf-legal a { font-size: 14px; color: rgba(255, 255, 255, .85); transition: color .3s; }
.sbf-legal a:hover { color: var(--sbf-accent); }

/* ---------- Scroll reveal ---------- */
.sb-footer.sbf-js .sbf-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--sb-ease), transform .7s var(--sb-ease); }
.sb-footer.sbf-js .sbf-reveal.is-in { opacity: 1; transform: none; }
.sb-footer.sbf-js .sbf-grid > .sbf-reveal:nth-child(2) { transition-delay: .1s; }
.sb-footer.sbf-js .sbf-grid > .sbf-reveal:nth-child(3) { transition-delay: .2s; }
.elementor-editor-active .sb-footer .sbf-reveal { opacity: 1 !important; transform: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1400px) {
	.sbf-grid { grid-template-columns: 270px 1fr 300px; }
	.sbf-cols { gap: 28px; padding: 0 28px; }
	.sbf-contact-wrap { padding-left: 28px; }
	.sbf-strip { gap: 28px; padding: 28px 32px; }
	.sbf-strip__msg { padding-right: 28px; }
}
@media (max-width: 1200px) {
	.sbf-grid { grid-template-columns: 1fr 1fr; row-gap: 48px; }
	.sbf-brand { border-right: 0; }
	.sbf-cols { grid-column: 1 / -1; grid-row: 2; padding: 0; border-right: 0; }
	.sbf-contact-wrap { grid-column: 2; grid-row: 1; padding-left: 0; }
	.sbf-strip { grid-template-columns: 1fr auto; }
	.sbf-strip__msg { grid-column: 1 / -1; border-right: 0; padding-right: 0; }
}

/* Mobile: accordions */
@media (max-width: 767px) {
	.sbf-container { padding: 0 16px; }
	.sbf-strip { grid-template-columns: 1fr; gap: 22px; padding: 26px 22px; margin-bottom: 24px; text-align: left; }
	.sbf-strip__msg { flex-direction: row; gap: 18px; }
	.sbf-strip__ico { width: 54px; height: 54px; font-size: 21px; }
	.sb-footer .sbf-strip__title { font-size: 20px; }
	.sb-footer .sbf-strip__number { font-size: 22px; }
	.sbf-strip__btn { width: 100%; }

	.sbf-main { border-radius: 0; padding: 20px 0 0; }
	.sbf-grid { display: flex; flex-direction: column; row-gap: 0; padding: 0 20px; }
	.sbf-cols { order: 1; display: block; }
	.sbf-contact-wrap { order: 2; }
	.sbf-brand { order: 3; text-align: center; padding: 40px 0 36px; margin-top: 8px; border-top: 1px solid var(--sbf-line); }
	.sb-footer .sbf-about { margin-top: 20px; font-size: 14.5px; }
	.sbf-social { justify-content: center; margin-top: 26px !important; }
	.sbf-social a { width: 46px; height: 46px; }

	.sbf-col { border-bottom: 1px solid var(--sbf-line); }
	.sbf-contact-wrap .sbf-col { border-bottom: 0; }
	.sb-footer .sbf-toggle { display: flex !important; align-items: center; justify-content: space-between; cursor: pointer; padding: 20px 0 !important; font-size: 18px !important; font-weight: 700; }
	.sbf-toggle::after { display: none; }
	.sbf-toggle i { display: block; font-size: 15px; transition: transform .35s var(--sb-ease); }
	.sbf-col.is-open .sbf-toggle i { transform: rotate(180deg); }
	.sbf-col.is-open .sbf-toggle { border-bottom: 1px solid var(--sbf-line); }

	.sbf-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--sb-ease); }
	.sbf-col.is-open .sbf-panel { grid-template-rows: 1fr; }
	.sbf-panel__inner { overflow: hidden; padding-top: 0; }
	.sbf-panel__inner > ul { padding: 24px 0 !important; }

	.sbf-contact li + li { margin-top: 24px; }
	.sbf-contact__item { align-items: flex-start; gap: 22px; padding-left: 2px; }
	.sbf-contact__ico { width: 54px; height: 54px; font-size: 21px; background: #1f5b2a; color: #a6e57c; }
	.sb-footer .sbf-contact__label { display: block; }
	.sb-footer .sbf-contact__title { font-size: 18px; font-weight: 700; }

	.sbf-bottom { background: var(--sbf-bg); border-top: 0; }
	.sbf-bottom__inner { flex-direction: column-reverse; padding: 24px 20px 28px; border-top: 1px solid var(--sbf-line); width: calc(100% - 40px); }
	.sbf-legal { flex-wrap: wrap; justify-content: center; row-gap: 12px; }
	.sbf-legal li { padding: 0 14px; }
	.sbf-legal a, .sb-footer .sbf-copy { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .sb-footer * { transition: none !important; animation: none !important; } }

/* v1.8 – mobile/tablet footer polish */
@media (max-width: 767px) {
	.sbf-main { border-radius: 26px 26px 0 0; padding-top: 14px; }
	.sbf-main::after { right: -140px; bottom: auto; top: 40%; opacity: .5; }
	.sbf-bottom { background: var(--sbf-bg); }
	.sbf-bottom__inner { width: auto; margin: 0 20px; padding: 22px 0 26px; gap: 16px; }
	.sbf-legal { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
	.sbf-legal li, .sbf-legal li:first-child, .sbf-legal li:last-child { padding: 0; border: 0; text-align: center; }
	.sbf-legal a { display: block; padding: 10px 8px; border-radius: 10px; background: rgba(255, 255, 255, .05); transition: background .3s, color .3s; }
	.sbf-legal a:hover { background: rgba(63, 174, 73, .15); }
	.sbf-brand { padding-top: 34px; }
	.sbf-logo img { margin: 0 auto; }
}

/* v1.9 – orange accents */
.sb-footer .sbf-toggle::after { background: linear-gradient(90deg, var(--sbf-accent), var(--sb-orange)); }
.sbf-social a:hover { background: var(--sb-orange); }
.sbf-links a:hover, .sbf-links a:hover i, .sbf-legal a:hover { color: #ffb35c; }
.sbf-main::after { background: repeating-linear-gradient(120deg, transparent 0 40px, rgba(63, 174, 73, .06) 40px 80px, transparent 80px 120px, rgba(247, 147, 30, .05) 120px 160px); }
/* v2.0 – contact icons alternate */
.sbf-contact li:nth-child(even) .sbf-contact__ico { background: var(--sb-orange); }
.sbf-strip__phone .sbf-strip__ico { background: #fff1e0; color: var(--sb-orange); }
.sbf-strip__phone:hover .sbf-strip__ico { background: var(--sb-orange); color: #fff; }
.sb-footer .sbf-copy { line-height: 1.6; }
.sb-footer .sbf-copy a { color: #ffb35c; text-decoration: underline; text-underline-offset: 3px; transition: color .3s; }
.sb-footer .sbf-copy a:hover { color: #fff; }
@media (max-width: 767px) { .sb-footer .sbf-copy { text-align: center; } }
