/* ==========================================================================
   Footer (2026-12-03 redesign)
   Desktop: [company + contact + social] [Ettevõttest] [Tingimused] [contact form]
            partners row, bottom bar (© … | Teostus: Dignicy Studio)
   ========================================================================== */
.site-footer { background: #1c1f21; color: #c9ccce; padding: 0 !important; overflow: visible; }
.site-footer .footer-inner { max-width: 1300px; margin: 0 auto; padding: 0 5%; box-sizing: border-box; }

/* Grid: the widgets of sidebar 1 become grid cells next to the form column. */
.site-footer #footer-sidebar {
	display: grid !important;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr) minmax(0, .9fr) minmax(0, 1.5fr);
	grid-template-rows: auto auto 1fr;
	column-gap: 48px;
	max-width: none; margin: 0; padding: 72px 0 48px !important; overflow: visible;
}
.site-footer #footer-sidebar1 { display: contents; }
.site-footer #footer-sidebar1 > .widget { margin: 0; padding: 0; }
.site-footer #footer-sidebar1 > .widget_text { grid-column: 1; grid-row: 1; }
.site-footer #footer-sidebar1 > #nav_menu-4 { grid-column: 1; grid-row: 2; }
.site-footer #footer-sidebar1 > #nav_menu-8 { grid-column: 1; grid-row: 3; }
.site-footer #footer-sidebar1 > #nav_menu-5 { grid-column: 2; grid-row: 1 / span 3; }
.site-footer #footer-sidebar1 > #nav_menu-6 { grid-column: 3; grid-row: 1 / span 3; }
.site-footer #footer-sidebar2 { grid-column: 4; grid-row: 1 / span 3; width: auto; max-width: none; padding: 0 !important; }

/* Headings */
.site-footer .widget-title,
.site-footer h3.widget-title {
	margin: 0 0 18px; padding: 0;
	font-family: "Kanit", system-ui, sans-serif; font-size: 15px !important; font-weight: 600;
	letter-spacing: .07em; text-transform: uppercase; line-height: 1.3; color: #fff !important;
}
.site-footer .widget_text p { margin: 0 0 14px; line-height: 1.6; font-size: 15px; }

/* Links */
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0; }
.site-footer a, .site-footer a:visited { color: #c9ccce; text-decoration: none; transition: color .15s; }
.site-footer a:hover, .site-footer a:focus-visible { color: #fff; }
.site-footer #nav_menu-5 li, .site-footer #nav_menu-6 li { margin: 0 0 10px; font-size: 15px; line-height: 1.4; }
.site-footer .current-menu-item > a { color: #fff; }

/* Phone / e-mail */
.site-footer #nav_menu-4 li { margin: 0 0 8px; }
.site-footer #nav_menu-4 a { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; }
.site-footer #nav_menu-4 a b { font-weight: 600; color: #fff; }
.site-footer #nav_menu-4 .icon { width: 15px; height: 15px; color: #dc523b; position: relative; top: -1px; }

/* Social buttons */
.site-footer ul#menu-sotsiaalmeedia { display: flex; gap: 10px; margin-top: 18px; }
.site-footer ul#menu-sotsiaalmeedia li { margin: 0; }
.site-footer ul#menu-sotsiaalmeedia a {
	display: flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 50%; background: #2a2e32; color: #fff; font-size: 17px;
	transition: background-color .15s;
}
.site-footer ul#menu-sotsiaalmeedia a:hover { background: #dc523b; }
.site-footer ul#menu-sotsiaalmeedia .icon { width: 17px; height: 17px; }

/* Contact form */
.site-footer .wpcf7 form p { margin: 0 0 10px; }
.site-footer .wpcf7 input[type="text"],
.site-footer .wpcf7 input[type="email"],
.site-footer .wpcf7 input[type="tel"],
.site-footer .wpcf7 textarea {
	width: 100%; box-sizing: border-box; margin: 0;
	padding: 11px 14px !important; border: 1px solid #3a3f44 !important; border-radius: 8px !important;
	background: #24282b !important; color: #fff !important; font-size: 15px; line-height: 1.4;
	transition: border-color .15s;
}
.site-footer .wpcf7 textarea { height: 110px; min-height: 90px; resize: vertical; }
.site-footer .wpcf7 input::placeholder, .site-footer .wpcf7 textarea::placeholder { color: #8b9095; opacity: 1; }
.site-footer .wpcf7 input:focus, .site-footer .wpcf7 textarea:focus { outline: none; border-color: #dc523b !important; }
.site-footer .wpcf7 input.wpcf7-not-valid, .site-footer .wpcf7 textarea.wpcf7-not-valid { border-color: #ff7b66 !important; }
.site-footer .wpcf7 .wpcf7-submit { margin-top: 4px; padding: 11px 28px !important; border-radius: 8px !important; }
.site-footer .wpcf7 form .wpcf7-response-output { margin: 12px 0 0; padding: 8px 12px; border-radius: 8px; color: #fff; }

/* Partners */
.site-footer #footer-sidebar3 {
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px;
	width: auto; max-width: none; margin: 0; padding: 22px 0 !important;
	border-top: 1px solid #2f3337;
}
.footer-partners-label { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #8b9095; }
.site-footer #footer-sidebar3 .widget { margin: 0; padding: 0; }
.site-footer #footer-sidebar3 ul { display: flex; flex-wrap: wrap; gap: 6px 18px; border: 0 !important; padding: 0 !important; margin: 0; }
.site-footer #footer-sidebar3 ul li { margin: 0 !important; font-size: 14px; }

/* Bottom bar */
.footer-bottom { border-top: 1px solid #2f3337; background: #17191b; }
.footer-bottom .footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 18px; padding-bottom: 18px; }
.footer-bottom p { margin: 0; font-size: 13px; line-height: 1.5; color: #8b9095; }
.footer-bottom a, .footer-bottom a:visited { color: #c9ccce; font-weight: 600; }
.footer-bottom a:hover { color: #dc523b; }

/* Tablet: company | links | links, form full width below */
@media only screen and (max-width: 1000px) {
	.site-footer #footer-sidebar { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 56px !important; row-gap: 0; }
	.site-footer #footer-sidebar2 { grid-column: 1 / -1; grid-row: 4; margin-top: 36px; }
}
/* Phone: company, then two link columns side by side, then form */
@media only screen and (max-width: 640px) {
	.site-footer #footer-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; padding-top: 48px !important; }
	.site-footer #footer-sidebar1 > .widget_text,
	.site-footer #footer-sidebar1 > #nav_menu-4,
	.site-footer #footer-sidebar1 > #nav_menu-8 { grid-column: 1 / -1; }
	.site-footer #footer-sidebar1 > #nav_menu-8 { margin-bottom: 36px; }
	.site-footer #footer-sidebar1 > #nav_menu-5 { grid-column: 1; grid-row: 4; }
	.site-footer #footer-sidebar1 > #nav_menu-6 { grid-column: 2; grid-row: 4; }
	.site-footer #footer-sidebar2 { grid-row: 5; }
	.footer-bottom .footer-inner { flex-direction: column; }
}
