/* ==========================================================================
   Deercoffe — front page ("Strona główna")
   Loaded only on is_front_page(). Scoped under .deercoffe-home except for
   the full-bleed helper, which needs to escape the theme's .container.
   ========================================================================== */

.site-content {
	overflow-x: hidden;
}

.home-bleed {
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
}

.deercoffe-home {
	font-family: var(--deercoffe-font-body);
	color: var(--deercoffe-color-text);
	font-size: 15px;
}

.deercoffe-home h1,
.deercoffe-home h2,
.deercoffe-home h3 {
	font-family: var(--deercoffe-font-heading);
	font-weight: 400;
	color: var(--deercoffe-color-text);
	margin: 0;
}

.deercoffe-home img {
	max-width: 100%;
	display: block;
}

.home-container {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 40px;
}

.home-section {
	padding: 75px 0;
}

.home-bg-white {
	background: #fff;
}

.home-bg-light {
	background: var(--deercoffe-color-bg);
}

.home-bg-cream-light {
	background: var(--deercoffe-color-cream-light);
}

.home-eyebrow {
	font-size: 14px;
	letter-spacing: 0.04em;
	color: var(--deercoffe-color-text);
	margin: 0 0 12px;
}

.home-eyebrow-olive {
	color: var(--deercoffe-color-accent);
}

.home-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 40px;
	flex-wrap: wrap;
}

.home-section-head h2 {
	font-size: clamp(1.6rem, 2.5vw, 2.125rem);
	letter-spacing: 0.03em;
}

.home-section-head-tight {
	margin-bottom: 42px;
}

.home-section-head-center {
	flex-direction: column;
	text-align: center;
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
}

.home-section-head-center p {
	color: var(--deercoffe-color-muted);
	margin-top: 8px;
}

.home-section-head-left {
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
}

.home-section-head-left p {
	color: var(--deercoffe-color-muted);
	margin-top: 8px;
	max-width: 617px;
}

/* Buttons: .btn / .btn-white / .btn-outline / .btn-olive / .btn-brown / .btn-link
   now live in style.css (shared across pages, not scoped to .deercoffe-home). */

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--deercoffe-color-text);
	border: 1px solid var(--deercoffe-color-border);
	flex-shrink: 0;
	cursor: pointer;
	font: inherit;
	transition: background-color 0.2s ease;
}

.icon-btn:hover {
	background: var(--deercoffe-color-bg);
}

.icon-btn svg {
	stroke: var(--deercoffe-color-text);
}

/* Hero ------------------------------------------------------------------ */

.home-hero {
	background-size: cover;
	background-position: center top;
	aspect-ratio: 1440 / 866;
	min-height: 520px;
	display: flex;
	align-items: flex-start;
}

.home-hero .home-container {
	width: 100%;
}

.home-hero-content {
	max-width: 945px;
	margin: 0 auto;
	padding: 9% 0 60px;
	text-align: center;
}

.home-hero-content h1 {
	font-size: clamp(2rem, 4.5vw, 3.75rem);
	color: var(--deercoffe-color-primary);
	line-height: 1.1;
	letter-spacing: 0.06em;
	margin-bottom: 20px;
	max-width: 680px;
	margin: 0 auto;
}

.home-hero-content p {
	font-size: 1.1rem;
	color: var(--deercoffe-color-primary);
	margin: 0 auto 32px;
	line-height: 1.5;
	max-width: 945px;
	margin-top: 25px;
}

/* Trust bar --------------------------------------------------------------- */

.home-trust-bar {
	background: var(--deercoffe-color-primary);
	margin-top: 100px;
}

.home-trust-bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 20px 40px;
	flex-wrap: wrap;
}

.home-trust-bar-inner p {
	color: var(--deercoffe-color-cream);
	margin: 0;
	font-size: 0.9rem;
}

.home-stars {
	display: flex;
	gap: 4px;
	color: var(--deercoffe-color-cream);
	flex-shrink: 0;
}

