/* ==========================================================================
   Hello Elementor Child — Bharosa Group Responsive Styles
   100% Mobile Friendly Across All Viewports (1024px, 768px, 640px, 480px, 390px, 360px & 320px)
   Zero horizontal overflow, iOS anti-zoom, touch-friendly tap targets (>= 44px)
   ========================================================================== */

/* ==========================================================================
   1. TABLET & SMALL LAPTOP (<= 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
	.bh-main-nav {
		display: none;
	}

	.bh-mobile-toggle {
		display: inline-flex;
	}

	.bh-trust-grid,
	.bh-cat-grid,
	.bh-product-grid,
	.bh-product-grid--3col,
	.bh-pillars-grid,
	.bh-steps-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}

	.bh-stats-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}

	.bh-why-grid,
	.bh-benefits-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}

	.bh-catalogue-promo__inner {
		grid-template-columns: 1fr 0.85fr;
		gap: 24px;
	}

	.bh-footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px;
	}

	.bh-hero__inner {
		grid-template-columns: 1fr 0.9fr;
		gap: 26px;
	}

	.bh-pdp-layout {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.bh-pdp-gallery {
		position: static;
	}
}

/* ==========================================================================
   2. MOBILE & PHABLET (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
	/* Viewport & Safe Scroll */
	html,
	body.bh-theme {
		overflow-x: clip !important;
		max-width: 100vw;
	}

	body.admin-bar .bh-site-header.is-sticky-enabled {
		top: 0;
	}

	/* Add bottom padding to body for mobile sticky bar + iOS safe area */
	body.bh-theme.bh-has-mobile-sticky-bar {
		padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)) !important;
	}

	.bh-section {
		padding: 42px 0;
	}

	.bh-section--sm {
		padding: 28px 0;
	}

	/* Prevent iOS Safari auto-zoom on input focus: font-size MUST be >= 16px */
	.bh-form-input,
	.bh-form-select,
	.bh-form-textarea,
	.bh-form-control,
	.bh-search-box__input {
		font-size: 16px !important;
		min-height: 46px;
		border-radius: 8px;
	}

	/* -------------------------------------------------------------------------
	   Header & Top Bar
	   ------------------------------------------------------------------------- */
	.bh-topbar {
		padding: 4px 0;
	}

	.bh-topbar__inner {
		justify-content: center;
		text-align: center;
		gap: 5px 12px;
		padding-top: 5px;
		padding-bottom: 5px;
		font-size: 0.76rem;
		flex-wrap: wrap;
	}

	.bh-topbar__left,
	.bh-topbar__right {
		justify-content: center;
		text-align: center;
		gap: 6px 12px;
		flex-wrap: wrap;
		width: 100%;
	}

	.bh-topbar__company {
		text-align: center;
		line-height: 1.35;
	}

	.bh-topbar__phones,
	.bh-topbar__email {
		white-space: nowrap;
	}

	/* Hide redundant topbar language switcher on mobile (navbar already has it) */
	.bh-topbar__lang {
		display: none !important;
	}

	/* -------------------------------------------------------------------------
	   Navbar & Branding
	   ------------------------------------------------------------------------- */
	.bh-navbar__inner {
		min-height: 60px;
		padding-top: 6px;
		padding-bottom: 6px;
		gap: 10px;
	}

	.bh-logo-link {
		flex-shrink: 1;
		min-width: 0;
		max-height: 46px;
		display: inline-flex;
		align-items: center;
	}

	.bh-header__logo-img,
	.bh-logo-link img {
		height: 40px !important;
		max-height: 40px !important;
		width: auto !important;
		max-width: 180px !important;
		object-fit: contain !important;
	}

	.bh-header-actions {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		flex-shrink: 0;
	}

	.bh-btn--header-cta {
		display: none !important;
	}

	/* Compact language pill in header */
	.bh-navbar__lang .bh-lang-pill .bh-lang-label {
		display: none;
	}

	.bh-navbar__lang .bh-lang-pill {
		padding: 5px 8px;
		font-size: 0.74rem;
		min-height: 32px;
	}

	.bh-mobile-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 42px;
		height: 42px;
		min-width: 42px;
		min-height: 42px;
		padding: 0;
		border-radius: 8px;
	}

	/* -------------------------------------------------------------------------
	   Mobile Drawer Navigation
	   ------------------------------------------------------------------------- */
	.bh-drawer-panel {
		width: min(320px, 86vw);
		padding: 16px 18px;
		padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
		padding-top: max(16px, env(safe-area-inset-top, 0px));
	}

	.bh-drawer-logo__img {
		height: 36px;
		max-width: 160px;
		object-fit: contain;
	}

	.bh-drawer-close {
		width: 42px;
		height: 42px;
		min-width: 42px;
		min-height: 42px;
		border-radius: 8px;
	}

	.bh-drawer-nav-list a {
		min-height: 48px;
		padding: 11px 10px;
		font-size: 0.98rem;
	}

	.bh-drawer-lang-wrap {
		padding: 10px 14px;
		border-radius: 8px;
		margin: 10px 0;
	}

	/* -------------------------------------------------------------------------
	   Hero Section
	   ------------------------------------------------------------------------- */
	.bh-hero {
		padding: 30px 0 38px;
	}

	.bh-hero__inner,
	.bh-page-hero__grid,
	.bh-split,
	.bh-contact-layout,
	.bh-catalogue-hero-card,
	.bh-catalogue-promo__inner,
	.bh-catalogue-list {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.bh-hero__title {
		font-size: clamp(1.55rem, 5.2vw, 2.2rem);
		line-height: 1.24;
		margin-bottom: 12px;
		word-break: break-word;
	}

	.bh-hero__desc {
		font-size: 0.95rem;
		line-height: 1.55;
		margin-bottom: 20px;
	}

	.bh-hero__actions {
		display: flex;
		flex-direction: column;
		width: 100%;
		gap: 10px;
	}

	.bh-hero__actions .bh-btn {
		width: 100%;
		justify-content: center;
		min-height: 46px;
	}

	.bh-hero__media {
		display: flex;
		justify-content: center;
		margin-top: 8px;
	}

	.bh-hero__image-wrap {
		position: relative;
		width: 100%;
		max-width: 420px;
	}

	.bh-hero__badge-slot {
		top: 8px;
		right: 8px;
		z-index: 3;
	}

	.bh-warranty-badge__shield {
		width: 96px;
		padding: 8px 6px 12px;
	}

	.bh-warranty-badge__top {
		font-size: 0.98rem;
	}

	.bh-warranty-badge__mid,
	.bh-warranty-badge__bot {
		font-size: 0.72rem;
	}

	/* -------------------------------------------------------------------------
	   Catalogue Promo & Partner Bands
	   ------------------------------------------------------------------------- */
	.bh-catalogue-promo {
		padding: 38px 0;
	}

	.bh-catalogue-promo__wave {
		width: 100%;
		height: 36%;
		top: auto;
		right: 0;
		bottom: 0;
		clip-path: polygon(0 38%, 100% 0, 100% 100%, 0% 100%);
	}

	.bh-catalogue-promo__cover {
		max-width: 230px;
		transform: none;
	}

	.bh-catalogue-promo__actions {
		flex-direction: column;
		width: 100%;
		gap: 10px;
	}

	.bh-catalogue-promo__actions .bh-btn {
		width: 100%;
		justify-content: center;
		min-height: 46px;
	}

	.bh-partner-promo {
		padding: 40px 0;
	}

	.bh-partner-promo__bg {
		width: 100%;
		opacity: 0.35;
	}

	.bh-partner-promo__overlay {
		background: linear-gradient(180deg, rgba(101, 7, 13, 0.94) 0%, rgba(101, 7, 13, 0.82) 100%);
	}

	.bh-partner-promo .bh-hero__actions,
	.bh-partner-promo__actions {
		display: flex;
		flex-direction: column;
		width: 100%;
		gap: 10px;
	}

	.bh-partner-promo .bh-btn {
		width: 100%;
		justify-content: center;
		min-height: 46px;
	}

	.bh-split--reverse .bh-split__media {
		order: 0;
	}

	.bh-page-hero__media {
		justify-content: flex-start;
	}

	/* -------------------------------------------------------------------------
	   Grids (Why Choose, Benefits, Forms)
	   ------------------------------------------------------------------------- */
	.bh-why-grid,
	.bh-benefits-grid,
	.bh-form-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.bh-form-field--full {
		grid-column: 1;
	}

	/* -------------------------------------------------------------------------
	   Products Archive Toolbar & Filter Pills
	   ------------------------------------------------------------------------- */
	.bh-products-toolbar {
		padding: 16px 14px;
		gap: 14px;
		margin-bottom: 24px;
	}

	.bh-filter-pills {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 8px;
		width: 100%;
	}

	.bh-filter-pill {
		padding: 8px 14px;
		font-size: 0.84rem;
		min-height: 38px;
		border-radius: 20px;
	}

	.bh-products-toolbar__sub {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		width: 100%;
	}

	.bh-products-meta-bar {
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		font-size: 0.86rem;
	}

	.bh-search-box {
		flex: 1 1 100%;
		max-width: 100%;
		margin-left: 0;
	}

	/* Product Cards in Grid on Mobile */
	.bh-product-card__actions {
		display: flex !important;
		flex-direction: column !important;
		gap: 7px !important;
		width: 100% !important;
		margin-top: auto !important;
	}

	.bh-product-card__actions .bh-btn {
		width: 100% !important;
		min-height: 42px !important;
		justify-content: center !important;
		font-size: 0.86rem !important;
		padding: 9px 12px !important;
	}

	/* -------------------------------------------------------------------------
	   Cards, Containers & Embeds
	   ------------------------------------------------------------------------- */
	.bh-form-card,
	.bh-prose-card,
	.bh-band-card {
		padding: 22px 16px;
		border-radius: 12px;
	}

	.bh-catalogue-embed iframe,
	.bh-catalogue-embed object {
		height: 380px;
	}

	.bh-map-embed iframe {
		height: 240px;
	}

	/* -------------------------------------------------------------------------
	   Footer
	   ------------------------------------------------------------------------- */
	.bh-footer-main {
		padding: 36px 0 24px;
	}

	.bh-footer-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.bh-footer-bottom__inner {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 10px;
	}

	.bh-footer-copyright,
	.bh-footer-credit {
		text-align: center;
		font-size: 0.82rem;
		line-height: 1.5;
	}

	.bh-footer-legal {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 12px 18px;
		font-size: 0.8rem;
	}

	/* -------------------------------------------------------------------------
	   Floating WhatsApp & Sticky Bottom Quick Bar
	   ------------------------------------------------------------------------- */
	/* Hide redundant floating icon on mobile when sticky bottom bar is present */
	body.bh-has-mobile-sticky-bar .bh-floating-wa {
		display: none !important;
	}

	body:not(.bh-has-mobile-sticky-bar) .bh-floating-wa {
		right: 14px;
		bottom: 18px;
		width: 50px;
		height: 50px;
		padding: 0;
		justify-content: center;
		border-radius: 50%;
	}

	body:not(.bh-has-mobile-sticky-bar) .bh-floating-wa__label {
		display: none;
	}

	.bh-mobile-sticky-bar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 990;
		display: grid;
		grid-template-columns: 1fr 1fr;
		background: var(--bh-white);
		border-top: 2px solid var(--bh-gold);
		box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.16);
		padding-bottom: env(safe-area-inset-bottom, 0px);
	}

	.bh-mobile-sticky-btn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		min-height: 52px;
		padding: 10px 10px;
		font-size: 0.92rem;
		font-weight: 700;
		text-decoration: none;
		border: none;
		outline: none;
		transition: opacity 0.15s ease;
	}

	.bh-mobile-sticky-btn:active {
		opacity: 0.85;
	}

	.bh-theme .bh-mobile-sticky-btn--call {
		background: var(--bh-deep-maroon);
		color: #FFFFFF !important;
	}

	.bh-theme .bh-mobile-sticky-btn--wa {
		background: #25D366; /* Vibrant WhatsApp Green */
		color: #FFFFFF !important;
	}

	.bh-mobile-sticky-btn svg {
		width: 18px;
		height: 18px;
		flex-shrink: 0;
	}

	/* Breadcrumbs single-line touch scroll on mobile */
	.bh-breadcrumbs {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 4px;
	}

	.bh-breadcrumbs__list {
		flex-wrap: nowrap;
		white-space: nowrap;
		font-size: 0.82rem;
	}

	/* FAQ Mobile Accordion */
	.bh-faq-controls {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.bh-faq-tabs {
		justify-content: center;
		gap: 6px;
	}

	.bh-faq-tab {
		font-size: 0.82rem;
		padding: 7px 12px;
		min-height: 36px;
	}

	.bh-faq-question {
		padding: 14px 16px;
		font-size: 0.94rem;
	}

	.bh-faq-answer {
		padding: 12px 16px 16px;
		font-size: 0.88rem;
		line-height: 1.55;
	}

	/* PDP (Product Detail Page) */
	.bh-pdp-main-img-wrap {
		aspect-ratio: 4 / 3;
		max-height: 300px;
	}

	.bh-pdp-thumbs {
		display: flex;
		gap: 8px;
		overflow-x: auto;
		flex-wrap: nowrap;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 6px;
	}

	.bh-pdp-thumb {
		width: 64px;
		height: 64px;
		min-width: 64px;
		border-radius: 8px;
	}

	.bh-pdp-actions {
		display: flex;
		flex-direction: column;
		gap: 10px;
		width: 100%;
		margin-bottom: 20px;
	}

	.bh-pdp-actions .bh-btn {
		width: 100%;
		justify-content: center;
		min-height: 48px;
		font-size: 0.95rem;
	}

	.bh-pdp-quick-call {
		display: flex;
		justify-content: center;
		text-align: center;
		width: 100%;
		font-size: 0.85rem;
		padding: 10px 12px;
	}

	.bh-variants-list {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
	}

	.bh-variant-pill {
		padding: 7px 12px;
		font-size: 0.82rem;
		min-height: 36px;
	}

	/* Specifications Table Responsive */
	.bh-specs-table-wrap {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		border-radius: 10px;
	}

	.bh-specs-table th,
	.bh-specs-table td {
		padding: 10px 12px;
		font-size: 0.86rem;
		word-break: break-word;
	}

	.bh-specs-table th {
		width: 40%;
	}
}

