/*
Theme Name: Hepburn Alloy Steel
Theme URI: https://hepburnalloysteel.com
Description: Child theme of Hello Elementor for Hepburn Alloy Steel. All page layouts are built in Elementor; this theme adds the modern polish (glass header, tiles, pills, marquee) and product-tab deep links.
Author: Equdai Software Solutions
Template: hello-elementor
Version: 2.1.0
Text Domain: hepburn
*/

:root {
	--hb-orange: #F76D16;
	--hb-ink: #0E0F11;
	--hb-ink2: #17191C;
	--hb-text: #5A5F66;
	--hb-light: #F4F3F0;
	--hb-line: #E6E3DE;
	--hb-ease: cubic-bezier(.2, .7, .2, 1);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: hidden; }
::selection { background: var(--hb-orange); color: #fff; }

/* ---------- Header: transparent over hero → floating glass bar on scroll ---------- */
.elementor-location-header { position: absolute; top: 0; left: 0; right: 0; z-index: 999; }
body.admin-bar .elementor-location-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .elementor-location-header { top: 46px; } }

.hb-header {
	transition: background-color .4s var(--hb-ease), box-shadow .4s var(--hb-ease), padding .4s var(--hb-ease), margin .4s var(--hb-ease), border-radius .4s var(--hb-ease);
}
.hb-header.elementor-sticky--effects {
	background-color: rgba(255, 255, 255, .84) !important;
	-webkit-backdrop-filter: saturate(180%) blur(18px);
	backdrop-filter: saturate(180%) blur(18px);
	box-shadow: 0 10px 40px rgba(14, 15, 17, .12), inset 0 0 0 1px rgba(14, 15, 17, .06);
	padding-top: 10px !important; padding-bottom: 10px !important;
	margin-top: 12px !important;
	border-radius: 18px;
	width: calc(100% - 32px) !important; max-width: 1320px; left: 50% !important; transform: translateX(-50%);
}
.hb-header .hb-logo-dark { display: none; }
.hb-header.elementor-sticky--effects .hb-logo-dark { display: block; }
.hb-header.elementor-sticky--effects .hb-logo-light { display: none; }
.hb-header.elementor-sticky--effects .elementor-nav-menu--main .elementor-item { color: var(--hb-ink) !important; }
.hb-header.elementor-sticky--effects .elementor-nav-menu--main .elementor-item:hover,
.hb-header.elementor-sticky--effects .elementor-nav-menu--main .elementor-item.elementor-item-active { color: var(--hb-orange) !important; }
.hb-header.elementor-sticky--effects .elementor-menu-toggle { color: var(--hb-ink) !important; background: var(--hb-light) !important; }
.hb-header .elementor-menu-toggle svg, .hb-header .elementor-nav-menu--main .sub-arrow svg { fill: currentColor; }
.hb-header.elementor-sticky--effects .elementor-menu-toggle svg { fill: var(--hb-ink) !important; }
.hb-header nav.elementor-nav-menu--dropdown.elementor-nav-menu__container { border-radius: 16px; margin-top: 10px; box-shadow: 0 24px 60px rgba(14,15,17,.18); overflow: hidden; }

