/*
Theme Name: Estman
Theme URI: https://estman.pl/
Author: Estman sp. z o.o.
Description: Motyw strony Estman Transport & Spedycja – strona główna, Dla przewoźnika i Kariera w wersji polskiej i angielskiej, z formularzami wysyłanymi na biuro@estman.pl.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: estman
*/

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
	margin: 0;
	background: #ffffff;
	color: #0F1F17;
	font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: #0B5A35; }
a:hover { color: #06371F; }
input::placeholder, textarea::placeholder { color: #7A8A80; }
input, textarea, button, select { font-family: inherit; }
:focus-visible { outline: 3px solid #7FD3A1; outline-offset: 2px; }
main a[style*="background: #ffffff"]:hover { background: #E3EDE6 !important; }
main a[style*="background: #0B5A35"]:hover,
main button[type="submit"]:hover { background: #06371F !important; }

.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: #0B5A35; color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: #ffffff; border-bottom: 1px solid #DCE6DF;
}
.admin-bar .site-header { top: 32px; }
.site-header__inner {
	max-width: 1240px; margin: 0 auto; padding: 14px 24px;
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.site-header__logo { display: flex; align-items: center; flex: none; }
.site-header__logo img { height: 52px; width: auto; display: block; }
.site-nav { display: flex; flex-wrap: nowrap; align-items: center; gap: 20px; white-space: nowrap; font-size: 15px; font-weight: 600; }
.site-nav a { color: #0F1F17; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: #0B5A35; }
.site-nav a.is-current { color: #0B5A35; border-bottom-color: #0B5A35; }
.site-header__actions { display: flex; align-items: center; gap: 14px; flex: none; }
.lang-switch { display: flex; align-items: center; font-size: 14px; font-weight: 700; }
.lang-switch > * { padding: 10px 6px; }
.lang-switch span[aria-current] { color: #0B5A35; }
.lang-switch a { color: #4A5A51; text-decoration: none; }
.lang-switch .sep { color: #C9D6CD; padding: 0; }
.site-header__phone {
	display: flex; align-items: center; gap: 8px;
	color: #0B5A35; font-weight: 700; text-decoration: none; font-size: 15px; white-space: nowrap;
}
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 44px; padding: 12px 20px; border-radius: 8px;
	font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
}
.btn--primary { background: #0B5A35; color: #ffffff; }
.btn--primary:hover { background: #06371F; color: #ffffff; }

.mobile-menu { display: none; position: relative; }
.mobile-menu summary {
	list-style: none; cursor: pointer; width: 44px; height: 44px;
	display: flex; align-items: center; justify-content: center;
	border: 1px solid #C9D6CD; border-radius: 8px; color: #0F1F17;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu__panel {
	position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, 86vw);
	background: #ffffff; border: 1px solid #DCE6DF; border-radius: 14px;
	box-shadow: 0 20px 50px rgba(6, 55, 31, 0.18); padding: 10px;
	display: flex; flex-direction: column;
}
.mobile-menu__panel a {
	color: #0F1F17; text-decoration: none; font-weight: 600; font-size: 16px;
	padding: 12px 14px; border-radius: 8px;
}
.mobile-menu__panel a:hover { background: #F3F7F4; }
.mobile-menu__phone { color: #0B5A35 !important; font-weight: 700 !important; border-top: 1px solid #DCE6DF; border-radius: 0 !important; margin-top: 6px; }

@media (max-width: 1500px) {
	.site-header__phone { display: none; }
}
@media (max-width: 1200px) {
	.site-nav { display: none; }
	.mobile-menu { display: block; }
}
@media (max-width: 560px) {
	.site-header__inner { padding: 10px 16px; gap: 10px; }
	.site-header__logo img { height: 40px; }
	.site-header__cta { display: none; }
}
@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}

/* ---------- Footer ---------- */
.site-footer { background: #06371F; color: #BFE3CD; }
.site-footer { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.site-footer__inner {
	max-width: 1240px; margin: 0 auto; padding: 28px 24px;
	display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; font-size: 14px;
}
.site-footer__brand { font-family: Archivo, Inter, sans-serif; font-weight: 900; font-size: 22px; color: #ffffff; letter-spacing: 0.01em; }
.site-footer__brand span { font-weight: 700; font-size: 13px; color: #BFE3CD; letter-spacing: 0.04em; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: #BFE3CD; }
.site-footer a:hover { color: #ffffff; }

/* ---------- Forms ---------- */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.estman-form { position: relative; }
.estman-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.estman-form textarea:focus { outline: none; border-color: #0B5A35 !important; box-shadow: 0 0 0 3px rgba(11, 90, 53, 0.18); }
.form-notice { padding: 14px 16px; border-radius: 10px; font-size: 15px; font-weight: 600; line-height: 1.45; }
.form-notice.is-ok { background: #E3F4EA; color: #0B5A35; border: 1px solid #9BD3B2; }
.form-notice.is-error { background: #FDECEA; color: #8A1C12; border: 1px solid #F1B5AD; }

.pill { position: relative; display: inline-flex; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span {
	display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px;
	border-radius: 999px; border: 1.5px solid #C9D6CD; background: #ffffff; color: #2B3B32;
	font-size: 14px; font-weight: 600; cursor: pointer; user-select: none;
}
.pill:hover span { border-color: #0B5A35; }
.pill input:checked + span { background: #0B5A35; border-color: #0B5A35; color: #ffffff; }
.pill input:focus-visible + span { outline: 3px solid #7FD3A1; outline-offset: 2px; }

/* ---------- FAQ ---------- */
.faq { border-bottom: 1px solid #DCE6DF; }
.faq summary {
	list-style: none; cursor: pointer;
	display: flex; justify-content: space-between; align-items: center; gap: 24px;
	padding: 24px 0; min-height: 44px;
	font-family: Archivo, Inter, sans-serif; font-weight: 700; font-size: 19px; color: #0F1F17;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: #0B5A35; }
.faq-ico {
	flex: none; width: 36px; height: 36px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: #E3EDE6; color: #0B5A35; transition: transform 0.2s, background 0.2s;
}
.faq[open] .faq-ico { background: #0B5A35; color: #ffffff; transform: rotate(45deg); }
.faq p { margin: 0; padding: 0 56px 26px 0; font-size: 16px; line-height: 1.65; color: #4A5A51; }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
	main section > div { padding-left: 16px !important; padding-right: 16px !important; }
	main section > div[style*="padding: 104px"],
	main section > div[style*="padding: 96px"] { padding-top: 64px !important; padding-bottom: 64px !important; }
	main section > div[style*="padding: 88px 24px 72px"],
	main section > div[style*="padding: 96px 24px 88px"] { padding-top: 48px !important; padding-bottom: 48px !important; }
	.estman-form { padding: 22px !important; }
	.dest-list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.dest-list li { grid-column: auto !important; font-size: 17px !important; padding: 16px !important; }
	.faq summary { font-size: 17px; }
	.faq p { padding-right: 0; }
}

/* ---------- Generic pages (e.g. privacy policy) ---------- */
.content-page { max-width: 820px; margin: 0 auto; padding: 64px 24px 96px; line-height: 1.7; font-size: 17px; }
.content-page h1 { font-family: Archivo, Inter, sans-serif; font-weight: 800; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; color: #06371F; }
.content-page h2, .content-page h3 { font-family: Archivo, Inter, sans-serif; color: #06371F; }