/* Opinie slider ------------------------------------------------------------ */

.home-opinie-2-wrap {
	background: #fff;
	padding: 75px 0;
}

.home-opinie-2-wrap .home-trust-bar {
	margin-top: 0;
}

.home-opinie-boxed {
	width: 100%;
}

.home-opinie-text {
	transition: opacity 0.35s ease, transform 0.35s ease;
}

.home-opinie-text.is-fading {
	opacity: 0;
	transform: translateY(6px);
}

.home-opinie-dots {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

.home-opinie-dot {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	padding: 0;
	background: transparent;
	border: 1px solid var(--deercoffe-color-cream);
	cursor: pointer;
	transition: background-color 0.25s ease, transform 0.15s ease;
}

.home-opinie-dot:hover {
	transform: scale(1.1);
}

.home-opinie-dot.is-active {
	background: var(--deercoffe-color-cream);
}

/* Bestsellers / product grid ---------------------------------------------- */

.home-product-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.home-product-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	color: inherit;
}

.home-product-card:hover,
.home-product-card:focus {
	text-decoration: none;
}

.home-product-image {
	display: block;
	background: var(--deercoffe-color-bg);
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 6px;
	aspect-ratio: 1 / 1.15;
}

.home-product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home-product-name {
	font-family: var(--deercoffe-font-heading);
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--deercoffe-color-brown);
}

.home-product-desc {
	font-size: 0.85rem;
	color: #9c9b9b;
}

.home-product-price {
	font-size: 0.85rem;
}

.home-product-price ins {
	text-decoration: none;
	margin-right: 8px;
}

.home-product-price del {
	color: #9c9b9b;
}

/* Features / "Co nas wyróżnia" -------------------------------------------- */

.home-features-head {
	margin-bottom: 52px;
}

.home-features-head h2 {
	font-size: 34px;
	letter-spacing: normal;
}

.home-features-nav {
	display: flex;
	align-items: center;
	gap: 12px;
}

.home-features-prev svg {
	transform: rotate(180deg);
}

.home-features-prev {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, background-color 0.2s ease;
}

.home-features-prev.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.home-features {
	position: relative;
	display: grid;
}

.home-features-slide {
	grid-area: 1 / 1 / 2 / 2;
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 60px;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.5s ease, transform 0.5s ease;
	transform: translateY(12px);
}

.home-features-slide.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

.home-features-media {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
}