/* ---------- Headings ---------- */
.hb-h .elementor-heading-title { text-wrap: balance; }
.hb-accent { color: var(--hb-orange); }
.hb-muted { color: #9A9EA4; }

/* ---------- Pill label ---------- */
.hb-pill .elementor-heading-title {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 8px 16px 8px 14px; border-radius: 100px;
	background: #fff; border: 1px solid var(--hb-line);
}
.hb-pill .elementor-heading-title::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--hb-orange); box-shadow: 0 0 0 4px rgba(247,109,22,.18); }
.hb-pill--dark .elementor-heading-title { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* ---------- Buttons ---------- */
.hb-btn .elementor-button { transition: all .35s var(--hb-ease); }
.hb-btn .elementor-button-icon { transition: transform .35s var(--hb-ease); }
.hb-btn .elementor-button:hover .elementor-button-icon { transform: translateX(4px); }
.hb-btn--ghost .elementor-button { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* ---------- Hero ---------- */
.hb-hero .hb-h .elementor-heading-title { text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hb-glass {
	background: rgba(255,255,255,.07);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	backdrop-filter: blur(16px) saturate(140%);
	border: 1px solid rgba(255,255,255,.14);
	border-radius: 20px;
}
.hb-glass > .e-con { position: relative; }
@media (min-width: 768px) {
	.hb-glass > .e-con:not(:first-child)::before { content: ""; position: absolute; left: -16px; top: 6px; bottom: 6px; width: 1px; background: rgba(255,255,255,.14); }
}

/* ---------- Marquee ---------- */
.hb-marquee .elementor-heading-title { display: flex; width: max-content; white-space: nowrap; animation: hb-marquee 60s linear infinite; }
@keyframes hb-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .hb-marquee .elementor-heading-title { animation: none; } }

/* ---------- Image tiles ---------- */
.hb-tile { position: relative; isolation: isolate; transition: transform .5s var(--hb-ease), box-shadow .5s var(--hb-ease); }
.hb-tile:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(14,15,17,.22); }
.hb-tile__arrow .elementor-icon { transition: background-color .35s, transform .45s var(--hb-ease); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hb-tile:hover .hb-tile__arrow .elementor-icon { background-color: var(--hb-orange) !important; transform: rotate(-45deg); }
.hb-tile__desc { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--hb-ease), opacity .4s; }
.hb-tile:hover .hb-tile__desc { max-height: 120px; opacity: 1; }
@media (hover: none) { .hb-tile__desc { max-height: none; opacity: 1; } }

/* ---------- Cards ---------- */
.hb-card { transition: transform .4s var(--hb-ease), box-shadow .4s var(--hb-ease); }
.hb-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(14,15,17,.10); }
.hb-card-dark { transition: border-color .4s, transform .4s var(--hb-ease); }
.hb-card-dark:hover { border-color: rgba(247,109,22,.6) !important; transform: translateY(-4px); }

/* ---------- Services rows ---------- */
.hb-svc-row > .elementor-widget:nth-child(2) { flex: 0 0 34%; }
.hb-svc-row { transition: padding-left .4s var(--hb-ease); }
.hb-svc-row:hover { padding-left: 10px !important; }
@media (max-width: 767px) { .hb-svc-row > .elementor-widget:nth-child(2) { flex: 1 1 auto; } }

/* ---------- Tabs ---------- */
.hb-tabs-pills > .e-n-tabs > .e-n-tabs-heading { gap: 8px; padding-bottom: 4px; scrollbar-width: none; }
.hb-tabs-pills > .e-n-tabs > .e-n-tabs-heading::-webkit-scrollbar { display: none; }
.hb-tabs-pills > .e-n-tabs > .e-n-tabs-heading .e-n-tab-title { transition: background-color .3s, color .3s; white-space: nowrap; }
.hb-tabs-segment > .e-n-tabs > .e-n-tabs-heading { background: var(--hb-light); border-radius: 14px; padding: 5px; width: max-content; max-width: 100%; }
.hb-tabs-segment > .e-n-tabs > .e-n-tabs-heading .e-n-tab-title[aria-selected="true"] { box-shadow: 0 2px 10px rgba(14,15,17,.08); }
.e-n-tabs-content > .e-con { animation: hb-fade .45s var(--hb-ease); }
@keyframes hb-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Spec tables ---------- */
.hb-spec table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0; font-size: 15px; border: 1px solid var(--hb-line); border-radius: 14px; overflow: hidden; }
.hb-spec th, .hb-spec td { text-align: left; padding: 15px 20px; border: 0; border-bottom: 1px solid var(--hb-line); vertical-align: top; background: #fff; }
.hb-spec tr:last-child th, .hb-spec tr:last-child td { border-bottom: 0; }
.hb-spec th { width: 36%; color: var(--hb-ink); font-weight: 600; background: #FAFAF8; }

/* ---------- Grade chips ---------- */
.hb-chips .elementor-icon-list-items.elementor-inline-items .elementor-icon-list-item {
	background: #fff; border: 1px solid var(--hb-line); border-radius: 100px; padding: 9px 16px; margin: 0 8px 10px 0; font-weight: 500;
}
.hb-chips .elementor-icon-list-item::after { display: none !important; }

/* ---------- Form ---------- */
.hb-form .elementor-field-textual, .hb-form select { padding: 14px 16px !important; min-height: 50px; }
.hb-form .elementor-field-textual:focus { border-color: var(--hb-orange) !important; box-shadow: 0 0 0 4px rgba(247,109,22,.12); outline: 0; }
.hb-map iframe { border-radius: 24px; filter: grayscale(1) contrast(1.05); }

@media (max-width: 767px) {
	.hb-spec th, .hb-spec td { display: block; width: 100%; }
	.hb-spec th { border-bottom: 0; padding-bottom: 4px; }
	.hb-header.elementor-sticky--effects { margin-top: 8px !important; width: calc(100% - 16px) !important; border-radius: 14px; }
}