/* ==========================================================================
   3. MID MOBILE VIEWPORTS (<= 640px)
   ========================================================================== */
@media (max-width: 640px) {
	.bh-product-grid,
	.bh-product-grid--3col {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.bh-section-header__title-wrap::before,
	.bh-section-header__title-wrap::after {
		display: none;
	}

	.bh-stats-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}

	.bh-stat-item {
		padding: 14px 10px;
	}

	.bh-stat-item__value {
		font-size: 1.45rem;
	}

	.bh-stat-item__label {
		font-size: 0.82rem;
	}
}

/* ==========================================================================
   4. COMPACT MOBILE VIEWPORTS (<= 480px)
   ========================================================================== */
@media (max-width: 480px) {
	.bh-container {
		padding-left: 14px;
		padding-right: 14px;
	}

	.bh-header__logo-img,
	.bh-logo-link img {
		height: 38px !important;
		max-height: 38px !important;
		width: auto !important;
		max-width: 165px !important;
		object-fit: contain !important;
	}

	.bh-corner-frame::before,
	.bh-corner-frame::after {
		width: 36px;
		height: 36px;
		border-width: 3px;
	}

	.bh-theme .bh-contact-cta-strip__title {
		flex-direction: column;
		gap: 8px;
		font-size: 1.35rem;
	}

	.bh-trust-grid,
	.bh-cat-grid,
	.bh-pillars-grid,
	.bh-steps-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.bh-trust-card {
		padding: 12px 14px;
		gap: 12px;
	}

	.bh-trust-card__icon {
		width: 40px;
		height: 40px;
		min-width: 40px;
	}

	.bh-trust-card__title {
		font-size: 0.96rem;
	}

	.bh-trust-card__desc {
		font-size: 0.80rem;
	}

	.bh-cat-card__img-wrap {
		aspect-ratio: 16 / 9;
		max-height: 180px;
		padding: 12px;
	}

	.bh-hero__actions .bh-btn,
	.bh-pdp-actions .bh-btn,
	.bh-split__actions .bh-btn,
	.bh-catalogue-promo__actions .bh-btn,
	.bh-contact-cta-strip__actions .bh-btn,
	.bh-thank-you-card__actions .bh-btn,
	.bh-form-submit .bh-btn {
		width: 100%;
		justify-content: center;
		min-height: 46px;
	}

	.bh-lightbox {
		padding: 10px;
	}

	.bh-lightbox__dialog {
		padding: 14px;
		max-width: 95vw;
	}

	.bh-lightbox__close {
		top: 6px;
		right: 6px;
		width: 38px;
		height: 38px;
	}

	.bh-catalogue-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
}

