/*
Theme Name:   Róża Rent
Theme URI:    https://rozarent.pl/
Description:  Motyw potomny GeneratePress dla rozarent.pl: kolory i krój pisma obecnej strony (#161, migracja z ENITEO).
Author:       Dział IT Róża
Template:     generatepress
Version:      0.2.10
Requires PHP: 8.2
Text Domain:  rozarent
*/

/* Kroje lokalne (bez Google Fonts): Ubuntu jak na obecnej stronie; @fontsource/ubuntu 5.1.0, Ubuntu Font Licence 1.0. latin-ext = polskie znaki */
@font-face { font-family: 'Ubuntu'; font-style: normal; font-weight: 300; font-display: swap; src: url('fonts/ubuntu-latin-300.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: 'Ubuntu'; font-style: normal; font-weight: 300; font-display: swap; src: url('fonts/ubuntu-latin-ext-300.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: 'Ubuntu'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/ubuntu-latin-400.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: 'Ubuntu'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/ubuntu-latin-ext-400.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: 'Ubuntu'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/ubuntu-latin-500.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: 'Ubuntu'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/ubuntu-latin-ext-500.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: 'Ubuntu'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/ubuntu-latin-700.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: 'Ubuntu'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/ubuntu-latin-ext-700.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; }

:root {
	--rr-czerwony: #d2232a;      /* przyciski, akcenty */
	--rr-czerwony-ciemny: #a91b21;
	--rr-zielony: #026739;       /* CTA, nagłówki podstron */
	--rr-ciemny: #222222;        /* tekst, stopka */
	--rr-jasny: #f5f5f5;
	--rr-linia: #e5e5e5;
}

body,
button,
input,
select,
textarea {
	font-family: 'Ubuntu', 'Helvetica Neue', Arial, sans-serif;
	color: var(--rr-ciemny);
}

a { color: var(--rr-czerwony); }
a:hover, a:focus { color: var(--rr-czerwony-ciemny); }

/* Przyciski jak na obecnej stronie: czerwone, wersaliki */
button,
.button,
.wp-block-button__link,
input[type="submit"] {
	background-color: var(--rr-czerwony);
	color: #fff;
	text-transform: uppercase;
	border: 0;
}
button:hover,
.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover {
	background-color: var(--rr-czerwony-ciemny);
	color: #fff;
}

/* Przycisk zielony (CTA „Zarezerwuj”, „Zadzwoń”) – w edytorze: styl bloku „Zielony” */
.wp-block-button.is-style-zielony .wp-block-button__link {
	background-color: var(--rr-zielony);
	border-radius: 10px;
}
.wp-block-button.is-style-zielony .wp-block-button__link:hover {
	background-color: #fff;
	color: var(--rr-zielony);
	box-shadow: inset 0 0 0 1px var(--rr-zielony);
}

/* Pasek nagłówka podstrony – zielony jak .nagpage na obecnej stronie */
.rr-naglowek-podstrony {
	background-color: var(--rr-zielony);
	color: #fff;
	padding: 2.5rem 1rem;
}
.rr-naglowek-podstrony h1 { color: #fff; margin: 0; }

.site-footer, .site-info { background-color: var(--rr-ciemny); color: #fff; }
.site-info a { color: #fff; }

/* ===== 0.2.0: szablony stron ===== */
:root { --rr-szer: 1200px; --rr-promien: 10px; --rr-cien: 0 6px 24px rgba(0,0,0,.08); }
body { line-height: 1.65; background-color: #fff; }
h1, h2, h3, h4 { font-weight: 500; color: var(--rr-ciemny); line-height: 1.25; }
.rr-ikona { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none; }

/* Przyciski własne (nagłówek, stopka) */
.rr-przycisk { display: inline-flex; align-items: center; gap: .45em; padding: .7em 1.3em; border-radius: 6px; background: var(--rr-czerwony); color: #fff; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; font-size: .9rem; text-decoration: none; border: 2px solid var(--rr-czerwony); cursor: pointer; }
.rr-przycisk:hover, .rr-przycisk:focus { background: var(--rr-czerwony-ciemny); border-color: var(--rr-czerwony-ciemny); color: #fff; }
.rr-przycisk--obrys { background: transparent; color: var(--rr-czerwony); }
.rr-przycisk--obrys:hover, .rr-przycisk--obrys:focus { color: #fff; }
.rr-przycisk--maly { padding: .45em .9em; font-size: .8rem; }
/* Przyciski bloków – selektory mocniejsze niż domyślne kolory GeneratePress (.wp-block-button .wp-block-button__link) */
.wp-block-button a.wp-block-button__link:not(.has-background) { border-radius: 6px; font-weight: 500; letter-spacing: .02em; font-size: .95rem; background-color: var(--rr-czerwony); color: #fff; border: 2px solid var(--rr-czerwony); }
.wp-block-button a.wp-block-button__link:not(.has-background):hover, .wp-block-button a.wp-block-button__link:not(.has-background):focus { background-color: var(--rr-czerwony-ciemny); border-color: var(--rr-czerwony-ciemny); color: #fff; }
.wp-block-button.is-style-outline a.wp-block-button__link:not(.has-background) { background-color: transparent; color: var(--rr-czerwony); border-color: currentColor; }
.wp-block-button.is-style-outline a.wp-block-button__link:not(.has-background):hover, .wp-block-button.is-style-outline a.wp-block-button__link:not(.has-background):focus { background-color: var(--rr-czerwony); border-color: var(--rr-czerwony); color: #fff; }
.wp-block-cover .wp-block-button.is-style-outline a.wp-block-button__link:not(.has-background), .rr-sekcja--zielona .wp-block-button.is-style-outline a.wp-block-button__link:not(.has-background) { color: #fff; border-color: #fff; }
.wp-block-cover .wp-block-button.is-style-outline a.wp-block-button__link:not(.has-background):hover, .rr-sekcja--zielona .wp-block-button.is-style-outline a.wp-block-button__link:not(.has-background):hover, .wp-block-cover .wp-block-button.is-style-outline a.wp-block-button__link:not(.has-background):focus, .rr-sekcja--zielona .wp-block-button.is-style-outline a.wp-block-button__link:not(.has-background):focus { background-color: #fff; border-color: #fff; color: var(--rr-ciemny); }
.rr-sekcja--zielona .wp-block-button:not(.is-style-outline) a.wp-block-button__link:not(.has-background) { background-color: #fff; color: var(--rr-zielony); border-color: #fff; }
:focus-visible { outline: 3px solid var(--rr-zielony); outline-offset: 2px; }

/* Pasek górny */
.rr-pasek { background: var(--rr-ciemny); color: #eee; font-size: .85rem; }
.rr-pasek__w { max-width: var(--rr-szer); margin: 0 auto; padding: .4rem 20px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.rr-pasek ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.2rem; flex-wrap: wrap; align-items: center; }
.rr-pasek li { display: flex; align-items: center; gap: .4em; margin: 0; }
.rr-pasek a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; }
.rr-pasek a:hover { color: #fff; text-decoration: underline; }
.rr-pasek__akcje { display: flex; align-items: center; gap: 1rem; }
.rr-jezyki { gap: .2rem !important; }
.rr-jezyki a { padding: .15em .45em; border-radius: 4px; font-weight: 500; }
.rr-jezyki a[aria-current] { background: #fff; color: var(--rr-ciemny); }
.rr-pasek .rr-przycisk:hover { text-decoration: none; }

/* Nagłówek i menu */
.site-header { border-bottom: 1px solid var(--rr-linia); }
.inside-header { padding-top: 14px; padding-bottom: 14px; }
.site-logo img, .header-image { width: 190px; height: auto; }
.main-navigation .main-nav ul li a { text-transform: uppercase; font-size: .85rem; font-weight: 500; letter-spacing: .03em; color: var(--rr-ciemny); padding-left: 14px; padding-right: 14px; }
.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 { color: var(--rr-czerwony); }
.main-navigation ul ul { box-shadow: var(--rr-cien); }
.main-navigation .main-nav ul ul li a { text-transform: none; font-size: .9rem; }

/* Strony: tytuł z czerwonym akcentem jak na obecnej stronie */
.page .entry-title, .blog .page-title, .archive .page-title { font-size: clamp(1.8rem, 3vw, 2.4rem); position: relative; padding-bottom: .5em; margin-bottom: .2em; }
.page .entry-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; background: var(--rr-czerwony); }
.rr-pelna-szerokosc .inside-article { padding-top: 0; }
.rr-pelna-szerokosc .site-content { padding-top: 0; }
.rr-pelna-szerokosc .entry-content > .alignfull:first-child { margin-top: 0; }

/* Sekcje (grupy pełnej szerokości) */
.rr-sekcja { padding: clamp(2.5rem, 6vw, 4.5rem) 20px; }
.rr-sekcja > * { max-width: var(--rr-szer); margin-left: auto; margin-right: auto; }
.rr-sekcja--jasna { background: var(--rr-jasny); }
.rr-sekcja--zielona { background: var(--rr-zielony); color: #fff; }
.rr-sekcja--zielona h2, .rr-sekcja--zielona h3, .rr-sekcja--zielona a { color: #fff; }
.rr-naglowek-sekcji { text-align: center; position: relative; padding-bottom: .55em; margin-bottom: 1.6rem; }
.rr-naglowek-sekcji::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 56px; height: 3px; margin-left: -28px; background: var(--rr-czerwony); }
.rr-sekcja--zielona .rr-naglowek-sekcji::after { background: #fff; }
.rr-sekcja--zielona .rr-wstep, .rr-sekcja--zielona p { color: #fff; }
.rr-wstep { text-align: center; max-width: 760px !important; font-size: 1.08rem; color: #444; }

/* Hero (blok cover) */
.rr-hero.wp-block-cover { min-height: min(78vh, 640px); padding: 3rem 20px; }
.rr-hero .wp-block-cover__inner-container { max-width: var(--rr-szer); width: 100%; }
.rr-hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; max-width: 18ch; margin-bottom: .4em; }
.rr-hero p { color: #fff; font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 40ch; }
.rr-hero .wp-block-buttons { margin-top: 1.6rem; }

/* Pasek faktów pod hero */
.rr-fakty { background: var(--rr-zielony); color: #fff; padding: 1.1rem 20px; }
.rr-fakty ul { list-style: none; margin: 0 auto; padding: 0; max-width: var(--rr-szer); display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .8rem 1.5rem; }
.rr-fakty li { display: flex; align-items: center; gap: .6rem; margin: 0; font-weight: 500; }
.rr-fakty .rr-ikona { width: 28px; height: 28px; }

/* Zalety: siatka ikon */
.rr-zalety > .is-layout-grid, .rr-zalety.is-layout-grid { gap: 1.2rem; }
.rr-zaleta { background: #fff; border: 1px solid var(--rr-linia); border-radius: var(--rr-promien); padding: 1.4rem 1rem; text-align: center; }
.rr-zaleta .rr-ikona { width: 44px; height: 44px; color: var(--rr-czerwony); margin-bottom: .6rem; }
.rr-zaleta h3 { font-size: 1rem; margin: 0; font-weight: 500; }
.rr-zaleta p { margin: 0; }

/* Karty (grupa ze stylem „Karta”) i karty boksów */
.is-style-karta { background: #fff; border: 1px solid var(--rr-linia); border-radius: var(--rr-promien); padding: 1.4rem; box-shadow: var(--rr-cien); }
.rr-boksy, .rr-boksy > .is-layout-grid { gap: 1.2rem; }
.rr-boks { text-align: center; height: 100%; }
.rr-boks > .wp-block-group__inner-container { display: flex; flex-direction: column; height: 100%; }
.rr-boks h3 { color: var(--rr-czerwony); font-size: 1.4rem; margin: 0 0 .2em; font-weight: 700; }
.rr-boks .rr-boks__ile { color: #555; margin: 0; }
.rr-boks figure { margin: .8rem auto; }
.rr-boks img { max-height: 150px; width: auto; }
.rr-boks .rr-boks__cena { font-size: 1.15rem; margin: .4rem 0 .2rem; }
.rr-boks .rr-boks__cena strong { font-size: 1.6rem; color: var(--rr-ciemny); }
.rr-boks .rr-boks__uwagi { font-size: .85rem; color: #666; }
.rr-boks .wp-block-buttons { margin-top: auto; justify-content: center; }
.rr-cennik-info { text-align: center; }

/* FAQ: blok „Szczegóły” */
.wp-block-details { border: 1px solid var(--rr-linia); border-radius: 8px; padding: 0; margin: 0 0 .7rem; background: #fff; }
.wp-block-details summary { cursor: pointer; padding: .95rem 3rem .95rem 1.1rem; font-weight: 500; position: relative; list-style: none; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--rr-czerwony); }
.wp-block-details[open] summary::after { content: "–"; }
.wp-block-details[open] summary { border-bottom: 1px solid var(--rr-linia); }
.wp-block-details > :not(summary) { padding: 0 1.1rem; }
.wp-block-details > :not(summary):first-of-type { padding-top: .9rem; }
.wp-block-details > :last-child:not(summary) { padding-bottom: .9rem; }

/* Opinie */
.rr-opinie, .rr-opinie > .is-layout-grid { gap: 1.2rem; }
.rr-opinie .wp-block-quote { border: 1px solid var(--rr-linia); border-left: 4px solid var(--rr-czerwony); border-radius: var(--rr-promien); background: #fff; padding: 1.2rem 1.3rem; margin: 0; font-style: normal; }
.rr-opinie .wp-block-quote p { font-size: 1rem; }
.rr-opinie .wp-block-quote cite { font-style: normal; font-weight: 500; color: #555; }
.rr-gwiazdki { color: #e8a317; letter-spacing: .1em; margin: 0 0 .3em !important; }

/* Najnowsze wpisy */
.wp-block-latest-posts.is-grid { gap: 1.2rem; }
.wp-block-latest-posts.is-grid li { border: 1px solid var(--rr-linia); border-radius: var(--rr-promien); overflow: hidden; background: #fff; margin: 0 !important; padding-bottom: 1rem; }
.wp-block-latest-posts__featured-image img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.wp-block-latest-posts.is-grid li > a { display: block; padding: .8rem 1rem 0; font-weight: 500; color: var(--rr-ciemny); }
.wp-block-latest-posts__post-excerpt { padding: .3rem 1rem 0; color: #555; font-size: .93rem; margin: 0; }

/* Filmy i galeria */
.wp-block-video video { border-radius: var(--rr-promien); background: #000; }
.wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: 6px; }

/* Sekcja „Zapraszamy” nad stopką */
.rr-zapraszamy { background: var(--rr-jasny); border-top: 1px solid var(--rr-linia); padding: clamp(2.5rem, 6vw, 4rem) 20px; }
.rr-zapraszamy__w { max-width: var(--rr-szer); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 2rem; align-items: stretch; }
.rr-zapraszamy h2 { margin-bottom: .6em; }
.rr-zapraszamy__kontakt { display: flex; flex-wrap: wrap; gap: .6rem; }
.rr-drobne { font-size: .85rem; color: #666; }
.rr-mapa { min-height: 320px; border-radius: var(--rr-promien); background: #e9ecea url("img/mapa-tlo.svg") center/cover; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; padding: 1.5rem; text-align: center; border: 1px solid var(--rr-linia); }
.rr-mapa p { max-width: 34ch; margin: 0; color: #444; }
.rr-mapa iframe { width: 100%; height: 100%; min-height: 320px; border: 0; border-radius: var(--rr-promien); }
.rr-mapa--zaladowana { padding: 0; }
.site-footer .site-info { background: var(--rr-ciemny); }
.site-info a { text-decoration: underline; }

/* Zaimportowane podstrony ENITEO: klasy Bootstrapa 3 (podkładka, do czasu przepisania na bloki) */
.entry-content .img-responsive { max-width: 100%; height: auto; }
.entry-content .pull-left { float: left; margin: .3rem 1.5rem 1rem 0; max-width: 45%; }
.entry-content .pull-right { float: right; margin: .3rem 0 1rem 1.5rem; max-width: 45%; }
.entry-content .center-block { display: block; margin-left: auto; margin-right: auto; }
.entry-content .text-center { text-align: center; }
.entry-content .row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.entry-content .row > [class*="col-"] { padding: 0 10px; flex: 1 1 100%; }
.entry-content .clear, .entry-content .clearfix { clear: both; }
.entry-content::after { content: ""; display: table; clear: both; }
@media (min-width: 768px) {
	.entry-content .row > .col-sm-6, .entry-content .row > .col-md-6 { flex-basis: 50%; }
	.entry-content .row > .col-sm-4, .entry-content .row > .col-lg-4, .entry-content .row > .col-md-4 { flex-basis: 33.333%; }
	.entry-content .row > .col-sm-3, .entry-content .row > .col-md-3 { flex-basis: 25%; }
}

/* Telefon */
@media (max-width: 768px) {
	.rr-pasek__w { justify-content: center; padding: .35rem 16px; }
	.rr-pasek__info li:first-child, .rr-pasek__mail { display: none !important; }
	.rr-zapraszamy__w { grid-template-columns: 1fr; }
	.entry-content .pull-left, .entry-content .pull-right { float: none; max-width: 100%; margin: 0 0 1rem; }
	.rr-hero.wp-block-cover { min-height: 70vh; }
}

/* 0.2.1: GeneratePress dodaje 40 px odstępu w .wp-block-group__inner-container – w kartach i siatkach zbędny */
.wp-block-group .wp-block-group .wp-block-group__inner-container { padding-left: 0; padding-right: 0; }
.rr-sekcja > .wp-block-group__inner-container { padding-left: 0; padding-right: 0; }

/* 0.2.4: podstrony O nas i oferty – pasek liczb, karty tekstowe */
.rr-liczby { margin: 2.2rem 0; }
.rr-liczby, .rr-liczby > .is-layout-grid { gap: 1rem; }
.rr-liczba { background: var(--rr-jasny); border-radius: var(--rr-promien); padding: 1.2rem 1rem; text-align: center; }
.rr-liczba h3 { font-size: 1.9rem; color: var(--rr-czerwony); margin: 0 0 .2rem; font-weight: 700; }
.rr-liczba p { margin: 0; color: #444; }
.entry-content .is-style-karta h3 { font-size: 1.15rem; margin-top: 0; }
.entry-content .is-style-karta p:last-child, .entry-content .is-style-karta ul:last-child { margin-bottom: 0; }
.entry-content .wp-block-columns { gap: 2.5rem; margin-bottom: 2rem; }
.entry-content > .wp-block-heading, .entry-content > h2 { margin-top: 2.2rem; }
.rr-liczba h3 { font-size: clamp(1.35rem, 2.1vw, 1.9rem); white-space: nowrap; }
.rr-lead { font-size: 1.12rem; line-height: 1.7; }
@media (max-width: 600px) {
	.entry-content .is-style-karta { padding: 1.2rem; }
	.is-style-karta .wp-block-button__link { white-space: nowrap; font-size: .82rem; padding-left: .8em; padding-right: .8em; }
	.rr-liczba { padding: 1rem .6rem; }
}
/* 0.2.8: pasek liczb – tyle kolumn, ile kafelków (bez pustych kolumn przy 4 liczbach) */
.rr-liczby.is-layout-grid, .rr-liczby > .is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(8rem, 100%), 1fr)) !important; }
