/*
Theme Name: Bezpieczna Przyszłość
Theme URI: https://example.com
Author: Twoja firma
Author URI: https://example.com
Description: Motyw blokowy dla landing page ubezpieczenia na życie, w pełni edytowalny w Gutenbergu.
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bezpieczna-przyszlosc
Tags: block-theme, full-site-editing, one-page
*/

/* ============================================================
   RESET / BASE
   ============================================================ */
*,
*::before,
*::after {
	box-sizing: border-box;
}

body,
.wp-site-blocks {
	background-color: #ffffff;
}

/* Remove default block gap between top-level sections */
.wp-block-post-content > .wp-block-group + .wp-block-group {
	margin-top: 0 !important;
}

/* Dodatkowo usuń marginesy nad/pod wszystkimi sekcjami landing page,
   żeby nie było widocznych „pasków” innego koloru między nimi.
   Odstępy między sekcjami kontrolujemy teraz wyłącznie paddingiem. */
.section-hero,
.section-story,
.section-problems,
.section-product,
.section-consultant,
.section-testimonial,
.section-cost,
.section-steps,
.section-cta {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 70px !important;
	padding-bottom: 70px !important;
}

.wp-block-post-content > .wp-block-group:first-child {
	margin-top: 0 !important;
}

/* Usuń marginesy domyślne dla pełnoszerokich grup (alignfull),
   żeby między sekcjami nie pojawiały się białe pasy */
.wp-block-group.alignfull {
	margin-top: 0;
	margin-bottom: 0;
}

.entry-content,
.wp-block-post-content {
	margin: 0;
}

/* Usuń top‑level akapity między blokami (WordPress dodaje je jako „przekładki”) */
.wp-block-post-content > p {
	margin: 0 !important;
	padding: 0 !important;
	height: 0 !important;
}

/* ============================================================
   HEADER
   ============================================================ */
.wp-site-blocks > header {
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: var(--wp--preset--color--white);
	box-shadow: 0 2px 20px rgba(15, 23, 42, 0.07);
}

.site-header .wp-block-navigation a {
	color: #334155;
	font-weight: 500;
	font-size: 0.9rem;
	text-decoration: none;
	transition: color 0.2s ease;
}

.site-header .wp-block-navigation a:hover {
	color: var(--wp--preset--color--primary);
}

/* ============================================================
   HERO
   ============================================================ */
.section-hero {
	background-color: var(--wp--preset--color--background-light);
}

.hero-heading {
	font-family: var(--wp--preset--font-family--heading-serif) !important;
	font-weight: 900 !important;
	line-height: 1.12 !important;
}

.hero-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.btn-hero .wp-block-button__link {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 8px 24px rgba(0, 82, 153, 0.3);
}

.btn-hero .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(0, 82, 153, 0.4);
}

/* ============================================================
   STORYTELLING
   ============================================================ */
.section-story {
	background-color: var(--wp--preset--color--white);
}

.section-story {
	padding-top: 40px !important;
	padding-bottom: 40px !important;
}

.section-story p {
	border: 0 !important; /* żadnych dodatkowych linii na zwykłych akapitach */
}

.section-story p:first-of-type {
	margin-top: 0 !important; /* pierwsza linijka tekstu startuje dokładnie od paddingu sekcji */
}

.section-story p:nth-of-type(2) {
	margin-bottom: 0.35rem !important; /* jeszcze ciaśniej nad cytatem */
}

.story-quote {
	font-style: italic;
	color: #94a3b8;
	margin-top: 0.25rem;
	border-top: 1px solid #e2e8f0 !important;
	border-bottom: 1px solid #e2e8f0 !important;
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
}

/* ============================================================
   PROBLEMY – 3 karty
   ============================================================ */
.section-problems {
	background-color: #f3f5f9;
}

.section-problems .wp-block-columns {
	align-items: stretch;
}

.problem-card {
	background-color: #ffffff !important;
	border-radius: 16px !important;
	border: 1px solid #e1e5ee !important;
	box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05) !important;
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

.problem-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 48px rgba(15, 23, 42, 0.1) !important;
	border-color: rgba(0, 82, 153, 0.35) !important;
}

.problem-icon {
	display: block;
	margin-bottom: 0.5rem;
	line-height: 1;
}

.problem-icon svg {
	display: block;
}

.section-problems .problem-card h3 {
	margin-top: 0.3rem !important;
	margin-bottom: 0 !important;
}

