/*
Theme Name: Duck Blog
Theme URI: https://host03505.hostline.net.pl
Description: Motyw potomny Hello Elementor dla "44 Wyspy". Klimat morski, jasny i przyjazny ("Bałtyk o poranku"). Cały layout budujemy w Elementorze.
Author: Duke
Author URI: https://host03505.hostline.net.pl
Template: hello-elementor
Version: 1.5.4
Text Domain: duck-blog
Tags: elementor, blog
*/

/* ---------------------------------------------------------------
   Paleta "Bałtyk o poranku" + typografia
   --------------------------------------------------------------- */
:root {
	--ink: #12313d;
	--muted: #4e6570;
	--deep: #0a2e3d;
	--teal: #14b8a6;
	--teal-dark: #0f766e;
	--sky: #7fd1e0;
	--sand: #f6efe4;
	--foam: #f2faf9;
	--foam-deep: #e8f6f3;
	--line: #e2efee;
	--card: #ffffff;
	--font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-heading: Fraunces, Georgia, "Times New Roman", serif;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-body);
	color: var(--ink);
	background: var(--foam);
	line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	color: var(--ink);
}

::selection {
	background: var(--teal-dark);
	color: #ffffff;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--teal-dark);
}

a:hover {
	color: var(--deep);
}

/* Przyciski Elementora (renderują się jako <a>) nie dziedziczą koloru linków */
.elementor a.e-button-base {
	color: #ffffff;
}

/* Sekcja CTA ma jasny przycisk — wymuszamy ciemny tekst (wyższa specyficzność) */
.elementor-element-5a8d43e5 a.e-button-base,
.elementor-element-5a8d43e5 a.e-button-base:hover {
	color: #0a2e3d;
}

/* Dostępność klawiatury */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
	outline: 2px solid var(--teal-dark);
	outline-offset: 2px;
	border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---------------------------------------------------------------
   Nagłówek (Hello Elementor, template-parts/dynamic-header.php)
   --------------------------------------------------------------- */
#site-header.dynamic-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(242, 250, 249, 0.88);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--line);
}

#site-header .header-inner {
	max-width: 1120px;
	margin: 0 auto;
	padding: 14px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

#site-header .site-branding {
	display: flex;
	align-items: center;
	gap: 12px;
}

#site-header .site-title {
	margin: 0;
	font-family: var(--font-heading);
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.2;
}

#site-header .site-title a {
	color: var(--ink);
	text-decoration: none;
}

#site-header .site-title a:hover {
	color: var(--teal-dark);
}

#site-header .site-description {
	display: none;
}

#site-header .site-navigation ul {
	display: flex;
	align-items: center;
	gap: 26px;
	list-style: none;
	margin: 0;
	padding: 0;
}

#site-header .site-navigation li {
	margin: 0;
}

#site-header .site-navigation a {
	color: var(--muted);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.15s ease;
}

#site-header .site-navigation a:hover,
#site-header .site-navigation .current-menu-item > a,
#site-header .site-navigation .current_page_item > a {
	color: var(--teal-dark);
}

@media (max-width: 767px) {
	#site-header .header-inner {
		padding: 12px 18px;
	}

	#site-header .site-navigation {
		display: none;
	}
}

/* ---------------------------------------------------------------
   Menu mobilne — Hello renderuje hamburger (.site-navigation-toggle)
   + panel (.site-navigation-dropdown). Stylizujemy pod markę.
   --------------------------------------------------------------- */
#site-header .site-navigation-toggle-holder {
	display: flex;
	align-items: center;
	margin-left: auto;
	padding: 0 0 0 8px;
}

#site-header .site-navigation-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #ffffff;
	color: var(--ink);
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

#site-header .site-navigation-toggle:hover,
#site-header .site-navigation-toggle[aria-expanded="true"] {
	background: var(--sand);
	border-color: var(--teal-dark);
	color: var(--teal-dark);
}

#site-header .site-navigation-toggle-icon {
	display: block;
	width: 18px;
}

#site-header .site-navigation-toggle-icon::before,
#site-header .site-navigation-toggle-icon::after {
	background: currentColor;
	height: 2px;
	border-radius: 2px;
}

#site-header .site-navigation-toggle-icon::before {
	box-shadow: 0 6px 0 currentColor;
	margin-block-end: 12px;
}

/* Panel rozwijany pod nagłówkiem, na pełną szerokość */
#site-header .site-navigation-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	bottom: auto;
	width: 100%;
	margin: 0;
	background: var(--foam);
	border-bottom: 1px solid var(--line);
	box-shadow: 0 18px 40px rgba(10, 46, 61, 0.12);
	overflow: hidden;
}

#site-header .site-navigation-dropdown ul.menu {
	position: static;
	width: 100%;
	margin: 0;
	padding: 10px 14px 16px;
	background: transparent;
}

#site-header .site-navigation-dropdown ul.menu li {
	display: block;
	width: 100%;
}

#site-header .site-navigation-dropdown ul.menu li + li {
	margin-top: 2px;
}

