/* ==========================================================================
   Cerâmica Prado — Home v2 (design-system "editorial")
   Escopo: .home-page — carregado apenas na rota /home
   Base: template Mizzle (Bootstrap 5) + identidade laranja #FF6300
   ========================================================================== */

.home-page {
	--hp-orange: #FF6300;
	--hp-orange-soft: #ffe3d1;
	--hp-ink: #1c1611;
	--hp-ink-soft: #5b5147;
	--hp-sand: #f6efe6;
	--hp-cream: #fbf8f4;
	--hp-line: #ece2d5;
	--hp-terra: #b9603a;
	color: var(--hp-ink);
	padding-bottom: .5rem;
}

.home-page h1,
.home-page h2,
.home-page h3 {
	font-family: "Instrument Sans", sans-serif;
	letter-spacing: -.02em;
}

/* Botões do design-system */
.hp-btn {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	font-weight: 600;
	font-size: .98rem;
	padding: .95rem 1.5rem;
	border-radius: 999px;
	border: 1px solid transparent;
	line-height: 1;
	text-decoration: none;
	transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.hp-btn i { font-size: .95em; transition: transform .18s ease; }
.hp-btn:hover { transform: translateY(-2px); }
.hp-btn:hover i { transform: translateX(3px); }
.hp-btn--primary { background: var(--hp-orange); color: #fff; }
.hp-btn--primary:hover { background: #e85a00; color: #fff; }
.hp-btn--glass { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.hp-btn--glass:hover { background: rgba(255,255,255,.2); color: #fff; }
.hp-btn--dark { background: var(--hp-ink); color: #fff; }
.hp-btn--dark:hover { background: #000; color: #fff; }
.hp-btn--light { background: #fff; color: var(--hp-ink); border-color: var(--hp-line); }
.hp-btn--light:hover { color: var(--hp-orange); border-color: var(--hp-orange); }

/* Título de seção */
.hp-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .65rem;
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--hp-terra);
}
.hp-eyebrow::before {
	content: "";
	width: 30px;
	height: 2px;
	border-radius: 2px;
	background: var(--hp-orange);
}
.hp-eyebrow--light { color: #ffd7bf; }

.hp-head {
	max-width: 680px;
	margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.hp-head h2 {
	font-size: clamp(1.8rem, 3.4vw, 2.9rem);
	font-weight: 600;
	line-height: 1.07;
	margin: 1rem 0 .85rem;
}
.hp-head p { color: var(--hp-ink-soft); font-size: 1.05rem; line-height: 1.65; margin: 0; }

.hp-head-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
	margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.hp-head-row .hp-head { margin-bottom: 0; }

.hp-section { padding-top: clamp(3.5rem, 7vw, 6.5rem); }

/* --------------------------------------------------------------------------
   HERO full-bleed
   -------------------------------------------------------------------------- */
.hp-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	padding: 0;
	min-height: clamp(560px, 88vh, 900px);
	overflow: hidden;
	isolation: isolate;
	background: #1a1511;
}
.hp-hero-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
}
.hp-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(16,12,9,.94) 0%, rgba(16,12,9,.72) 42%, rgba(16,12,9,.2) 100%),
		linear-gradient(0deg, rgba(16,12,9,.9) 0%, rgba(16,12,9,0) 55%);
}
.hp-hero-inner {
	position: relative;
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding-top: clamp(3rem, 6vw, 5rem);
	padding-bottom: clamp(6.5rem, 11vw, 9rem);
}
.hp-hero-content { max-width: 780px; color: #fff; }
.hp-hero h1 {
	color: #fff;
	font-size: clamp(2.5rem, 5.6vw, 4.6rem);
	font-weight: 600;
	line-height: 1.0;
	margin: 1rem 0 1.15rem;
	text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.hp-hero .hp-lead {
	font-size: clamp(1rem, 1.5vw, 1.22rem);
	line-height: 1.6;
	color: rgba(255,255,255,.85);
	max-width: 600px;
	margin-bottom: 2rem;
}
.hp-actions { display: flex; flex-wrap: wrap; gap: .85rem; }

/* Faixa de destaque sobreposta ao hero */
.hp-stats {
	position: relative;
	z-index: 3;
	margin-top: -70px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	background: #fff;
	border: 1px solid var(--hp-line);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 30px 60px -40px rgba(28,22,17,.55);
}
.hp-stat {
	padding: 1.5rem 1.75rem;
	border-right: 1px solid var(--hp-line);
}
.hp-stat:last-child { border-right: 0; }
.hp-stat strong {
	display: block;
	font-family: "Instrument Sans", sans-serif;
	font-size: clamp(1.6rem, 2.6vw, 2.3rem);
	font-weight: 600;
	line-height: 1;
	color: var(--hp-ink);
}
.hp-stat strong span { color: var(--hp-orange); }
.hp-stat small { display: block; margin-top: .45rem; font-size: .84rem; color: var(--hp-ink-soft); }

/* --------------------------------------------------------------------------
   Produtos
   -------------------------------------------------------------------------- */
.hp-prod-swiper {
	overflow: hidden;
	padding: .25rem .25rem .5rem;
	margin: -.25rem;
}
.hp-prod-swiper .swiper-slide {
	height: auto;
	display: flex;
}
.hp-prod-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.75rem;
}
.hp-prod-pagination {
	position: static !important;
	width: auto !important;
	display: flex;
	align-items: center;
	gap: .5rem;
}
.hp-prod-pagination .swiper-pagination-bullet {
	margin: 0 !important;
	width: 9px;
	height: 9px;
	background: #dcc9b8;
	opacity: 1;
	border-radius: 6px;
	transition: width .25s ease, background-color .25s ease;
}
.hp-prod-pagination .swiper-pagination-bullet-active {
	width: 28px;
	background: var(--hp-orange);
}
.hp-prod-arrows { display: flex; gap: .6rem; }
.hp-prod-arrows button {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1px solid var(--hp-line);
	background: #fff;
	color: var(--hp-ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.05rem;
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.hp-prod-arrows button:hover {
	background: var(--hp-orange);
	border-color: var(--hp-orange);
	color: #fff;
}
.hp-prod-arrows button.swiper-button-disabled {
	opacity: .35;
	cursor: default;
}
.hp-prod-arrows button.swiper-button-disabled:hover {
	background: #fff;
	border-color: var(--hp-line);
	color: var(--hp-ink);
}
.hp-prod {
	position: relative;
	display: block;
	height: 100%;
	width: 100%;
	text-decoration: none;
	color: var(--hp-ink);
	border: 1px solid var(--hp-line);
	border-radius: 20px;
	overflow: hidden;
	background: #fff;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.hp-prod:hover {
	transform: translateY(-4px);
	border-color: rgba(255,99,0,.35);
	box-shadow: 0 26px 45px -30px rgba(28,22,17,.5);
	color: var(--hp-ink);
}
.hp-prod-media {
	position: relative;
	aspect-ratio: 4 / 3;
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		radial-gradient(circle at 72% 20%, rgba(255,255,255,.92), transparent 55%),
		linear-gradient(150deg, #fdf7f0 0%, #f2e6d8 100%);
	overflow: hidden;
}
.hp-prod-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(185,96,58,.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(185,96,58,.06) 1px, transparent 1px);
	background-size: 40px 40px;
	-webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 78%);
	mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 78%);
	pointer-events: none;
}
.hp-prod-media img {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 115%;
	max-width: none;
	max-height: none;
	object-fit: contain;
	align-self: flex-end;
	filter: drop-shadow(0 22px 22px rgba(120,60,25,.2));
	transition: transform .45s ease;
}
.hp-prod:hover .hp-prod-media img { transform: translateY(-6px) scale(1.03); }
.hp-prod-body {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.15rem 1.35rem;
}
.hp-prod-body h3 { font-size: 1.08rem; font-weight: 600; margin: 0; }
.hp-prod-body small { display: block; font-size: .8rem; color: var(--hp-ink-soft); margin-top: .15rem; font-weight: 400; }
.hp-prod-body .hp-arrow {
	flex: 0 0 auto;
	width: 38px; height: 38px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: var(--hp-cream);
	color: var(--hp-ink);
	transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.hp-prod:hover .hp-arrow { background: var(--hp-orange); color: #fff; transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   História
   -------------------------------------------------------------------------- */
.hp-hist {
	display: grid;
	grid-template-columns: .85fr 1.15fr;
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}
.hp-hist-panel {
	position: relative;
	border-radius: 26px;
	padding: clamp(2rem, 4vw, 3.25rem);
	min-height: 420px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background:
		radial-gradient(circle at 80% 15%, rgba(255,255,255,.9), transparent 55%),
		linear-gradient(150deg, #fdf7f0 0%, #f2e6d8 100%);
	overflow: hidden;
}
.hp-hist-panel::after {
	content: "";
	position: absolute;
	right: -60px; bottom: -60px;
	width: 220px; height: 220px;
	border-radius: 50%;
	border: 1.5px solid rgba(185,96,58,.22);
}
.hp-hist-panel .hp-panel-label { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--hp-terra); }
.hp-hist-panel .hp-year {
	font-family: "Instrument Sans", sans-serif;
	font-size: clamp(4rem, 10vw, 8rem);
	font-weight: 600;
	line-height: .9;
	color: var(--hp-orange);
	letter-spacing: -.03em;
}
.hp-hist-panel .hp-panel-foot { font-size: .95rem; color: var(--hp-ink-soft); max-width: 220px; }

.hp-hist-body h2 {
	font-size: clamp(1.9rem, 3.4vw, 2.9rem);
	font-weight: 600;
	line-height: 1.07;
	margin: 1rem 0 1.1rem;
}
.hp-hist-body > p { color: var(--hp-ink-soft); font-size: 1.05rem; line-height: 1.7; margin-bottom: 1.75rem; }
.hp-feature {
	display: flex;
	gap: 1rem;
	padding: 1.1rem 0;
	border-top: 1px solid var(--hp-line);
}
.hp-feature:first-of-type { border-top: 0; }
.hp-feature-icon {
	flex: 0 0 auto;
	width: 46px; height: 46px;
	border-radius: 13px;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--hp-orange-soft);
	color: var(--hp-orange);
	font-size: 1.25rem;
}
.hp-feature h3 { font-size: 1.02rem; font-weight: 600; margin: 0 0 .25rem; }
.hp-feature p { font-size: .92rem; line-height: 1.6; color: var(--hp-ink-soft); margin: 0; }

/* --------------------------------------------------------------------------
   Soluções
   -------------------------------------------------------------------------- */
.hp-sol-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}
.hp-sol {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 2rem 1.85rem;
	border-radius: 22px;
	border: 1px solid var(--hp-line);
	background: #fff;
	text-decoration: none;
	color: var(--hp-ink);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
	overflow: hidden;
}
.hp-sol:hover { transform: translateY(-4px); box-shadow: 0 26px 45px -30px rgba(28,22,17,.5); border-color: rgba(255,99,0,.35); color: var(--hp-ink); }
.hp-sol-num {
	font-family: "Instrument Sans", sans-serif;
	font-size: 2.4rem;
	font-weight: 600;
	line-height: 1;
	color: var(--hp-line);
	letter-spacing: -.03em;
}
.hp-sol-icon {
	position: absolute;
	top: 1.85rem; right: 1.85rem;
	width: 50px; height: 50px;
	border-radius: 14px;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--hp-orange-soft);
	color: var(--hp-orange);
	font-size: 1.35rem;
}
.hp-sol h3 { font-size: 1.3rem; font-weight: 600; margin: 1.2rem 0 .6rem; }
.hp-sol p { font-size: .94rem; line-height: 1.6; color: var(--hp-ink-soft); margin-bottom: 1.5rem; }
.hp-sol .hp-sol-link { margin-top: auto; font-weight: 600; font-size: .92rem; color: var(--hp-orange); display: inline-flex; align-items: center; gap: .4rem; }

/* --------------------------------------------------------------------------
   Blog
   -------------------------------------------------------------------------- */
.hp-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.hp-blog-card {
	display: flex; flex-direction: column;
	border: 1px solid var(--hp-line);
	border-radius: 20px; overflow: hidden;
	background: #fff; text-decoration: none; color: var(--hp-ink);
	transition: transform .2s ease, box-shadow .2s ease;
}
.hp-blog-card:hover { transform: translateY(-4px); box-shadow: 0 26px 45px -30px rgba(28,22,17,.5); color: var(--hp-ink); }
.hp-blog-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.hp-blog-body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.hp-blog-tag { font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--hp-terra); }
.hp-blog-body h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.3; margin: 0; }
.hp-blog-date { font-size: .82rem; color: var(--hp-ink-soft); margin-top: auto; }

/* --------------------------------------------------------------------------
   CTA + formulário
   -------------------------------------------------------------------------- */
.hp-cta {
	position: relative;
	margin-top: clamp(4rem, 8vw, 7rem);
	margin-bottom: 1.5rem;
	border-radius: 28px;
	overflow: hidden;
	background: var(--hp-ink);
	color: #fff;
	padding: clamp(2rem, 4.5vw, 3.75rem);
	isolation: isolate;
}
.hp-cta::after {
	content: "";
	position: absolute;
	left: -140px; bottom: -160px;
	width: 380px; height: 380px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255,99,0,.5), transparent 65%);
	z-index: -1;
}
.hp-cta-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hp-cta h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 600; line-height: 1.1; margin: .9rem 0 .9rem; }
.hp-cta p { color: rgba(255,255,255,.72); font-size: 1.03rem; line-height: 1.6; margin-bottom: 1.6rem; max-width: 480px; }
.hp-cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.hp-form {
	background: #fff;
	border-radius: 20px;
	padding: clamp(1.4rem, 2.5vw, 2rem);
	box-shadow: 0 30px 60px -40px rgba(0,0,0,.6);
}
.hp-form h3 { color: var(--hp-ink); font-size: 1.12rem; font-weight: 600; margin-bottom: 1rem; }
.hp-form .form-control {
	border-radius: 12px;
	border: 1px solid var(--hp-line);
	background: var(--hp-cream);
	padding: .8rem 1rem;
	font-size: .95rem;
	margin-bottom: .75rem;
	color: var(--hp-ink);
}
.hp-form .form-control:focus { border-color: var(--hp-orange); box-shadow: 0 0 0 3px rgba(255,99,0,.15); background: #fff; }
.hp-form .hp-btn { width: 100%; justify-content: center; }
.hp-form .hp-error { color: #c0392b; font-size: .88rem; margin: .25rem 0 .75rem; }

/* --------------------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
	.hp-hero { min-height: 74vh; }
	.hp-stats { margin-top: 1rem; grid-template-columns: 1fr; }
	.hp-stat { border-right: 0; border-bottom: 1px solid var(--hp-line); }
	.hp-stat:last-child { border-bottom: 0; }
	.hp-hist { grid-template-columns: 1fr; }
	.hp-hist-panel { min-height: 300px; }
	.hp-sol-grid { grid-template-columns: 1fr; }
	.hp-sol { padding: 1.6rem 1.5rem; }
	.hp-sol-icon { top: 1.5rem; right: 1.5rem; }
	.hp-blog-grid { grid-template-columns: repeat(2, 1fr); }
	.hp-cta-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
	.hp-hero { min-height: auto; align-items: stretch; }
	.hp-hero-inner { justify-content: flex-start; min-height: 0; padding-top: 11.5rem; padding-bottom: 3rem; }
	.hp-actions .hp-btn { flex: 1 1 100%; justify-content: center; }
	.hp-blog-grid { grid-template-columns: 1fr; }
	.hp-cta, .hp-hist-panel, .hp-prod, .hp-sol, .hp-blog-card { border-radius: 18px; }
}