/*
Theme Name: Poltex Home v2
Theme URI: https://poltexhomefashions.com/
Author: Poltex Home Fashion
Description: Custom theme for Poltex Home Fashion — towel sets, bathrobes, waffle blankets & robes, flannel sheets. Built-in SEO meta, JSON-LD schema, llms.txt and inquiry form.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: poltex-home
*/

:root {
	--cream: #F6F1EA;
	--sand: #ECE3D5;
	--linen: #FBF8F3;
	--ink: #1E2A2F;
	--ink-2: #3D4A50;
	--muted: #6B7479;
	--clay: #A9573A;
	--clay-d: #8E4529;
	--sage: #7B9283;
	--line: #DCD2C3;
	--white: #fff;
	--serif: "Fraunces", Georgia, "Times New Roman", serif;
	--sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--radius: 4px;
	--wrap: 1240px;
	--shadow: 0 1px 2px rgba(30,42,47,.06), 0 8px 24px rgba(30,42,47,.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--linen); color: var(--ink); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--clay); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--clay-d); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; color: inherit; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.4rem); font-weight: 300; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.7rem); font-weight: 300; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.sr, .skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 999; background: var(--ink); color: #fff; padding: 10px 14px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.eyebrow { font: 600 .75rem/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--clay); margin-bottom: 1rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 46ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: 15px 28px; background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: var(--radius); font: 600 .9rem/1 var(--sans); letter-spacing: .04em; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { background: var(--clay); border-color: var(--clay); color: #fff; }
