/*
Theme Name: Trusted Burial Society
Theme URI: https://trustedburial.co.za
Author: Trusted Burial Society
Author URI: https://trustedburial.co.za
Description: A professional, compassionate and modern WordPress theme custom-built for Trusted Burial Society — providing dignified Islamic burial assistance, Janazah guidance and family membership support.
Version: 1.2.5
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trusted-journeys
Tags: business, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog, one-column, two-columns
*/

/* Header repair: keep brand left, compact nav, prevent Contact dropping alone */

@media (min-width: 961px) {

	.tj-header__inner {
		display: flex !important;
		align-items: center !important;
		justify-content: space-between !important;
		gap: 18px !important;
		padding: 18px 0 !important;
	}

	.tj-brand {
		flex: 0 0 auto !important;
		max-width: 310px !important;
	}

	.tj-brand__link {
		display: inline-flex !important;
		align-items: center !important;
		gap: 13px !important;
	}

	.tj-header .tj-brand__mark svg {
		width: 48px !important;
		height: 48px !important;
	}

	.tj-header .custom-logo-link img,
	.tj-header .custom-logo {
		max-height: 54px !important;
		width: auto !important;
	}

	.tj-brand__text {
		display: flex !important;
		flex-direction: column !important;
		gap: 3px !important;
	}

	.tj-header .tj-brand__title {
		font-size: 1.42rem !important;
		line-height: 1.05 !important;
		white-space: nowrap !important;
	}

	.tj-header .tj-brand__tag {
		font-size: 0.78rem !important;
		letter-spacing: 0.08em !important;
		white-space: nowrap !important;
	}

	.tj-nav {
		flex: 1 1 auto !important;
		min-width: 0 !important;
		display: flex !important;
		align-items: center !important;
		justify-content: flex-end !important;
		gap: 8px !important;
		flex-wrap: nowrap !important;
	}

	.tj-menu {
		display: flex !important;
		align-items: center !important;
		justify-content: flex-end !important;
		flex-wrap: nowrap !important;
		gap: 2px !important;
		min-width: 0 !important;
	}

	.tj-menu li {
		flex: 0 0 auto !important;
	}

	.tj-menu li a {
		padding: 8px 10px !important;
		font-size: 0.84rem !important;
		line-height: 1.1 !important;
		white-space: nowrap !important;
	}

	.tj-nav__portal,
	.tj-nav__cta {
		flex: 0 0 auto !important;
		min-height: 42px !important;
		padding: 10px 14px !important;
		font-size: 0.78rem !important;
		line-height: 1.1 !important;
		white-space: nowrap !important;
		border-radius: 999px !important;
	}

	.tj-nav__portal {
		min-width: auto !important;
	}

	.tj-nav__cta {
		min-width: auto !important;
	}
}

/* Smaller laptop screens */

@media (min-width: 961px) and (max-width: 1220px) {

	.tj-header__inner {
		gap: 12px !important;
	}

	.tj-brand {
		max-width: 255px !important;
	}

	.tj-header .tj-brand__mark svg {
		width: 44px !important;
		height: 44px !important;
	}

	.tj-header .custom-logo-link img,
	.tj-header .custom-logo {
		max-height: 48px !important;
	}

	.tj-header .tj-brand__title {
		font-size: 1.24rem !important;
	}

	.tj-header .tj-brand__tag {
		font-size: 0.68rem !important;
	}

	.tj-nav {
		gap: 6px !important;
	}

	.tj-menu li a {
		padding: 8px 8px !important;
		font-size: 0.78rem !important;
	}

	.tj-nav__portal,
	.tj-nav__cta {
		min-height: 40px !important;
		padding: 9px 11px !important;
		font-size: 0.72rem !important;
	}
}

/* Very tight desktop widths: hide duplicate big CTAs and keep top emergency buttons */

@media (min-width: 961px) and (max-width: 1080px) {

	.tj-nav__portal,
	.tj-nav__cta {
		display: none !important;
	}

	.tj-menu li a {
		padding: 8px 10px !important;
		font-size: 0.82rem !important;
	}
}

/* Mobile: keep original hamburger behaviour */

@media (max-width: 960px) {

	.tj-brand {
		flex: 1 1 auto !important;
		min-width: 0 !important;
	}

	.tj-header .tj-brand__title {
		font-size: 1.16rem !important;
	}

	.tj-header .tj-brand__tag {
		font-size: 0.66rem !important;
	}

	.tj-nav__portal,
	.tj-nav__cta {
		width: 100% !important;
	}
}