/* ==========================================================================
   5. ULTRA-COMPACT MOBILE (<= 390px & <= 360px)
   ========================================================================== */
@media (max-width: 390px) {
	body.bh-theme {
		font-size: 15px;
	}

	.bh-header__logo-img,
	.bh-logo-link img {
		height: 34px !important;
		max-height: 34px !important;
		width: auto !important;
		max-width: 145px !important;
		object-fit: contain !important;
	}

	.bh-navbar__inner {
		min-height: 56px;
		gap: 6px;
	}

	.bh-header-actions {
		gap: 6px;
	}

	.bh-mobile-toggle {
		width: 38px;
		height: 38px;
		min-width: 38px;
		min-height: 38px;
	}

	.bh-topbar {
		font-size: 0.72rem;
	}

	.bh-topbar__email {
		word-break: break-all;
	}

	.bh-filter-pill,
	.bh-faq-tab {
		font-size: 0.80rem;
		padding: 7px 11px;
	}

	.bh-pdp-thumb {
		width: 58px;
		height: 58px;
		min-width: 58px;
	}

	.bh-mobile-sticky-btn {
		font-size: 0.86rem;
		padding: 8px 6px;
		gap: 6px;
	}
}

@media (max-width: 360px) {
	.bh-container {
		padding-left: 10px;
		padding-right: 10px;
	}

	.bh-hero__title {
		font-size: 1.45rem;
	}

	.bh-header__logo-img,
	.bh-logo-link img {
		height: 32px !important;
		max-height: 32px !important;
		max-width: 135px !important;
	}

	.bh-mobile-sticky-btn {
		font-size: 0.82rem;
		padding: 8px 4px;
		gap: 4px;
	}

	.bh-mobile-sticky-btn svg {
		width: 16px;
		height: 16px;
	}

	.bh-stat-item__value {
		font-size: 1.3rem;
	}
}