.section-problems .problem-card p {
	margin-top: 0.3rem !important;
}

/* ============================================================
   PRODUKT – lista z checkmarkami
   ============================================================ */
.section-product {
	background-color: var(--wp--preset--color--primary) !important;
}

.section-product h2 {
	color: #ffffff !important;
}

.product-checklist {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex !important;
	flex-direction: column;
}

.product-list-wrapper {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}

.product-checklist li {
	display: flex;
	align-items: flex-start;
	column-gap: 1rem;
	font-size: 1.05rem;
	line-height: 1.65;
	color: #ffffff;
}

.product-checklist li::before {
	content: "";
	flex-shrink: 0;
	width: 26px;
	height: 26px;
	margin-top: 0.15em;
	border-radius: 999px;
	background-color: rgba(255, 255, 255, 0.15);
	border: 2px solid rgba(255, 255, 255, 0.7);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
	background-size: 16px 16px;
	background-position: center;
	background-repeat: no-repeat;
}

/* ============================================================
   DORADCA – zdjęcie
   ============================================================ */
.section-consultant {
	background-color: var(--wp--preset--color--white);
}

.consultant-photo img {
	width: 100%;
	height: 400px;
	object-fit: cover;
	display: block;
	border-radius: 1.25rem;
}

.consultant-caption {
	font-style: italic;
	color: #64748b;
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
}

/* ============================================================
   OPINIA
   ============================================================ */
.section-testimonial {
	background-color: #f3f5f9;
	text-align: center;
}

.quote-mark {
	font-size: 5rem !important;
	line-height: 0.8 !important;
	color: rgba(0, 82, 153, 0.12) !important;
	font-family: Georgia, serif !important;
	font-weight: 900 !important;
	margin-bottom: 0.5rem !important;
}

.testimonial-slider {
	position: relative;
	min-height: 230px;
	overflow: hidden;
	padding-bottom: 3rem;
}

.testimonial-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transform: translateX(18px);
	transition: opacity 0.35s ease, transform 0.35s ease;
	pointer-events: none;
}

.testimonial-slide.is-active {
	opacity: 1;
	transform: translateX(0);
	pointer-events: auto;
}

.testimonial-text {
	font-family: var(--wp--preset--font-family--heading-serif);
	font-style: italic;
	font-size: clamp(1.1rem, 2.1vw, 1.5rem);
	line-height: 1.7;
	color: #1e293b;
	margin-bottom: 1.5rem;
}

.testimonial-author {
	font-size: 0.95rem;
	color: #64748b;
	margin-top: 0.75rem;
}

.testimonial-author strong {
	display: block;
	font-size: 1rem;
	color: #0f172a;
}

.testimonial-dots {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 1.75rem;
}

.testimonial-dots .dot {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	border: 1px solid #cbd5f5;
	background: transparent;
	padding: 0;
	cursor: pointer;
}

.testimonial-dots .dot.is-active {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
}

.testimonial-arrows {
	position: absolute;
	top: 72%;
	left: 0;
	right: 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	pointer-events: none;
	transform: translateY(-50%);
}

.testimonial-arrows .arrow {
	pointer-events: auto;
	border: none;
	background: transparent;
	color: var(--wp--preset--color--primary);
	font-size: 2rem;
	line-height: 1;
	padding: 0 0.5rem;
	cursor: pointer;
	transition: color 0.15s ease;
}

.testimonial-arrows .arrow:hover {
	color: #0b3b75;
}

@media (max-width: 781px) {
	.testimonial-arrows {
		top: 68%;
	}

	.testimonial-arrows .arrow {
		font-size: 1.6rem;
	}
}

/* ============================================================
   KOSZT OCHRONY
   ============================================================ */
.section-cost {
	background-color: var(--wp--preset--color--white);
}

.cost-icon {
	display: flex;
	justify-content: center;
	margin-bottom: 0.5rem;
}

.cost-icon svg {
	display: block;
}

.cost-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
}

.cost-card--neutral {
	background-color: #f8fafc !important;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.cost-card--primary {
	background-color: rgba(0, 82, 153, 0.05) !important;
	box-shadow: 0 4px 16px rgba(0, 82, 153, 0.12);
}