.btn--sm { padding: 11px 18px; font-size: .82rem; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--ghost-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost-dark:hover { background: var(--ink); color: #fff; }
.btn--light { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn--light:hover { background: var(--clay); color: #fff; border-color: var(--clay); }

/* Top bar + header */
.topbar { background: var(--ink); color: #D9D3C8; font-size: .78rem; letter-spacing: .03em; }
.topbar__in { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251,248,243,.94); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: inline-flex; flex-direction: column; line-height: 1; text-decoration: none; color: var(--ink); }
.brand__mark { font: 400 1.75rem/1 var(--serif); letter-spacing: .14em; text-transform: uppercase; }
.brand__sub { font: 600 .62rem/1 var(--sans); letter-spacing: .42em; text-transform: uppercase; color: var(--clay); margin-top: 6px; padding-left: 2px; }
.brand--light { color: #fff; }
.site-nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 500; }
.site-nav a:hover { color: var(--clay); }
.site-nav .nav-cta a { color: #fff; margin-left: 10px; padding: 11px 18px; }
.site-nav .nav-cta a:hover { color: #fff; }
.has-sub { position: relative; }
.has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: 0 0 3px 8px; opacity: .6; }
.sub { position: absolute; top: 100%; left: 0; min-width: 220px; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span:not(.sr) { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* Hero */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #6f6658; }
.hero__media, .hero__video, .hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,26,29,.68) 0%, rgba(20,26,29,.35) 45%, rgba(20,26,29,0) 75%), linear-gradient(0deg, rgba(20,26,29,.45) 0%, rgba(20,26,29,0) 45%); }
.hero__content { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 88px; }
.hero__content .eyebrow { color: #F1D6C5; }
.hero h1 { max-width: 13ch; }
.hero__lead { font-size: 1.15rem; max-width: 50ch; color: rgba(255,255,255,.9); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.strip { background: var(--ink); color: #E9E2D6; }
.strip__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; padding-top: 18px; padding-bottom: 18px; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.strip__in span::before { content: "◆"; color: var(--clay); margin-right: 10px; font-size: .6rem; vertical-align: 2px; }

/* Sections */
.section { padding: 96px 0; }
.section--tight { padding: 56px 0 88px; }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: #EDE7DD; }
.section--ink .eyebrow { color: #E7B79D; }
.section__head { margin-bottom: 44px; max-width: 720px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card { display: block; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.card__img { aspect-ratio: 4/5; overflow: hidden; background: var(--sand); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card__img img { transform: scale(1.04); }
.card__body { padding: 22px 24px 26px; }
.card__body h2, .card__body h3 { margin: .35em 0 .4em; }
.card__kicker { font: 600 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--clay); }
.card__more { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.card--big .card__img { aspect-ratio: 5/4; }
.mini { list-style: none; padding: 0; margin: 0 0 14px; color: var(--ink-2); font-size: .95rem; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--top { align-items: start; }
.split--rev .split__media { order: -1; }
.split__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

/* Compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.compare__col { background: var(--linen); border: 1px solid var(--line); padding: 24px; }
.compare__col h3 { margin-bottom: 14px; }
.compare__col ul { list-style: none; padding: 0; margin: 0 0 16px; }
.compare__col li { display: flex; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.compare__col li b { font-family: var(--serif); font-weight: 500; color: var(--clay); min-width: 18px; }
.compare__col li span { margin-left: auto; color: var(--muted); font-size: .88rem; }
.compare__col a { font-size: .9rem; font-weight: 600; text-decoration: none; }

/* Colorband */
.colorband { position: relative; background: var(--cream); }
.colorband > img { width: 100%; max-height: 520px; object-fit: cover; }
.colorband__text { position: relative; margin-top: -90px; background: var(--linen); max-width: 760px; padding: 44px 48px; box-shadow: var(--shadow); margin-left: auto; margin-right: auto; text-align: center; }
.colorband__text p:last-child { margin: 0; color: var(--ink-2); }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.feature { border-top: 1px solid var(--line); padding-top: 22px; }
.feature__n { font: 400 .95rem/1 var(--serif); color: var(--clay); display: block; margin-bottom: 18px; }
.feature p { color: var(--ink-2); font-size: .97rem; margin: 0; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font: 400 1.18rem/1.35 var(--serif); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 300 1.6rem/1 var(--sans); color: var(--clay); transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin: 0 0 22px; color: var(--ink-2); max-width: 70ch; }
.faq__group { font-size: 1.5rem; margin: 56px 0 14px; }
.faq__group a { color: var(--ink); text-decoration: none; }

/* Page hero / product */
.page-hero { padding: 48px 0 72px; background: var(--cream); }
.page-hero--plain { padding: 64px 0 56px; }
.page-hero--image { position: relative; padding: 0; min-height: 440px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero--image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,26,29,.72), rgba(20,26,29,.15) 70%); }
.page-hero__over { position: relative; z-index: 2; padding-top: 140px; padding-bottom: 56px; }
.page-hero--image .lead { color: rgba(255,255,255,.9); }
.page-hero--image .crumbs, .page-hero--image .crumbs a { color: rgba(255,255,255,.85); }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--clay); }
.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: start; }
.product__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.product__info { padding-top: 8px; }
.product__info h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
.spec { margin: 28px 0; background: #fff; border: 1px solid var(--line); padding: 20px 24px; }
.spec__title { font: 600 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--clay); margin-bottom: 10px; }
.spec table { width: 100%; border-collapse: collapse; }
.spec td { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.spec tr:last-child td { border-bottom: 0; }
.spec__qty { width: 44px; font-family: var(--serif); color: var(--clay); }
.spec__size { text-align: right; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0 0 8px; }
.ticks li { padding: 7px 0 7px 30px; position: relative; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 12px; height: 7px; border-left: 2px solid var(--sage); border-bottom: 2px solid var(--sage); transform: rotate(-45deg); }

/* Table */
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); margin-bottom: 28px; }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { font: 600 .74rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--linen); }

/* Steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 24px; }
.steps li { counter-increment: s; position: relative; padding: 18px 0 18px 64px; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 16px; font: 400 1.4rem/1 var(--serif); color: var(--clay); }

/* Forms */
.form { display: grid; gap: 16px; background: var(--linen); padding: 32px; border: 1px solid var(--line); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--ink-2); }
.form input, .form select, .form textarea { width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--clay); outline-offset: 0; border-color: var(--clay); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; margin-bottom: 16px; border-radius: var(--radius); font-weight: 600; }
.notice--ok { background: #E3EDE6; color: #2D5A3D; }
.notice--err { background: #F5E1DA; color: #8E3B22; }
.contact-card { background: #fff; border: 1px solid var(--line); padding: 32px; margin-bottom: 24px; }

/* Prose */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.4em; }
.prose img { margin: 1.5em 0; }
.post-item { padding: 28px 0; border-bottom: 1px solid var(--line); }
.meta { color: var(--muted); font-size: .85rem; }

/* Footer */
.site-footer { background: #172125; color: #C9C3B8; padding: 80px 0 0; font-size: .94rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; }
.footer__brand p { margin-top: 20px; max-width: 34ch; }
.site-footer h3 { font: 600 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #C9C3B8; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer__base { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 22px; padding-bottom: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } * { scroll-behavior: auto !important; } }

/* Responsive */
@media (max-width: 1080px) {
	.site-nav a { padding: 10px 8px; font-size: .86rem; }
	.features { grid-template-columns: repeat(2, 1fr); }
	.footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
	.nav-toggle { display: block; }
	.site-nav { position: fixed; inset: 78px 0 0 0; background: var(--linen); padding: 16px 24px 40px; overflow-y: auto; transform: translateX(100%); transition: transform .3s; }
	.nav-open .site-nav { transform: none; }
	.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
	.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav a { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
	.sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; background: transparent; }
	.has-sub > a::after { display: none; }
	.site-nav .nav-cta a { margin: 20px 0 0; text-align: center; border-bottom: 0; }
	.cards, .cards--3 { grid-template-columns: repeat(2, 1fr); }
	.split, .product { grid-template-columns: 1fr; gap: 36px; }
	.split--rev .split__media { order: 0; }
	.section { padding: 72px 0; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.wrap { padding: 0 16px; }
	.topbar__in span { display: none; }
	.topbar__in { justify-content: center; }
	.site-header__in { height: 68px; }
	.site-nav { inset: 68px 0 0 0; }
	.brand__mark { font-size: 1.45rem; }
	.hero { min-height: 82vh; }
	.hero__content { padding-bottom: 56px; }
	.cards, .cards--2, .cards--3, .compare, .form__row, .features, .footer__grid { grid-template-columns: 1fr; }
	.strip__in { justify-content: flex-start; font-size: .72rem; }
	.colorband__text { margin: -40px 16px 0; padding: 28px 22px; }
	.form { padding: 22px 18px; }
	.table th, .table td { padding: 10px; font-size: .9rem; }
	.footer__base { flex-direction: column; }
}
