/* 6 Degrees: layout polish for the 6D pages (hero, sections, cards, mobile). Loaded on every front-end page; rules are scoped. */
html, body { overflow-x: clip; }

/* ---------- Home hero: full width, real Noir footage, CTAs above the fold ---------- */
.sixd-hero {
	position: relative;
	width: 100vw !important; max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important;
	min-height: clamp(500px, calc(100svh - 120px), 780px);
	display: flex !important; flex-direction: row !important; align-items: center; justify-content: flex-end;
	padding: 0 !important;
	background: #121010 url(/wp-content/uploads/6d-media/hero-noir.webp) 18% center / cover no-repeat !important;
	overflow: hidden;
}
.sixd-hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(90deg, rgba(18,16,16,0) 30%, rgba(18,16,16,.72) 52%, rgba(18,16,16,.96) 68%);
}
.sixd-hero > .sixd-hero__copy {
	position: relative; z-index: 1;
	width: min(600px, 46%) !important; max-width: 600px;
	margin-right: max(24px, 5vw) !important;
	padding: 40px 0 !important; gap: 14px !important;
}
.sixd-hero h1, .sixd-hero h1.elementor-heading-title {
	font-size: clamp(34px, 4.2vw, 62px) !important; line-height: 1.06 !important; letter-spacing: -0.01em; margin: 0 !important;
}
.sixd-hero .elementor-widget-text-editor p { font-size: clamp(15px, 1.15vw, 18px) !important; line-height: 1.55 !important; margin: 0; max-width: 46ch; }
.sixd-hero .elementor-button { padding: 15px 26px !important; font-size: 16px !important; }
.sixd-hero .e-con.e-child:has(.elementor-widget-button) { gap: 12px !important; padding-top: 6px !important; }

@media (max-width: 1024px) {
	.sixd-hero { flex-direction: column !important; align-items: stretch; min-height: 0; background-image: none !important; }
	.sixd-hero::before {
		position: relative; inset: auto; display: block; width: 100%; aspect-ratio: 16 / 7; max-height: 32svh;
		background: #121010 url(/wp-content/uploads/6d-media/hero-noir-960.webp) 22% center / cover no-repeat;
	}
	.sixd-hero > .sixd-hero__copy { width: 100% !important; max-width: none; margin: 0 !important; padding: 24px 20px 32px !important; }
}
@media (max-width: 600px) {
	.sixd-hero::before { aspect-ratio: 16 / 8; max-height: 34svh; }
	.sixd-hero h1, .sixd-hero h1.elementor-heading-title { font-size: 32px !important; }
	.sixd-hero .elementor-widget-text-editor p { font-size: 15px !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.sixd-hero .elementor-button { padding: 13px 20px !important; font-size: 15px !important; }
}

/* ---------- Sections, headings, cards ---------- */
.sixd-sec h1.elementor-heading-title { font-size: clamp(32px, 4vw, 54px); line-height: 1.08; }
.sixd-sec h2.elementor-heading-title { font-size: clamp(26px, 3vw, 42px); line-height: 1.12; }
.sixd-sec h3.elementor-heading-title { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.2; }
.sixd-sec p.elementor-heading-title { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.sixd-sec .elementor-widget-text-editor { max-width: 72ch; }
.sixd-card { padding: 4px 0; }
.sixd-sec .elementor-button { white-space: normal; text-align: center; }
.sixd-sec img { max-width: 100%; height: auto; }
.sixd-sec .tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sixd-sec .tbl-wrap table { min-width: 560px; border-collapse: collapse; width: 100%; }
.sixd-sec .tbl-wrap th, .sixd-sec .tbl-wrap td { padding: 10px 12px; border-bottom: 1px solid #E3D9CE; text-align: left; vertical-align: top; }
.sixd-sec .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.sixd-sec .stat .v { font-size: 28px; font-weight: 600; }

/* WooCommerce product grids inside 6D pages */
.sixd-sec .woocommerce ul.products { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0 !important; }
.sixd-sec .woocommerce ul.products::before, .sixd-sec .woocommerce ul.products::after { display: none !important; }
.sixd-sec .woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }
@media (max-width: 1024px) { .sixd-sec .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 480px)  { .sixd-sec .woocommerce ul.products { gap: 12px; } .sixd-sec .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 14px !important; } }

@media (max-width: 767px) {
	.sixd-sec .e-con.e-child { min-width: 0; }
	.sixd-sec .elementor-widget-button .elementor-button { width: 100%; }
	.sixd-sec .e-con.e-child:has(> .elementor-widget-button + .elementor-widget-button) { flex-direction: column !important; }
}

/* Text colour safety for HTML/table/list widgets on 6D pages (theme's global text colour is white) */
.sixd-sec { color: #4A403A; }
.sixd-sec .elementor-widget-html, .sixd-sec .elementor-widget-text-editor { color: #4A403A; }
.sixd-sec .elementor-widget-text-editor a, .sixd-sec .elementor-widget-html a { color: #6E4A30; text-decoration: underline; text-underline-offset: 2px; }
.sixd-sec th { color: #141110; }
.sixd-sec .elementor-accordion .elementor-tab-title { padding: 16px 18px; }
.sixd-sec .elementor-accordion .elementor-tab-content { color: #4A403A; }

/* Tap targets and small labels inside the 6D widgets */
.sixd-ix .ix-btn.ix-sm { min-height: 44px; }
.sixd-ix .ix-eyebrow { font-size: 12px !important; }
.sixd-ix label { color: inherit !important; } /* theme gives labels dark brown, unreadable on the dark calculator band */
.sixd-sec .elementor-button.elementor-size-sm { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.elementor-menu-cart__toggle_button { min-height: 44px; }

/* Theme mobile dropdown menu: keep links readable on its dark panel */
.elementor-nav-menu--dropdown a.elementor-item, .elementor-nav-menu--dropdown a.elementor-sub-item { min-height: 44px; display: flex; align-items: center; }

/* Header logo: the theme's logo grows to ~120px on tablets, pushing content below the fold */
@media (min-width: 601px) and (max-width: 1024px) { .elementor-element-d1f6255 img { max-height: 64px !important; width: auto !important; } }
@media (max-width: 600px) { .elementor-element-d1f6255 img { max-height: 48px !important; width: auto !important; } }

/* Product pages (theme template): readable description text */
.single-product .elementor-widget-woocommerce-product-short-description, .single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-Tabs-panel, .single-product .elementor-widget-woocommerce-product-content { color: #3A322C !important; }
.single-product .woocommerce-Tabs-panel h2, .single-product .elementor-widget-woocommerce-product-content h2 { font-size: 22px; margin: 22px 0 8px; color: #141110; }
.single-product .woocommerce-Tabs-panel h3, .single-product .elementor-widget-woocommerce-product-content h3 { font-size: 17px; margin: 16px 0 4px; color: #141110; }
