/* ============================================================
   Collibre — FOOTER
   Render: inc/footer.php (hook astra_footer_before). Ciemna stopka 5-kolumnowa
   (marka+newsletter zajmują 2 kolumny) + pasek dolny. Mockup: Strona-glowna.html 572–628.
   ============================================================ */

/* Chowamy domyślny copyright Astry (#colophon) — renderujemy własną stopkę przed nim */
#colophon {
	display: none !important;
}

.tech-footer {
	background: var(--tech-ink);
	color: var(--tech-white);
}

.tech-footer__inner {
	max-width: var(--tech-container);
	margin-inline: auto;
	padding: 4rem var(--tech-gutter);
}
@media (min-width: 640px) {
	.tech-footer__inner { padding-inline: var(--tech-gutter-sm); }
}

/* Siatka: marka (2 kolumny) + Sklep + Firma + Pomoc */
.tech-footer__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 2.5rem;
}
@media (max-width: 1023px) { .tech-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px)  { .tech-footer__grid { grid-template-columns: 1fr; } }

/* --- Marka + newsletter --- */
/* ⚠️ Prefiks `.tech-footer` jest KONIECZNY (fix 2026-09-11, feedback „logo w stopce
   czasem baaardzo się powiększa"). WooCommerce ma globalne
   `.woocommerce img, .woocommerce-page img { height:auto; max-width:100% }` = (0,1,1),
   co bije samą klasę `.tech-footer__logo` = (0,1,0) → na KAŻDEJ stronie sklepowej
   (produkt/sklep/koszyk/kasa/konto) logo wracało do naturalnej wysokości
   (pomiar: 361×72 px zamiast 180×36). Na stronach bez klasy `woocommerce` w <body>
   problem nie występował — stąd „czasem". `.tech-footer .tech-footer__logo` = (0,2,0) wygrywa. */
.tech-footer .tech-footer__logo {
	height: 36px;
	width: auto;
	max-width: 100%;
	filter: brightness(0) invert(1);   /* logo na biało */
}
.tech-footer__logo-text {
	font-size: var(--tech-fs-2xl);
	font-weight: var(--tech-fw-extrabold);
	color: var(--tech-white);
}
.tech-footer__tagline {
	margin: 1rem 0 1.5rem;
	max-width: 24rem;
	color: rgba(255, 255, 255, 0.6);
	line-height: var(--tech-lh-normal);
}
.tech-footer__newsletter {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	max-width: 24rem;
}
.tech-footer__news-row { display: flex; gap: 0.5rem; }
/* Wysoka specyficzność + !important — Astra/Woo stylują inputy na biało z ostrą ramką */
.tech-footer .tech-footer__news-input {
	flex: 1;
	min-width: 0;
	border-radius: var(--tech-radius-pill) !important;
	background: rgba(255, 255, 255, 0.1) !important;
	border: 1px solid rgba(255, 255, 255, 0.15) !important;
	padding: 0.75rem 1.25rem !important;
	color: var(--tech-white) !important;
	font-size: var(--tech-fs-sm);
	box-shadow: none !important;
}
.tech-footer .tech-footer__news-input::placeholder { color: rgba(255, 255, 255, 0.45) !important; }
.tech-footer .tech-footer__news-input:focus {
	outline: none !important;
	background: rgba(255, 255, 255, 0.14) !important;
	border-color: rgba(255, 255, 255, 0.4) !important;
}
.tech-footer__news-btn {
	border: 0;
	border-radius: var(--tech-radius-pill);
	background: var(--tech-white);
	color: var(--tech-ink);
	padding: 0.75rem 1.5rem;
	font-size: var(--tech-fs-sm);
	font-weight: var(--tech-fw-semibold);
	cursor: pointer;
	transition: background 0.2s ease;
}
.tech-footer__news-btn:hover { background: var(--tech-mist); }

/* --- Kolumny linków --- */
.tech-footer__heading {
	margin: 0 0 1rem;
	font-size: var(--tech-fs-base);
	font-weight: var(--tech-fw-bold);
	color: var(--tech-white);
}
.tech-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
}
.tech-footer__menu a {
	color: rgba(255, 255, 255, 0.6);
	font-size: var(--tech-fs-sm);
	text-decoration: none !important;   /* kontra globalnego a{underline} Astry */
	transition: color 0.2s ease;
}
.tech-footer__menu a:hover { color: var(--tech-white); }
.tech-footer__menu-empty {
	margin: 0;
	font-size: var(--tech-fs-xs);
	color: rgba(255, 255, 255, 0.35);
}

/* --- Pasek dolny --- */
.tech-footer__bottom {
	margin-top: 3.5rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	font-size: var(--tech-fs-sm);
	color: rgba(255, 255, 255, 0.5);
}
.tech-footer__legal { display: flex; gap: 1.5rem; }
.tech-footer__legal a {
	color: rgba(255, 255, 255, 0.5);
	text-decoration: none !important;
	transition: color 0.2s ease;
}
.tech-footer__legal a:hover { color: var(--tech-white); }
.tech-footer__social { display: flex; gap: 1rem; }
.tech-footer__social a {
	color: rgba(255, 255, 255, 0.5);
	line-height: 0;
	transition: color 0.2s ease;
}
.tech-footer__social a:hover { color: var(--tech-white); }