.home-features-img-main {
	grid-row: 1 / 3;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home-features-img-stack {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-left: 12px;
}

.home-features-img-small {
	width: 100%;
	height: 100%;
	object-fit: cover;
	aspect-ratio: 1 / 1;
}

.home-features-content h3 {
	font-size: 27px;
	letter-spacing: 1.08px;
	margin-bottom: 24px;
}

.home-features-dots {
	display: none;
}

.home-features-corner {
	display: none;
}

.home-features-dot {
	width: 20px;
	height: 20px;
	padding: 0;
	border-radius: 50%;
	background: transparent;
	border: 1px solid var(--Black, #1D1D1B);
	cursor: pointer;
}

.home-features-dot.is-active {
	border-color: var(--Black, #1D1D1B);
	background: var(--Black, #1D1D1B);
}

.home-features-content p {
	color: var(--deercoffe-color-muted);
	font-size: 18px;
	line-height: normal;
}

/* Process ------------------------------------------------------------------ */

.home-process-panel {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 40px;
}

.home-process-panel .home-section-head h2 {
	font-size: 34px;
}

.home-process-grid {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 700px;
	gap: 16px;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior: contain;
	margin-top: 40px;
	padding-left: max(20px, calc((100vw - 1240px) / 2 + 40px));
	padding-right: 20px;
	padding-bottom: 8px;
	scroll-snap-type: x proximity;
	scroll-padding-left: max(20px, calc((100vw - 1240px) / 2 + 40px));
	-webkit-overflow-scrolling: touch;
}

.home-process-card {
	position: relative;
	min-height: 431px;
	background-size: cover;
	background-position: center;
	padding: 26px 33px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	color: #fff;
	overflow: hidden;
	scroll-snap-align: start;
}

.home-process-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.88) 100%);
}

.home-process-badge {
	position: absolute;
	top: 26px;
	right: 33px;
	z-index: 1;
	display: flex;
	padding: 10px;
	justify-content: center;
	align-items: center;
	gap: 10px;
	background: var(--deercoffe-color-terracotta);
	color: #fff;
	font-family: var(--deercoffe-font-body);
	font-size: 14px;
	line-height: normal;
	white-space: nowrap;
}

.home-process-num {
	position: relative;
	font-family: var(--deercoffe-font-heading);
	font-size: 60px;
	letter-spacing: 3.6px;
	margin-bottom: 60px;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.home-process-card h3 {
	position: relative;
	color: #fff;
	font-size: 27px;
	letter-spacing: 1.08px;
	margin-bottom: 8px;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.home-process-card p {
	position: relative;
	font-family: var(--deercoffe-font-body);
	font-size: 14px;
	line-height: 1.5;
}

/* About / "O nas" ----------------------------------------------------------- */

.home-about {
	display: grid;
	grid-template-columns: 0.95fr 1.05fr;
	gap: 60px;
	align-items: stretch;
}

.home-about-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.home-about-content .home-eyebrow {
	margin-bottom: 48px;
}

.home-about-content h2 {
	font-family: var(--deercoffe-font-heading);
	font-size: 34px;
	font-weight: 400;
	margin: 8px 0 0;
	line-height: normal;
	color: var(--deercoffe-color-text);
}

.home-about-content p:not(.home-eyebrow) {
	font-family: var(--deercoffe-font-heading);
	font-size: 34px;
	font-weight: 400;
	color: #9c9b9b;
	margin: 0 0 28px;
	line-height: normal;
}

.home-about-content .btn-olive {
	align-self: flex-start;
	padding: 12px 24px;
	font-size: 13px;
}

.home-about-media {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.home-about-photo {
	border-radius: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home-about-badge {
	position: absolute;
	left: -30px;
	bottom: -30px;
	width: 110px;
}

/* Articles / "Baza wiedzy" --------------------------------------------------- */

.home-article-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
}

.home-article-card {
	display: flex;
	background: #fff;
	overflow: hidden;
	color: inherit;
}

.home-article-card:hover,
.home-article-card:focus {
	text-decoration: none;
}

.home-article-img {
	flex: 0 0 42%;
	display: block;
}

.home-article-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home-article-body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
	padding: 32px 24px;
}

.home-article-title {
	font-family: var(--deercoffe-font-heading);
	font-size: 1.3rem;
}

.home-article-excerpt {
	color: var(--deercoffe-color-muted);
	font-size: 0.85rem;
	line-height: 1.5;
}

.home-article-link {
	font-size: 0.85rem;
	text-decoration: underline;
	margin-top: 4px;
}

/* Newsletter ------------------------------------------------------------------ */

.home-newsletter {
	position: relative;
	overflow: hidden;
	background: var(--deercoffe-color-primary);
	padding: 90px 0;
}

.home-newsletter-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 55%;
	height: 100%;
	object-fit: cover;
	object-position: left center;
	opacity: 0.5;
	-webkit-mask-image: linear-gradient(to right, #000 0%, transparent 85%);
	mask-image: linear-gradient(to right, #000 0%, transparent 85%);
	pointer-events: none;
}

.home-newsletter-inner {
	position: relative;
	text-align: left;
	max-width: 550px;
}

.home-newsletter h2 {
	color: #fff;
	font-size: clamp(1.6rem, 2.6vw, 2.125rem);
	margin-bottom: 16px;
	max-width: 520px;
}

.home-newsletter p {
	color: var(--deercoffe-color-cream-light);
	line-height: 1.6;
	margin-bottom: 32px;
	max-width: 520px;
}

.home-newsletter-form {
	max-width: 420px;
	margin: 0;
}

.home-newsletter-form-row {
	display: flex;
	background: var(--deercoffe-color-cream-light);
}

.home-newsletter-form .field-error {
	margin-top: 8px;
	color: #ffb3b3;
}

.home-newsletter-form input {
	flex: 1;
	border: 0;
	border-radius: 0;
	background: none;
	font-family: inherit;
	font-size: 0.9rem;
	text-align: left;
	padding: 10px 25px;
	height: 51px;
}

.home-newsletter-form .btn {
	border-radius: 0;
	padding: 10px 24px;
}

/* Contact ---------------------------------------------------------------------- */

.home-contact {
	display: flex;
	align-items: start;
	justify-content: space-between;
	gap: 85px;
}

.home-contact-content h2 {
	font-size: clamp(1.5rem, 2.4vw, 2.125rem);
	line-height: 1.3;
	margin-bottom: 16px;
}

.home-contact-content > p {
	color: var(--deercoffe-color-muted);
	line-height: 1.6;
	margin-bottom: 32px;
}

.home-contact-phone {
	margin: -16px 0 32px;
	font-family: "Roboto Mono", var(--deercoffe-font-body);
	font-size: 0.9rem;
	color: #525252;
}

.home-contact-phone a {
	color: inherit;
}

.home-testimonial-mini {
	padding: 24px;
	background: linear-gradient(98deg, #F6F6F6 0.23%, rgba(246, 246, 246, 0.00) 99.77%);
}

.home-testimonial-mini p {
	color: #525252;
	font-size: 0.9rem;
	line-height: 1.6;
	margin-bottom: 16px;
}

.home-testimonial-author {
	display: flex;
	align-items: center;
	gap: 12px;
}

.home-testimonial-author img {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
}

.home-testimonial-author strong {
	display: block;
	font-size: 0.9rem;
	font-weight: 700;
}

.home-testimonial-author span {
	display: block;
	font-size: 0.75rem;
	color: var(--deercoffe-color-muted);
}

.home-contact-form-card {
	padding: 16px;
	max-width: 380px;
}

.home-contact-form {
	background: #fff;
	border-radius: 16px;
	padding: 32px;
	display: flex;
	flex-direction: column;
}

.home-contact-form label {
	display: block;
	font-family: "Roboto Mono", var(--deercoffe-font-body);
	font-size: 14px;
	font-weight: 400;
	line-height: normal;
	color: #525252;
	margin-bottom: 8px;
}

.home-contact-form input,
.home-contact-form textarea {
	display: flex;
	width: 100%;
	height: 56px;
	padding: 10px 0 10px 12px;
	align-items: center;
	gap: 10px;
	border: 1px solid rgba(0, 0, 0, 0.2);
	background: #fff;
	font-family: inherit;
	font-size: 0.85rem;
	resize: vertical;
	margin-bottom: 24px;
}

.home-contact-form textarea {
	height: auto;
}

.home-contact-form .field-error {
	margin-top: -16px;
	margin-bottom: 16px;
}

.home-contact-form input::placeholder,
.home-contact-form textarea::placeholder {
	color: #bbb;
	font-family: "Roboto Mono", var(--deercoffe-font-body);
	font-size: 12px;
	font-weight: 400;
	line-height: normal;
}

.home-contact-form .btn {
	align-self: flex-start;
	margin-top: 8px;
	width: 100%;
	border-radius: 0;
	margin-bottom: 24px;
}

.home-form-legal {

	color: var(--Gray-300, #BBB);
text-align: center;

/* De_Roboto_caption_small */
font-family: "Roboto Mono";
font-size: 13px;
font-style: normal;
font-weight: 400;
line-height: normal;
}

/* Responsive -------------------------------------------------------------------- */

@media (max-width: 1100px) {
	.home-product-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.home-process-panel {
		padding: 0 40px;
	}

	.home-process-grid {
		padding-left: 40px;
		scroll-padding-left: 40px;
	}
}

@media (max-width: 900px) {
	.home-features-slide,
	.home-about,
	.home-contact {
		grid-template-columns: 1fr;
	}

	.home-contact {
		flex-direction: column;
		align-items: stretch;
		gap: 40px;
	}

	.home-contact-form-card {
		max-width: 100%;
	}

	.home-features-media {
		order: -1;
	}

	.home-article-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.home-container {
		padding: 0 15px;
	}

	.home-container .btn-link {
		padding-left: 0;
		padding-right: 0;
	}

	.home-hero-content {
		text-align: left;
	}

	.home-hero-content h1,
	.home-hero-content p {
		margin-left: 0;
		margin-right: 0;
		max-width: none;
	}

	.home-hero-content h1 {
		font-size: 34px;
	}

	.home-hero-content .btn {
		width: 100%;
	}

	.home-section {
		padding: 56px 0;
	}

	.home-product-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.home-about-media {
		grid-template-columns: 1fr;
	}

	.home-about-photo {
		aspect-ratio: 4 / 5;
	}

	.home-about-content h2,
	.home-about-content p:not(.home-eyebrow) {
		font-size: 24px;
	}

	.home-article-card {
		flex-direction: column;
	}

	.home-article-img {
		flex-basis: auto;
		aspect-ratio: 16 / 9;
	}

	.home-newsletter-form-row {
		flex-direction: column;
	}

	.home-newsletter-form .btn {
		width: 100%;
	}

	.home-trust-bar-inner {
		justify-content: center;
		text-align: center;
		padding-top: 20px;
		padding-bottom: 20px;
	}

	.home-section-head {
		margin-bottom: 20px;
	}

	.home-features-nav {
		display: none;
	}

	.home-features-dots {
		display: flex;
		justify-content: center;
		align-items: center;
		gap: 24px;
		align-self: stretch;
		margin-top: 32px;
	}

	.home-features-corner {
		display: block;
		position: absolute;
		/* left: 251px; */
		/* top: 689.091px; */
		right: 0px;
		bottom: 0px;
		width: 179.302px;
		height: 96.055px;
		/* transform: rotate(127.506deg); */
		pointer-events: none;
	}

	.home-features-corner svg {
		display: block;
		width: 100%;
		height: 100%;
	}

	.home-features-head h2 {
		font-size: 27px;
	}

	.home-features-content h3 {
		font-size: 21px;
		white-space: nowrap;
	}

	.home-features-content p {
		font-size: 15px;
	}

	.home-process-panel {
		padding: 0 15px;
	}

	.home-process-grid {
		grid-auto-columns: 280px;
		padding-left: 15px;
		scroll-padding-left: 15px;
		padding-right: 15px;
	}

	.home-process-card {
		width: 280px;
		height: 431px;
		padding: 18px 12px;
		align-items: flex-start;
		gap: 10px;
		flex-shrink: 0;
	}

	.home-process-card h3 {
		margin-top: auto;
		max-width: 90%;
	}
	.home-process-num {
		margin-top: -20px;
	}

	.home-process-badge {
		position: static;
		align-self: flex-start;
		order: 2;
		white-space: normal;
		text-align: left;
		margin-top: -10px;
	}

	.home-process-num {
		order: 1;
		margin-bottom: 0;
	}

	.home-process-card h3 {
		order: 3;
	}

	.home-process-card p {
		order: 4;
	}

	.home-contact-form {
		padding: 0;
	}

	.home-contact-form textarea {
		height: 136px;
	}
	.home-contact-form-card {
		padding: 0;
	}
}
