/* ==========================================================================
   buildashelf v5 — homepage sections (front page only).
   Values follow the v5 mockup 1:1; selectors are scoped under .bas-home.
   ========================================================================== */

.bas-home { display: block; overflow-x: clip; }

/* HERO */
.bas-home .hero {
	position: relative;
	height: 86vh; min-height: 540px;
	overflow: hidden;
	display: flex; align-items: center;
	background: #e8e4dc;
}
.bas-home .hero-img {
	position: absolute; inset: 0;
	width: 100%; height: 100%; max-width: none;
	object-fit: cover; object-position: center;
}
.bas-home .hero-gradient {
	position: absolute; inset: 0;
	background: linear-gradient(to right, rgba(250,248,244,0.96) 38%, rgba(250,248,244,0.6) 65%, rgba(250,248,244,0.1) 100%);
}
.bas-home .hero-content { position: relative; z-index: 2; padding: 0 72px; max-width: 640px; }
.bas-home .hero-eyebrow {
	font-family: var(--font-label);
	font-size: 11px; letter-spacing: 3.5px; line-height: normal;
	color: var(--rust); text-transform: uppercase; font-weight: 600;
	margin-bottom: 20px; display: block;
}
.bas-home .hero-headline {
	font-family: var(--font-display);
	font-size: clamp(46px, 5.5vw, 76px);
	font-weight: 500;
	line-height: 1.08; color: var(--ink);
	letter-spacing: -1px; margin-bottom: 22px; text-transform: none;
}
.bas-home .hero-headline em { color: var(--rust); font-style: italic; font-weight: 400; }
.bas-home .hero-sub {
	font-family: var(--font-body);
	font-size: 16px; line-height: 1.7; font-weight: 300;
	color: var(--ink-mid); max-width: 460px; margin-bottom: 38px;
}
.bas-home .hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* HERO STATS BAR */
.bas-home .hero-stats {
	position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
	display: flex;
	background: rgba(255,255,255,0.88);
	backdrop-filter: blur(10px);
	border-top: 1px solid var(--linen-dark);
}
.bas-home .hero-stat { flex: 1; padding: 20px 28px; text-align: center; border-right: 1px solid var(--linen-dark); }
.bas-home .hero-stat:last-child { border-right: none; }
.bas-home .stat-num { font-family: var(--font-display); font-size: 26px; font-weight: 500; color: var(--ink); letter-spacing: -0.5px; line-height: normal; }
.bas-home .stat-num span { color: var(--rust); }
.bas-home .stat-label {
	font-family: var(--font-label);
	font-size: 9.5px; letter-spacing: 2.5px; line-height: normal;
	color: var(--warm-mid); text-transform: uppercase; margin-top: 4px; font-weight: 600;
}

/* LOGO MARQUEE — speed scales with the logo count (mockup: 14 logos in 30s). */
.bas-home .marquee-section {
	background: var(--white);
	border-top: 1px solid var(--linen-dark);
	border-bottom: 1px solid var(--linen-dark);
	padding: 28px 0 24px;
	overflow: hidden;
}
.bas-home .marquee-label {
	text-align: center;
	font-family: var(--font-label);
	font-size: 10px; letter-spacing: 3px; line-height: normal;
	color: var(--warm-mid); text-transform: uppercase;
	margin-bottom: 20px; font-weight: 600;
}
.bas-home .marquee-track {
	display: flex; gap: 0;
	animation: bas-marquee calc(var(--bas-marquee-items, 14) * 30s / 14) linear infinite;
	width: max-content;
}
.bas-home .marquee-track:hover { animation-play-state: paused; }
@keyframes bas-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.bas-home .marquee-item {
	display: flex; align-items: center; justify-content: center;
	padding: 0 40px; height: 54px;
	border-right: 1px solid var(--linen-dark); flex-shrink: 0;
}
.bas-home .marquee-item img {
	height: 34px; width: auto; max-width: 100px; object-fit: contain;
	filter: grayscale(1) opacity(0.45); transition: filter 0.2s;
}
.bas-home .marquee-item:hover img { filter: grayscale(0.2) opacity(0.8); }
@media (prefers-reduced-motion: reduce) {
	.bas-home .marquee-track { animation: none; }
}

/* SECTIONS */
.bas-home .section { padding: var(--bas-section-pad) var(--bas-gutter); }

