/*
Theme Name: GEO.DEZJA
Template: generatepress
Description: Motyw potomny GeneratePress dla geo.dezja.pl. Kolorystyka i układ nawiązują do poprzedniej strony (biel, czerń, szarości, Lato), w nowoczesnej, responsywnej i lekkiej wersji.
Version: 1.1.0
Text Domain: geo-dezja
*/

/* ---------- Czcionka Lato (lokalnie, bez Google Fonts) ---------- */
@font-face { font-family: "Lato"; font-style: normal; font-weight: 300; font-display: swap; src: url(fonts/lato-latin-300-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 300; font-display: swap; src: url(fonts/lato-latin-ext-300-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/lato-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/lato-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/lato-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/lato-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 900; font-display: swap; src: url(fonts/lato-latin-900-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 900; font-display: swap; src: url(fonts/lato-latin-ext-900-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Kolorystyka starej strony: biel, czerń, szarości ---------- */
:root {
	--geo-black: #000;
	--geo-dark: #1a1a1a;
	--geo-text: #333;
	--geo-muted: #737373;
	--geo-line: #e2e2e2;
	--geo-soft: #f3f3f3;
	--geo-page-bg: #e7e7e7;
	--geo-box: 1100px;
	--geo-font: "Lato", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Podstawy ---------- */
body {
	font-family: var(--geo-font);
	font-weight: 400;
	color: var(--geo-text);
	font-size: 17px;
	line-height: 1.7;
	background: var(--geo-page-bg) linear-gradient(180deg, #f9f9f9 0, var(--geo-page-bg) 600px) no-repeat;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--geo-font); color: var(--geo-black); font-weight: 400; line-height: 1.25; }
h1 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); margin-bottom: .6em; }
h2 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.75rem); margin: 1.6em 0 .6em; }
h3 { font-size: 1.2rem; margin: 1.4em 0 .5em; }
strong, b { font-weight: 700; }
a { color: var(--geo-black); text-decoration: underline; text-decoration-color: #a6a6a6; text-underline-offset: 3px; }
a:hover, a:focus { color: var(--geo-muted); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--geo-black); outline-offset: 2px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content ul li::marker { color: var(--geo-muted); }
hr, .wp-block-separator { border: 0; border-top: 1px solid var(--geo-line); margin: 2.5em 0; }

/* ---------- Biały „pudełkowy” układ jak na starej stronie ---------- */
.geo-box,
.site-header,
.main-navigation,
.site.grid-container,
.geo-prefooter,
.site-footer .site-info {
	max-width: var(--geo-box);
	margin-left: auto;
	margin-right: auto;
}
.site-header { background: #fff; margin-top: 20px; }
.site.grid-container { background: #fff; }
.separate-containers .inside-article, .one-container .container { background: #fff; }

/* ---------- Nagłówek ---------- */
.site-header .inside-header { padding: 28px 30px 22px; align-items: flex-end; }
.main-title { font-size: 2.6rem; font-weight: 700; letter-spacing: -.01em; line-height: 1; margin: 0; }
.main-title a, .main-title a:hover { color: var(--geo-black); text-decoration: none; }
.site-description { color: #c0c0c0; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin: .35em 0 0; font-weight: 400; }

.geo-header-phones { margin-left: auto; text-align: right; font-size: .9rem; color: var(--geo-muted); line-height: 1.5; }
.geo-header-phones a { color: var(--geo-black); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.geo-header-phones a:hover { color: var(--geo-muted); }
.geo-header-phones span { display: block; }

/* ---------- Menu: czarny pasek, wielkie litery ---------- */
.main-navigation, .main-navigation ul ul { background: var(--geo-black); }
.main-navigation .inside-navigation { padding: 0 20px; }
.main-navigation .main-nav ul li a {
	color: #fff; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em;
	padding-left: 16px; padding-right: 16px; line-height: 48px; text-decoration: none;
}
.main-navigation .main-nav > ul > li + li { border-left: 1px solid #3d3d3d; }
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current-menu-ancestor > a,
.main-navigation .main-nav ul li.current_page_parent > a { color: #c0c0c0; background: var(--geo-dark); }
.main-navigation .main-nav ul ul { width: 260px; background: var(--geo-black); }
.main-navigation .main-nav ul ul li a { color: #fff; background: transparent; }
.main-navigation .main-nav ul ul li:hover > a,
.main-navigation .main-nav ul ul li:focus-within > a,
.main-navigation .main-nav ul ul li.sfHover > a,
.main-navigation .main-nav ul ul li[class*="current-menu-"] > a { color: #fff; background: #3d3d3d; }
.main-navigation .main-nav ul ul li a { text-transform: none; font-weight: 400; font-size: .95rem; line-height: 1.4; padding-top: 11px; padding-bottom: 11px; border-top: 1px solid #333; }
.main-navigation .menu-toggle, .main-navigation .menu-bar-item > a { color: #fff; }

/* ---------- Pasek „Telefon” pod menu (jak na starej stronie) ---------- */
.geo-strap { background: #fff; text-align: center; padding: 18px 20px 6px; border-bottom: 1px solid var(--geo-line); }
.geo-strap p { margin: 0; color: var(--geo-text); font-size: 1.05rem; }
.geo-strap .geo-strap__phone { font-size: 1.7rem; color: var(--geo-black); line-height: 1.5; }
.geo-strap .geo-strap__phone a { font-weight: 700; text-decoration: none; color: var(--geo-black); }
.geo-strap .geo-strap__phone small { font-size: 1.05rem; color: var(--geo-muted); }

/* ---------- Treść ---------- */
.site-content .content-area { padding: 0; }
.one-container .site-content { padding: 36px 40px 40px; }
.geo-lead { font-size: 1.15rem; color: var(--geo-muted); max-width: 820px; font-weight: 300; }
.entry-title { font-weight: 400; }
img { border-radius: 0; }

/* Przyciski: czarne jak menu */
.wp-block-button .wp-block-button__link, .button, button, input[type="submit"] {
	background: var(--geo-black); color: #fff; border-radius: 0; font-weight: 700;
	text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; padding: 1em 1.7em; border: 0; text-decoration: none;
}
.wp-block-button .wp-block-button__link:hover, .button:hover, button:hover, input[type="submit"]:hover { background: #3d3d3d; color: #fff; }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--geo-black); border: 2px solid var(--geo-black); padding: calc(1em - 2px) calc(1.7em - 2px); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--geo-black); color: #fff; }

/* GeneratePress dodaje 40px paddingu do grup – sekcje mają własne odstępy. */
.entry-content .wp-block-group__inner-container { padding: 0; max-width: none; }

/* ---------- Strona główna ---------- */
.geo-home-intro.geo-strap { text-align: center; margin: -12px 0 2rem; padding: 0 0 1.2rem; }
.geo-home-intro .geo-strap__phone { margin: 0; }
.geo-home-intro h1 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); margin-bottom: .2em; }

/* Kafle 2×2: tytuł nad zdjęciem, jak na starej stronie */
.geo-tiles { margin: 0 0 2.5rem; }
.geo-tiles > .wp-block-group__inner-container,
.geo-tiles:not(:has(> .wp-block-group__inner-container)) { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.geo-tile figure { margin: 0; }
.geo-tile { margin: 0; }
.geo-tile h2 { font-size: 1.05rem; margin: 0 0 .45em; font-weight: 400; color: var(--geo-text); }
.geo-tile a { text-decoration: none; color: inherit; display: block; }
.geo-tile img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; transition: opacity .2s ease; }
.geo-tile a:hover img { opacity: .85; }
.geo-tile a:hover h2 { color: var(--geo-black); text-decoration: underline; }

/* Sekcje pod kaflami */
.geo-section { padding: 2rem 0; border-top: 1px solid var(--geo-line); }
.geo-section:first-child { border-top: 0; }
.geo-section h2 { margin-top: 0; }
.geo-section--soft { background: var(--geo-soft); margin-left: -40px; margin-right: -40px; padding-left: 40px; padding-right: 40px; border-top: 0; }

/* Karty usług */
.geo-cards { gap: 1.25rem; }
.geo-card { background: #fff; border: 1px solid var(--geo-line); padding: 1.25rem 1.4rem; height: 100%; }
.geo-card h3 { margin-top: .2em; font-size: 1.1rem; font-weight: 700; }
.geo-card h3 a { text-decoration: none; color: var(--geo-black); }
.geo-card h3 a:hover { text-decoration: underline; }
.geo-card p { color: var(--geo-muted); font-size: .95rem; margin-bottom: 0; }

/* Siatka realizacji */
.geo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; margin: 1.5rem 0; }
.geo-grid .geo-card { padding: 0 0 1.1rem; overflow: hidden; }
.geo-grid .geo-card figure { margin: 0 0 .9rem; }
.geo-grid .geo-card figure img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; display: block; }
.geo-grid .geo-card h3, .geo-grid .geo-card p { padding: 0 1.1rem; }
.geo-grid .geo-card:not(:has(figure)) { padding-top: 1.1rem; }

/* ---------- Karty biur ---------- */
.geo-offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin: 1.5rem 0; }
.geo-office { background: #fff; border: 1px solid var(--geo-line); border-top: 4px solid var(--geo-black); padding: 1.3rem 1.5rem; color: var(--geo-text); }
.geo-office .geo-office__title { margin: 0 0 .3em; font-size: 1.25rem; color: var(--geo-black); }
.geo-office__company { color: var(--geo-muted); margin-bottom: .8em; font-size: .95rem; }
.geo-office__list { list-style: none; margin: 0; padding: 0; }
.geo-office__list li { padding: .2em 0; }
.geo-office__phone a { font-size: 1.35rem; font-weight: 700; color: var(--geo-black); text-decoration: none; }
.geo-office__phone::before { content: "Tel. "; color: var(--geo-muted); }
.geo-office__nip, .geo-office__hours { color: var(--geo-muted); font-size: .95rem; }

/* Mapa ładowana na żądanie */
.geo-map {
	display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: center;
	min-height: 160px; padding: 1rem; background: var(--geo-soft); border: 1px solid var(--geo-line); margin: 1.5rem 0;
}
.geo-map iframe { width: 100%; height: 380px; border: 0; }
.geo-map.is-loaded { padding: 0; border: 0; background: none; display: block; }
.geo-map.is-loaded .geo-map__route { display: inline-block; margin-top: .5rem; }

/* Szczegóły realizacji */
.geo-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .75rem 1.5rem; background: var(--geo-soft); padding: 1rem 1.25rem; margin: 0 0 2rem; }
.geo-meta dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--geo-muted); }
.geo-meta dd { margin: 0; font-weight: 700; color: var(--geo-black); }

/* Archiwum realizacji */
.post-type-archive-realizacja .site-main,
.tax-branza .site-main { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.post-type-archive-realizacja .page-header,
.tax-branza .page-header,
.post-type-archive-realizacja .rank-math-breadcrumb,
.tax-branza .rank-math-breadcrumb,
.post-type-archive-realizacja .paging-navigation,
.tax-branza .paging-navigation { grid-column: 1 / -1; }
.post-type-archive-realizacja .inside-article,
.tax-branza .inside-article { border: 1px solid var(--geo-line); height: 100%; padding: 0 0 1rem !important; }
.post-type-archive-realizacja .post-image,
.tax-branza .post-image { margin: 0 0 1rem !important; }
.post-type-archive-realizacja .post-image img,
.tax-branza .post-image img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-type-archive-realizacja .entry-header, .post-type-archive-realizacja .entry-summary,
.tax-branza .entry-header, .tax-branza .entry-summary { padding: 0 1.1rem; }
.post-type-archive-realizacja .entry-title,
.tax-branza .entry-title { font-size: 1.1rem; font-weight: 700; }
.post-type-archive-realizacja .entry-title a,
.tax-branza .entry-title a { text-decoration: none; }
.post-type-archive-realizacja .entry-summary,
.tax-branza .entry-summary { font-size: .95rem; color: var(--geo-muted); }

/* Blok „Zadzwoń” na końcu podstron */
.geo-cta-box {
	background: var(--geo-black); color: #c0c0c0; padding: 1.5rem 1.75rem; margin: 3rem 0 1rem;
	display: flex; flex-wrap: wrap; gap: .5rem 2rem; align-items: center; justify-content: space-between;
}
.geo-cta-box p { margin: 0; font-size: 1.05rem; }
.geo-cta-box strong { color: #fff; }
.geo-cta-box a.geo-phone { color: #fff; font-weight: 700; font-size: 1.35rem; text-decoration: none; white-space: nowrap; }

/* FAQ */
.wp-block-details { border: 1px solid var(--geo-line); padding: .85rem 1.2rem; margin: .6rem 0; }
.wp-block-details summary { font-weight: 700; color: var(--geo-black); cursor: pointer; }
.wp-block-details[open] summary { margin-bottom: .5rem; }

/* Okruszki */
.rank-math-breadcrumb { font-size: .85rem; color: var(--geo-muted); margin-bottom: 1rem; }
.rank-math-breadcrumb a { color: var(--geo-muted); text-decoration: none; }
.rank-math-breadcrumb a:hover { color: var(--geo-black); }

/* Formularz */
.wpcf7 input:not([type="submit"]):not([type="checkbox"]), .wpcf7 textarea, .wpcf7 select {
	width: 100%; border: 1px solid #c0c0c0; padding: .7em .9em; background: #fff; border-radius: 0;
}
.wpcf7 label { font-weight: 700; display: block; margin-bottom: .9rem; }
.wpcf7 .wpcf7-list-item { margin: 0; font-weight: 400; font-size: .9rem; }

/* ---------- Stopka: czarna, 3 kolumny ---------- */
.site-footer { background: transparent; }
.geo-prefooter { background: var(--geo-black); color: #a9a9a9; padding: 2.5rem 40px 1.5rem; }
.geo-prefooter .inside { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.geo-prefooter h2 { color: #fff; font-size: 1.35rem; margin: 0 0 .9rem; }
.geo-prefooter p, .geo-prefooter li { font-size: .92rem; }
.geo-prefooter a { color: #fff; text-decoration: none; }
.geo-prefooter a:hover { color: #c0c0c0; text-decoration: underline; }
.geo-prefooter ul { list-style: none; margin: 0; padding: 0; }
.geo-prefooter li { padding: .1em 0; }
.geo-prefooter .geo-footer-gap { margin-top: .9em; }
.geo-prefooter .geo-footer-links { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.site-info { background: var(--geo-black); color: #777; font-size: .8rem; border-top: 1px solid #333; margin-bottom: 20px; }
.site-info a { color: #a9a9a9; }
.site-info .inside-site-info { padding: 14px 20px; }

/* Pływający pasek „Zadzwoń” na telefonach */
.geo-callbar { display: none; }

@media (max-width: 1140px) {
	.site-header { margin-top: 0; }
	.site-info { margin-bottom: 0; }
}

@media (max-width: 768px) {
	body { font-size: 16px; background: #fff; }
	.site-header .inside-header { padding: 18px 20px 14px; }
	.main-title { font-size: 2rem; }
	.geo-header-phones { display: none; }
	.one-container .site-content { padding: 24px 20px 32px; }
	.geo-section--soft { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
	.geo-tiles > .wp-block-group__inner-container,
	.geo-tiles:not(:has(> .wp-block-group__inner-container)) { grid-template-columns: 1fr; gap: 22px; }
	.geo-strap .geo-strap__phone { font-size: 1.4rem; }
	.geo-prefooter { padding: 2rem 20px 1rem; }
	.geo-prefooter .inside { grid-template-columns: 1fr; gap: 1.5rem; }
	.main-navigation .main-nav > ul > li + li { border-left: 0; border-top: 1px solid #333; }
	.geo-callbar {
		display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
		box-shadow: 0 -4px 16px rgba(0, 0, 0, .2);
	}
	.geo-callbar a {
		flex: 1; text-align: center; padding: .9em .5em; font-weight: 700; text-decoration: none;
		background: var(--geo-black); color: #fff; font-size: .95rem;
	}
	.geo-callbar a + a { background: #3d3d3d; }
	.site-footer { padding-bottom: 52px; }
}

/* ---------- Obsługa dotykowa (wszystkie ekrany) ---------- */
/* Cała karta usługi/realizacji jest klikalna – większy cel dotyku niż sam nagłówek. */
.geo-card { position: relative; }
.geo-card h3 a::after { content: ""; position: absolute; inset: 0; }
.geo-card:focus-within { outline: 2px solid var(--geo-black); outline-offset: 2px; }
.wp-block-details summary { padding: .55rem 0; min-height: 44px; display: flex; align-items: center; }
.wp-block-details summary::marker, .wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::before { content: "+"; font-weight: 700; width: 1.2em; flex: none; }
.wp-block-details[open] summary::before { content: "–"; }
.geo-map__route { display: inline-block; padding: .6rem 0; }
.entry-content h3 > a { display: inline-block; padding: .4rem 0; }
.geo-office__phone a { display: inline-block; padding: .25rem 0; }
.site-info { font-size: .875rem; }
.site-info a { display: inline-block; padding: .4rem 0; }
.geo-prefooter li a { display: inline-block; padding: .2rem 0; }
.geo-meta dt { font-size: .8rem; }

@media (max-width: 768px) {
	/* Przycisk „do góry” nad paskiem „Zadzwoń”. */
	.generate-back-to-top { bottom: 72px !important; }
	.geo-prefooter li a, .geo-prefooter .geo-footer-links a { padding: .45rem 0; }
	.geo-callbar a { min-height: 52px; display: flex; align-items: center; justify-content: center; }
	.entry-content ul li, .entry-content ol li { margin-bottom: .35em; }
	.geo-cta-box { padding: 1.25rem; }
	.geo-cta-box a.geo-phone { display: inline-block; padding: .3rem 0; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}