#site-header .site-navigation-dropdown ul.menu li a {
	display: block;
	padding: 14px 14px;
	border-radius: 10px;
	background: transparent;
	box-shadow: none;
	color: var(--ink);
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

#site-header .site-navigation-dropdown ul.menu li a:hover,
#site-header .site-navigation-dropdown ul.menu li a:focus-visible {
	background: #ccfbf1;
	color: var(--deep);
}

#site-header .site-navigation-dropdown ul.menu li.current-menu-item a,
#site-header .site-navigation-dropdown ul.menu li.current_page_item a {
	background: var(--teal-dark);
	color: #ffffff;
}


/* ---------------------------------------------------------------
   Stopka (Hello Elementor, template-parts/dynamic-footer.php)
   --------------------------------------------------------------- */
#site-footer.dynamic-footer {
	position: relative;
	border-top: 0;
	background: var(--foam-deep);
	padding: 44px 24px 28px;
}

/* Falisty separator nad stopką */
#site-footer.dynamic-footer::before {
	content: "";
	display: block;
	position: absolute;
	top: -39px;
	left: 0;
	right: 0;
	height: 40px;
	background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0,24 C300,48 900,0 1200,24 L1200,40 L0,40 Z' fill='%23E8F6F3'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

#site-footer .footer-inner {
	max-width: 1120px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

#site-footer .site-title {
	margin: 0;
	font-family: var(--font-heading);
	font-size: 1rem;
	font-weight: 700;
}

#site-footer .site-title a {
	color: var(--ink);
	text-decoration: none;
}

#site-footer .site-title a:hover {
	color: var(--teal-dark);
}

#site-footer .site-description {
	margin: 2px 0 0;
	font-size: 0.8125rem;
	color: var(--muted);
}

#site-footer .copyright p {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--muted);
}

#site-footer .site-navigation ul {
	display: flex;
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

#site-footer .site-navigation a {
	font-size: 0.875rem;
	color: var(--muted);
	text-decoration: none;
}

#site-footer .site-navigation a:hover {
	color: var(--teal-dark);
}

/* ---------------------------------------------------------------
   Strona główna (homepage) — rekolor i życie w strukturze Elementora
   --------------------------------------------------------------- */
/* Hero: falisty separator do sekcji "sand" */
.elementor-element-3b9ae561 {
	position: relative;
}