.cost-card:hover {
	transform: scale(1.02);
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

/* ============================================================
   3 KROKI
   ============================================================ */
.section-steps {
	background-color: var(--wp--preset--color--white);
	padding-top: 30px !important;   /* ~3/4 mniej niż poprzednio */
	padding-bottom: 30px !important;
}

.step-column {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.step-number {
	width: 60px !important;
	height: 60px !important;
	border-radius: 12px !important; /* kwadrat z lekko zaokrąglonymi rogami */
	display: flex !important;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem !important;
	font-weight: 900 !important;
	margin-left: auto !important;
	margin-right: auto !important;
	line-height: 1 !important;
	margin-bottom: 0.5rem !important; /* mniejsza przerwa nad nagłówkiem */
}

.section-steps .wp-block-heading {
	margin-top: 20px !important;
	margin-bottom: 20px !important; /* 20px odstępu góra/dół między numerem a opisem */
}

.section-steps p {
	margin-top: 0.25rem !important;  /* mniejsze odstępy nad opisem */
	margin-bottom: 0 !important;
}

/* ============================================================
   CTA KOŃCOWE
   ============================================================ */
.section-cta {
	background-color: var(--wp--preset--color--white);
}

.btn-cta-main .wp-block-button__link {
	width: 100%;
	text-align: center;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 12px 40px rgba(0, 82, 153, 0.35);
}

.btn-cta-main .wp-block-button__link:hover {
	transform: scale(1.02);
	box-shadow: 0 16px 48px rgba(0, 82, 153, 0.45);
}

.cta-ps-box {
	border-radius: 0.75rem;
}

.cta-columns {
	align-items: center;
	max-width: 1330px;
	margin-left: auto;
	margin-right: auto;
}

.cta-columns > .wp-block-column:first-child {
	display: flex;
	align-items: center;
}

.cta-form-box {
	background-color: #ffffff;
	border-radius: 0.75rem;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
	padding: 1.75rem 1.5rem;
}

.cta-form {
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
}

.cta-form-row label {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	font-size: 0.85rem;
	color: #6b7280;
}

.cta-form-row input:not([type="checkbox"]),
.cta-form-row textarea {
	width: 100%;
	border-radius: 0.5rem;
	border: 1px solid #e5e7eb;
	padding: 0.6rem 0.75rem;
	font-size: 0.95rem;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cta-form-row input:focus,
.cta-form-row textarea:focus {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 1px rgba(0, 82, 153, 0.25);
}

.cta-form-row--two {
	display: flex;
	gap: 0.75rem;
}

.cta-form-row--two > label {
	flex: 1;
}

.cta-form-consent label {
	flex-direction: row;
	align-items: center;
	gap: 0.5rem;
}

.cta-form-consent input[type="checkbox"] {
	margin-top: 0;
	width: auto;
	flex-shrink: 0;
}

.cta-form-submit {
	margin-top: 0.5rem;
	text-align: center;
}

.cta-form-submit button {
	width: auto;
	border: none;
	border-radius: 0.75rem;
	background-color: var(--wp--preset--color--primary);
	color: #ffffff;
	font-weight: 700;
	font-size: 0.95rem;
	padding: 0.85rem 1rem;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
	box-shadow: 0 10px 25px rgba(0, 82, 153, 0.28);
}

.cta-form-submit button:hover {
	background-color: #00427a;
	transform: translateY(-1px);
	box-shadow: 0 14px 32px rgba(0, 82, 153, 0.38);
}

.cta-phone a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.cta-phone a:hover {
	text-decoration: underline;
}

/* ============================================================
   STOPKA
   ============================================================ */
.site-footer {
	background-color: #0f172a !important;
	color: #94a3b8;
}

.site-footer .wp-block-group {
	color: #94a3b8;
}

.site-footer a {
	color: #94a3b8;
	text-decoration: none;
	transition: color 0.2s ease;
}

.site-footer a:hover {
	color: #ffffff;
}

.footer-brand {
	color: #ffffff !important;
	font-weight: 700;
}

.site-header {
	max-width: 1330px;
	margin-left: auto;
	margin-right: auto;
}

/* ============================================================
   RESPONSYWNOŚĆ
   ============================================================ */
@media (max-width: 781px) {
	.section-hero .wp-block-columns {
		flex-direction: column-reverse;
	}

	.consultant-photo img {
		height: 260px;
	}

	.product-checklist li {
		font-size: 0.9rem;
		line-height: 1.55;
		column-gap: 0.75rem;
	}

	.step-number {
		width: 52px !important;
		height: 52px !important;
		font-size: 1.2rem !important;
	}

	.cta-form-row--two {
		flex-direction: column;
	}
}