/* CATEGORIES */
.bas-home .cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bas-home .cat-card {
	display: block;
	position: relative; overflow: hidden;
	background: var(--linen-mid);
	aspect-ratio: 4/3; transition: transform 0.2s, box-shadow 0.2s;
	border: 1px solid var(--linen-dark);
}
.bas-home .cat-card:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(30,29,27,0.1); }
.bas-home .cat-card:hover .cat-img { transform: scale(1.04); }
.bas-home .cat-card.wide { grid-column: span 2; aspect-ratio: 16/9; }
.bas-home .cat-img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.4s ease; }
.bas-home .cat-img.pos-top { object-position: top; }
.bas-home .cat-overlay {
	position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(20,18,16,0.72) 0%, rgba(20,18,16,0.08) 55%, transparent 100%);
}
.bas-home .cat-label { position: absolute; bottom: 0; left: 0; right: 0; padding: 18px 20px; }
.bas-home .cat-name { font-family: var(--font-display); font-size: 20px; font-weight: 500; color: #fff; letter-spacing: -0.2px; line-height: normal; }
.bas-home .cat-count { font-family: var(--font-label); font-size: 9.5px; letter-spacing: 2px; color: rgba(255,255,255,0.6); margin-top: 4px; text-transform: uppercase; font-weight: 600; line-height: normal; }
.bas-home .cat-arrow {
	position: absolute; top: 14px; right: 14px;
	width: 30px; height: 30px; color: #fff;
	background: rgba(255,255,255,0.18); backdrop-filter: blur(4px);
	display: flex; align-items: center; justify-content: center;
	transition: background 0.15s;
}
.bas-home .cat-card:hover .cat-arrow { background: var(--rust); }

/* SHOP BY INDUSTRY */
.bas-home .industries-section { background: var(--cream); padding: var(--bas-section-pad) var(--bas-gutter); border-top: 1px solid var(--linen-dark); }
.bas-home .ind-grid { display: grid; grid-template-columns: repeat(var(--ind-cols, 4), 1fr); gap: 16px; }
.bas-home .ind-card {
	position: relative; display: block; min-height: 200px; padding: 32px 26px 64px;
	background: var(--white); border: 1px solid var(--linen-dark);
	transition: box-shadow 0.2s, transform 0.2s;
}
.bas-home .ind-card:hover { box-shadow: 0 10px 36px rgba(30,29,27,0.09); transform: translateY(-3px); }
.bas-home .ind-name { font-family: var(--font-display); font-size: 20px; font-weight: 500; color: var(--ink); letter-spacing: -0.2px; line-height: 1.25; margin-bottom: 10px; }
.bas-home .ind-desc { font-size: 13.5px; line-height: 1.7; color: var(--ink-mid); font-weight: 300; }
.bas-home .ind-arrow {
	position: absolute; bottom: 22px; left: 26px;
	width: 32px; height: 32px; border-radius: 50%;
	background: var(--linen-mid); color: var(--ink);
	display: flex; align-items: center; justify-content: center; transition: background 0.2s, color 0.2s;
}
.bas-home .ind-card:hover .ind-arrow { background: var(--rust); color: #fff; }

/* SHOP BY ROOM (reuses the .ind-* cards above, three across; soft linen cards on white) */
.bas-home .rooms-section { background: var(--white); padding: var(--bas-section-pad) var(--bas-gutter); }
.bas-home .rooms-grid { --ind-cols: 3; }
.bas-home .rooms-section .ind-card { background: var(--linen); }
.bas-home .rooms-section .ind-arrow { background: var(--white); }
.bas-home .rooms-section .ind-card:hover .ind-arrow { background: var(--rust); }

/* HOW IT WORKS */
.bas-home .how-section { background: var(--navy); padding: var(--bas-section-pad) var(--bas-gutter); color: #fff; }
.bas-home .how-section .section-label,
.bas-home .accessories-section .section-label { color: rgba(196,75,50,0.85); }
.bas-home .how-section .section-title,
.bas-home .accessories-section .section-title { color: #fff; }
.bas-home .how-section .section-sub,
.bas-home .accessories-section .section-sub { color: rgba(255,255,255,0.55); }
.bas-home .steps-grid {
	display: grid; grid-template-columns: repeat(4, 1fr);
	gap: 2px; background: rgba(255,255,255,0.08);
	overflow: hidden; margin-top: 50px;
}
.bas-home .step { background: var(--navy); padding: 40px 32px; transition: background 0.2s; }
.bas-home .step:hover { background: #31455b; }
.bas-home .step-num {
	font-family: var(--font-display);
	font-size: 52px; font-weight: 400; color: rgba(196,75,50,0.2);
	letter-spacing: -3px; line-height: 1; margin-bottom: 24px;
}
.bas-home .step-icon {
	width: 42px; height: 42px;
	background: rgba(196,75,50,0.15);
	display: flex; align-items: center; justify-content: center;
	margin-bottom: 18px; color: var(--rust);
}
.bas-home .step-title { font-family: var(--font-display); font-size: 19px; font-weight: 500; color: #fff; margin-bottom: 10px; line-height: normal; }
.bas-home .step-desc { font-size: 13.5px; line-height: 1.7; color: rgba(255,255,255,0.5); font-weight: 300; }

/* FEATURED PRODUCTS */
.bas-home .products-section { padding: var(--bas-section-pad) var(--bas-gutter); background: var(--linen); }
.bas-home .products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; }
.bas-home .prod-card {
	background: var(--white); overflow: hidden;
	border: 1px solid var(--linen-dark);
	transition: box-shadow 0.2s, transform 0.2s;
}
.bas-home .prod-card:hover { box-shadow: 0 10px 36px rgba(30,29,27,0.09); transform: translateY(-3px); }
.bas-home .prod-img-wrap { display: block; position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--linen-mid); }
.bas-home .prod-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.bas-home .prod-card:hover .prod-img { transform: scale(1.05); }
.bas-home .prod-badge {
	position: absolute; top: 12px; left: 12px;
	background: var(--rust); color: #fff;
	font-family: var(--font-label); font-size: 9.5px; letter-spacing: 1.5px; font-weight: 700; line-height: normal;
	text-transform: uppercase; padding: 5px 10px;
}
.bas-home .prod-badge.is-navy { background: var(--navy); }
.bas-home .prod-body { padding: 20px 20px 24px; }
.bas-home .prod-cat { font-family: var(--font-label); font-size: 10px; letter-spacing: 2.5px; color: var(--warm-mid); text-transform: uppercase; margin-bottom: 7px; font-weight: 600; line-height: normal; }
.bas-home .prod-name { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 500; color: var(--ink); letter-spacing: -0.2px; line-height: 1.3; margin-bottom: 7px; }
.bas-home .prod-desc { font-size: 13px; color: var(--ink-mid); line-height: 1.65; margin-bottom: 16px; font-weight: 300; }
.bas-home .prod-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bas-home .prod-price { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--ink); letter-spacing: -0.5px; line-height: normal; }
.bas-home .prod-price small { font-size: 13px; font-family: var(--font-body); color: var(--warm-mid); font-weight: 300; }
.bas-home .prod-price del { font-size: 15px; color: var(--warm-mid); }
.bas-home .prod-price ins { text-decoration: none; }
/* The second selector (a.prod-atc.button) out-ranks WooCommerce's and The7's generic .button
   rules, which otherwise repaint real product cards' "Add to cart" / "Select options" buttons. */
.bas-home .prod-atc,
.bas-home .prod-foot a.prod-atc.button {
	background: var(--ink); color: #fff; border: none; border-radius: 0;
	padding: 9px 16px; font-size: 11px; font-weight: 700; font-family: var(--font-label);
	letter-spacing: 1px; text-transform: uppercase; line-height: normal; text-decoration: none;
	min-width: 0; min-height: 0; box-shadow: none;
	cursor: pointer; transition: background 0.15s;
	display: flex; align-items: center; gap: 6px; white-space: nowrap;
}
.bas-home .prod-atc:visited,
.bas-home .prod-foot a.prod-atc.button:visited { color: #fff; }
.bas-home .prod-atc:hover,
.bas-home .prod-foot a.prod-atc.button:hover,
.bas-home .prod-foot a.prod-atc.button:focus { background: var(--rust); color: #fff; }
.bas-home .prod-foot .added_to_cart { font-size: 12px; color: var(--rust); }

/* SHELVING ACCESSORIES (navy band; heading colours are shared with .how-section above) */
.bas-home .accessories-section { background: var(--navy); padding: var(--bas-section-pad) var(--bas-gutter); color: #fff; }
.bas-home .acc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bas-home .acc-card {
	position: relative; display: block; min-height: 200px; padding: 32px 26px 64px;
	background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
	transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.bas-home .acc-card:hover { background: #31455b; border-color: var(--rust-soft); transform: translateY(-3px); }
.bas-home .acc-name { font-family: var(--font-display); font-size: 20px; font-weight: 500; color: #fff; letter-spacing: -0.2px; line-height: normal; margin-bottom: 10px; }
.bas-home .acc-desc { font-size: 13.5px; line-height: 1.7; color: rgba(255,255,255,0.55); font-weight: 300; }
.bas-home .acc-arrow {
	position: absolute; bottom: 22px; left: 26px;
	width: 32px; height: 32px; border-radius: 50%;
	background: rgba(255,255,255,0.12); color: #fff;
	display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.bas-home .acc-card:hover .acc-arrow { background: var(--rust); }
.bas-home .acc-cta { margin-top: 36px; }

/* SHOWCASE */
.bas-home .showcase-section { padding: var(--bas-section-pad) var(--bas-gutter); background: var(--white); }
.bas-home .showcase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 50px; }
.bas-home .showcase-main {
	position: relative; overflow: hidden; aspect-ratio: 3/4;
	background: var(--linen-mid); border: 1px solid var(--linen-dark);
}
.bas-home .showcase-main img,
.bas-home .showcase-sm img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.bas-home .showcase-main:hover img,
.bas-home .showcase-sm:hover img { transform: scale(1.03); }
.bas-home .showcase-right { display: flex; flex-direction: column; gap: 16px; }
.bas-home .showcase-sm { position: relative; overflow: hidden; flex: 1; background: var(--linen-mid); border: 1px solid var(--linen-dark); }
.bas-home .showcase-caption {
	position: absolute; bottom: 0; left: 0; right: 0;
	background: linear-gradient(to top, rgba(20,18,16,0.78), transparent);
	padding: 18px 18px 16px;
}
.bas-home .sc-name { font-family: var(--font-display); font-size: 17px; font-weight: 500; color: #fff; line-height: normal; }
.bas-home .sc-sub { font-family: var(--font-label); font-size: 9.5px; letter-spacing: 2px; color: rgba(255,255,255,0.6); margin-top: 4px; text-transform: uppercase; font-weight: 600; line-height: normal; }

/* BRAND STORY */
.bas-home .story-section {
	background: var(--cream);
	padding: var(--bas-section-pad-story) var(--bas-gutter);
	display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
	border-top: 1px solid var(--linen-dark);
}
.bas-home .story-img-wrap { position: relative; overflow: hidden; aspect-ratio: 4/5; border: 1px solid var(--linen-dark); }
.bas-home .story-img { width: 100%; height: 100%; object-fit: cover; }
.bas-home .story-img-badge { position: absolute; bottom: 22px; left: 22px; background: var(--rust); color: #fff; padding: 12px 18px; }
.bas-home .story-badge-top { font-family: var(--font-label); font-size: 9px; letter-spacing: 3px; text-transform: uppercase; opacity: 0.8; font-weight: 600; line-height: normal; }
.bas-home .story-badge-main { font-family: var(--font-display); font-size: 24px; font-weight: 500; letter-spacing: -0.3px; margin-top: 2px; line-height: normal; }
.bas-home .story-body { font-size: 15px; line-height: 1.8; color: var(--ink-mid); margin-bottom: 32px; font-weight: 300; }
.bas-home .story-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 36px; }
.bas-home .story-stat { padding: 18px; border: 1px solid var(--linen-dark); background: var(--white); }
.bas-home .story-stat-num { font-family: var(--font-display); font-size: 30px; font-weight: 500; color: var(--ink); letter-spacing: -1px; line-height: normal; }
.bas-home .story-stat-num span { color: var(--rust); }
.bas-home .story-stat-label { font-size: 12.5px; color: var(--ink-mid); margin-top: 3px; font-weight: 400; }

/* TESTIMONIALS */
.bas-home .testimonials-section { padding: var(--bas-section-pad) var(--bas-gutter); background: var(--linen); }
.bas-home .testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 50px; }
.bas-home .testimonial { background: var(--white); padding: 28px; border: 1px solid var(--linen-dark); }
.bas-home .t-stars { color: var(--rust); font-size: 14px; letter-spacing: 2px; margin-bottom: 14px; line-height: normal; }
.bas-home .t-quote { font-family: var(--font-display); font-size: 15px; line-height: 1.7; color: var(--ink-mid); margin-bottom: 22px; font-style: italic; font-weight: 400; }
.bas-home .t-author { display: flex; align-items: center; gap: 11px; }
.bas-home .t-avatar {
	width: 38px; height: 38px; border-radius: 50%;
	background: var(--linen-mid); display: flex; align-items: center; justify-content: center;
	font-family: var(--font-display); font-size: 15px; color: var(--warm-mid); flex-shrink: 0;
}
.bas-home .t-name { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: normal; }
.bas-home .t-use { font-size: 12px; color: var(--warm-mid); margin-top: 2px; font-weight: 400; line-height: normal; }

/* EMAIL (input selector out-ranks the Elementor kit input rule, 0,3,1) */
.bas-home .email-section { background: var(--rust); padding: var(--bas-section-pad-email) var(--bas-gutter); text-align: center; }
.bas-home .email-section .section-label { color: rgba(255,255,255,0.7); }
.bas-home .email-section .section-title { color: #fff; }
.bas-home .email-sub { font-size: 15.5px; color: rgba(255,255,255,0.75); margin-bottom: 32px; font-weight: 300; }
.bas-home .email-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.bas-home .email-form .email-input[type="email"] {
	flex: 1; padding: 13px 16px; border: none; border-radius: 0; height: auto; min-height: 0; margin: 0; box-shadow: none;
	font-size: 15px; font-family: var(--font-body); font-weight: 300; line-height: normal;
	background: rgba(255,255,255,0.2); color: #fff; outline: none;
}
.bas-home .email-form .email-input[type="email"]::placeholder { color: rgba(255,255,255,0.55); opacity: 1; }
.bas-home .email-form .email-input[type="email"]:focus { background: rgba(255,255,255,0.28); }
.bas-home .email-btn {
	background: #fff; color: var(--rust);
	border: none; border-radius: 0; padding: 13px 24px;
	font-size: 11.5px; font-weight: 700; font-family: var(--font-label);
	letter-spacing: 1.2px; text-transform: uppercase; line-height: normal;
	cursor: pointer; white-space: nowrap; transition: opacity 0.15s;
}
.bas-home .email-btn:hover { opacity: 0.92; }

/* RESPONSIVE */
@media (max-width: 900px) {
	.bas-home .hero-content { padding: 0 28px; max-width: 100%; }
	.bas-home .section,
	.bas-home .products-section,
	.bas-home .industries-section,
	.bas-home .rooms-section,
	.bas-home .accessories-section,
	.bas-home .showcase-section,
	.bas-home .testimonials-section,
	.bas-home .email-section,
	.bas-home .how-section { padding: var(--bas-section-pad-sm) var(--bas-gutter-sm); }
	.bas-home .story-section { padding: var(--bas-section-pad-sm) var(--bas-gutter-sm); grid-template-columns: 1fr; gap: 36px; }
	.bas-home .cat-grid { grid-template-columns: 1fr 1fr; }
	.bas-home .cat-card.wide { grid-column: span 2; }
	.bas-home .products-grid { grid-template-columns: 1fr 1fr; }
	.bas-home .acc-grid,
	.bas-home .ind-grid { grid-template-columns: 1fr 1fr; }
	.bas-home .testimonials-grid { grid-template-columns: 1fr; }
	.bas-home .steps-grid { grid-template-columns: 1fr 1fr; }
	.bas-home .showcase-grid { grid-template-columns: 1fr; }
	.bas-home .hero-stats { display: none; }
}
@media (max-width: 600px) {
	.bas-home .cat-grid { grid-template-columns: 1fr; }
	.bas-home .cat-card.wide { grid-column: span 1; aspect-ratio: 4/3; }
	.bas-home .products-grid { grid-template-columns: 1fr; }
	.bas-home .acc-grid,
	.bas-home .ind-grid { grid-template-columns: 1fr; }
	.bas-home .steps-grid { grid-template-columns: 1fr; }
	.bas-home .email-form { flex-direction: column; }
}