.elementor-element-3b9ae561::after {
	content: "";
	display: block;
	position: absolute;
	bottom: -1px;
	left: 0;
	right: 0;
	height: 48px;
	pointer-events: none;
	background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0,24 C300,48 900,0 1200,24 L1200,40 L0,40 Z' fill='%23F6EFE4'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

/* Karty kategorii: ilustracja na całą szerokość + uniesienie na hover */
.elementor-element-2c9b77ef,
.elementor-element-1b607768,
.elementor-element-31572c16 {
	min-width: 0;
	overflow: hidden;
}

.elementor .elementor-element-2c9b77ef,
.elementor .elementor-element-1b607768,
.elementor .elementor-element-31572c16 {
	padding: 0 !important;
	gap: 0 !important;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.elementor .elementor-element-2c9b77ef:hover,
.elementor .elementor-element-1b607768:hover,
.elementor .elementor-element-31572c16:hover {
	transform: translateY(-4px);
}

/* Prawdziwe <img> z alt-textem (dostępność), jak okładka karty */
.elementor .elementor-element-2c9b77ef img,
.elementor .elementor-element-1b607768 img,
.elementor .elementor-element-31572c16 img {
	width: 100%;
	max-width: 100%;
	height: 170px;
	margin: 0;
	object-fit: cover;
	object-position: center 45%;
	border-radius: 0;
	display: block;
}

.elementor .elementor-element-2c9b77ef h3,
.elementor .elementor-element-1b607768 h3,
.elementor .elementor-element-31572c16 h3 {
	margin: 18px 24px 6px;
}

.elementor .elementor-element-2c9b77ef p,
.elementor .elementor-element-1b607768 p,
.elementor .elementor-element-31572c16 p {
	margin: 0 24px 24px;
}

@media (max-width: 767px) {
	.elementor .elementor-element-2c9b77ef img,
	.elementor .elementor-element-1b607768 img,
	.elementor .elementor-element-31572c16 img {
		height: 150px;
	}

	.elementor .elementor-element-2c9b77ef h3,
	.elementor .elementor-element-1b607768 h3,
	.elementor .elementor-element-31572c16 h3 {
		margin: 16px 18px 6px;
	}

	.elementor .elementor-element-2c9b77ef p,
	.elementor .elementor-element-1b607768 p,
	.elementor .elementor-element-31572c16 p {
		margin: 0 18px 20px;
	}
}

/* ---------------------------------------------------------------
   Treści WordPressa poza Elementorem (lista wpisów, pojedynczy wpis)
   --------------------------------------------------------------- */
.site-main {
	width: 100%;
	max-width: 860px;
	margin: 0 auto;
	padding: 56px 24px 72px;
}

/* Wyrównanie szerokości tytułu i treści wpisu do jednej kolumny */
.site-main > .page-header,
.site-main > .page-content {
	width: 100%;
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}

.site-main > .page-header {
	margin-bottom: 28px;
}

.page-header .page-title,
.entry-title {
	font-family: var(--font-heading);
	color: var(--ink);
	letter-spacing: -0.02em;
}

.page-header .page-title {
	margin: 0 0 24px;
	font-size: clamp(1.75rem, 3vw, 2.375rem);
	font-weight: 700;
}

/* Lista wpisów jako karty na piasku */
.post {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 20px;
	padding: 28px;
	margin: 0 0 18px;
	box-shadow: 0 10px 30px rgba(10, 46, 61, 0.05);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.post:hover {
	transform: translateY(-3px);
	border-color: var(--teal-dark);
	box-shadow: 0 14px 34px rgba(20, 184, 166, 0.12);
}

.post:first-of-type {
	padding-top: 28px;
}

.post:last-of-type {
	border-bottom: 1px solid var(--line);
}

.post-thumbnail {
	display: block;
}

.post-thumbnail img {
	border-radius: 14px;
	margin-bottom: 14px;
}

.entry-title {
	margin: 0 0 10px;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.3;
}

.entry-title a {
	color: var(--ink);
	text-decoration: none;
	transition: color 0.15s ease;
}

.entry-title a:hover {
	color: var(--teal-dark);
}

/* Kategorie jako plakietki */
.post-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 10px;
}

.post-categories a {
	display: inline-block;
	padding: 4px 11px;
	border-radius: 999px;
	background: #ccfbf1;
	color: #0a2e3d;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.post-categories a:hover {
	background: var(--teal-dark);
	color: #ffffff;
}

.post-meta {
	margin: 0 0 10px;
	font-size: 0.8125rem;
	color: var(--muted);
}

/* Pojedynczy wpis: meta pod tytułem */
.site-main > .page-header .post-categories {
	margin-bottom: 14px;
}

.site-main > .page-header .entry-title {
	margin: 0 0 10px;
}

.site-main > .page-header .post-meta {
	margin: 0;
	color: var(--muted);
	font-size: 0.875rem;
}

.site-main > .page-header .post-meta .meta-sep {
	margin: 0 6px;
}

.pagination {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 32px;
	font-size: 0.9375rem;
}

.pagination a {
	color: var(--teal-dark);
	text-decoration: none;
	font-weight: 600;
}

.pagination a:hover {
	color: var(--deep);
	text-decoration: underline;
}

/* Treść artykułu */
.entry-content,
.entry-summary {
	color: var(--muted);
	font-size: 1.0625rem;
	line-height: 1.75;
}

.entry-content a,
.entry-summary a,
.post-navigation a {
	color: var(--teal-dark);
	text-decoration: none;
}

.entry-content a:hover,
.entry-summary a:hover,
.post-navigation a:hover {
	color: var(--deep);
	text-decoration: underline;
}

.entry-meta,
.posted-by,
.post-navigation {
	font-size: 0.875rem;
	color: var(--muted);
}

.entry-content h2,
.entry-content h3 {
	font-family: var(--font-heading);
	color: var(--ink);
	letter-spacing: -0.02em;
}

.entry-content blockquote {
	margin: 1.5em 0;
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--teal-dark);
	color: var(--ink);
	font-style: italic;
}

.post-navigation {
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
}

/* Polityka prywatności i strony Elementora wewnątrz site-main */
.site-main > .page-content .e-default-p,
.site-main > .page-content p {
	color: var(--muted);
}

@media (max-width: 767px) {
	.site-main {
		padding: 36px 18px 56px;
	}

	.post {
		padding: 22px;
	}

	.comments-area {
		padding: 0 18px 40px;
	}
}

/* ---------------------------------------------------------------
   Komentarze i formularze (pojedynczy wpis)
   --------------------------------------------------------------- */
.comments-area {
	max-width: 860px;
	margin: 0 auto;
	padding: 0 24px 56px;
}

.comments-title,
.comment-reply-title {
	font-family: var(--font-heading);
	color: var(--ink);
	letter-spacing: -0.02em;
	font-size: 1.5rem;
	font-weight: 700;
}

.comment-list {
	list-style: none;
	margin: 24px 0;
	padding: 0;
}

.comment-list .comment-body {
	padding: 20px 0;
	border-top: 1px solid var(--line);
	color: var(--muted);
}

.comment-list .comment-meta a {
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
}

.comment-list .comment-metadata a {
	color: var(--muted);
	font-weight: 400;
	font-size: 0.8125rem;
	text-decoration: none;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 12px 14px;
	font-size: 1rem;
	font-family: inherit;
	color: var(--ink);
	background: #ffffff;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
	border-color: var(--teal-dark);
	outline: 2px solid var(--teal-dark);
	outline-offset: 1px;
}

.comment-form input[type="submit"],
.wp-block-button__link {
	background: var(--teal-dark);
	color: #ffffff;
	border: 0;
	border-radius: 999px;
	padding: 12px 26px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: filter 0.15s ease, transform 0.15s ease;
}

.comment-form input[type="submit"]:hover,
.wp-block-button__link:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
}
