/* Define a global CSS variable for header height */
:root {
    --header-height: 100px; /* Change this to resize everything */
    --padding-size: 10px; /* Auto padding */
    --content-height: calc(var(--header-height) - 2 * var(--padding-size)); /* Remaining space */
    --subheader-top: var(--header-height); /* Auto-adjusts subheader position */
	--slider: var(--header-height); /* Auto-adjusts subheader position */
	--brand-color: #2c67ae; /* Define your brand color */
}

/* Prevent content from being hidden under fixed navbar & sticky subheader works correctly */
body {
	padding-top: var(--header-height);
	font-family: 'Nunito Sans', sans-serif;
}

h1, h3, h4, h5 {
	color: var(--brand-color);
}

a {
	text-decoration: none;
	color: var(--brand-color);
}

a:hover {
	text-decoration: underline;
}

table {
  width: 100%;
  border-collapse: collapse;
}

td, th {
  vertical-align: top;
  text-align: left;
  padding: 8px;
}

.logo-container {
    height: var(--content-height); /* Scales dynamically */
}

.logo {
    height: var(--content-height); /* Scales dynamically */
    width: auto;
    object-fit: contain;
}

.tagline {
	font-weight: 200;
}


/* Fixed Navbar */
.navbar {
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 1050;
	height: var(--header-height);
}

.navbar-nav a {
	color: #000;
	text-decoration: none;
	padding: 0 15px;
}

.navbar-nav a:hover {
	color: var(--brand-color);
}

	/* Mega Menu */
	.mega-menu {
		position: absolute;
		left: 0;
		width: 100%;
		padding: 20px 20px 30px 20px;
		display: none;
		z-index: 1000;
		border: none;
		border-bottom: 1px solid #ccc;
	}

	.nav-item:hover .mega-menu {
		display: block;
	}

	.mega-menu ul {
		display: flex;
		flex-wrap: wrap;
		gap: 10px;
		padding: 0;
		margin: 0;
		list-style: none;
	}

	.mega-menu ul li {
		box-sizing: border-box;
		background: var(--brand-color);
		height: 80px;
		border-radius: 2px;
		display: flex;
		align-items: center;
		justify-content: center;
		flex: 0 0 calc(33.333% - 10px);
	}

	.mega-menu a {
		display: block;
		width: 100%;
		height: 100%;
		padding: 10px 15px;;
		color: white !important;
		text-decoration: none;
		font-weight: 800;
		font-size: 20px;
	}

	.mega-menu ul li a:hover  {
		background: #aaaabb;
	}


/* Mobile Offcanvas */


.offcanvas-header {
	height: var(--header-height);
}

.offcanvas-body ul {
	padding-left: 0;
	list-style: none;
}

.offcanvas-body ul li {
	padding: 10px 0;
}

/* Mobile Submenu */
.submenu {
	display: none;
	padding-left: 15px;
}

.submenu.show {
	display: block;
}



/*subheader*/
.sub-header {
    background-color: var(--brand-color);
    color: white;
	text-align: center;
    padding: 8px;
    position: sticky;
	top: 100px;
	z-index: 100;
}

.sticky {
    position: fixed !important;
    top: var(--header-height); /* Ensure it stops at the header */
    left: 0;
    width: 100%;
    z-index: 1040;
}

/**typography**/
.elevator-pitch {
	max-width: 800px;
	display: block;
	margin: auto;
}
.content {
    padding: 50px 0px;
}

.content .container {
	padding-bottom: 30px;
	margin: auto;
}

.heading-block h1, h3 {
	color: var(--brand-color);
}

.heading-block h3 {
	color: var(--brand-color);
}

.heading-block span {
	font-weight: 200;
	color: #333;
	font-size: 20px;
}

.heading-block p {
	font-weight: 400;
	font-size: 15px;
	margin-top: 10px;
	margin-bottom: 40px;
}

.heading-block a {
	color: var(--brand-color);
	text-decoration: none;
}

.heading-block a:hover {
	text-decoration: underline;
}

.row img {
	width: 100%;
	margin-bottom: 20px;
}

/**full width section, can be used as slider/mid paragraph section**/

.slider {/*to wrap image, default height follow image proportion*/
    background: black;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1.5rem;
    overflow: hidden;
}

.slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.section-half {/*to change section height*/
	height: 300px;
	position: relative;
}

.section-half-caption {
	position: absolute;
	top: 50%;
	left: 50%; 
	transform: translate(-50%, -50%);
	text-align: left; 
	}

.section-half-caption h2{
	font-size: 30px;
	padding-bottom: 20px;
	font-weight: 800;
}

.section-half-caption p {
	font-size: 15px;
	font-weight: 200;
	color: white;
	background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
	padding: 20px;
	border-radius: 10px;
	backdrop-filter: blur(10px); /* Frosted glass effect */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
}


/**footer**/
.footer {
    background-color: var(--brand-color);
    color: white;
    padding: 50px 0;
}

.footer ul {
	list-style: none;
	padding:0px;
}

.footer ul li {
	padding: 0;
}

.footer h3 {
	font-weight: 400;
	font-size: 24px;
	color: #fff;
}

.footer a {
	font-weight: 200;
	font-size: 13px;
	text-decoration: underline !important;
	color: #fff;
}

.footer p {
	font-weight: 200;
	font-size: 13px;
	color: #fff;
	margin: 0px;
}

/**product use**/
.card {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    background: white;
}

.card-title {
    background-color: #2C64B4; /* Blue header */
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 10px 15px;
}

.card-body {
    padding: 15px;
}

.color-box-container {
    display: flex;
    flex-wrap: wrap;
}

.color-box {
    text-align: center;
    flex: 0 0 auto; /* Two per row */
	width: 50%;
	padding: 5px;
	overflow: hidden; /* Prevents overflow */
}


.color-box img {
    width: 100%; /* Ensures full width */
    height: 100%; /* Ensures full height */
    object-fit: cover; /* Ensures image fills the box without stretching */
}

.color-box .color {
	background-image: url('../images/texture.jpg');
	background-blend-mode: multiply;
}


.color {
    width: 100%;
    height: 50px;
	border-radius: 2px;
}

.color img {
	border-radius: inherit; 
}

/**link thumbnail**/
.fav-section h1{
	padding-bottom: 20px;
}

.fav-thumb {
    background: white;
    overflow: hidden; /* Prevents overflowing */
}

.fav-thumb-img {
    width: 100%;
	max-height: 400px;
	margin-bottom: 10px;
	position: relative;
}

.fav-thumb-img p {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	background: rgba(255, 255, 255, 0.8);
	padding: 5px 10px;
	border-radius: 2px;
	color: var(--brand-color);
	font-weight: 700;
	font-size: 24px;
	text-align: center;
	min-width: 70%;
	line-height: 1.2;
	text-transform: capitalize;
}

.fav-thumb img {
    width: 100%;
	height: 100%;
	display: block;
	margin: auto;
    margin-bottom: 10px;
	object-fit: cover;
}

.fav-thumb:hover p {
    color: var(--brand-color);
}

.fav-thumb-desc {
    font-size: 14px;
    color: #666;
}

/**product listing use**/
.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: white;
    height: 360px; /* Fixed height */
    overflow: hidden; /* Prevents overflowing */
}

.product-card img {
    max-width: 100%;
    height: 120px;
	width: auto;
	display: block;
	margin: auto;
    margin-bottom: 10px;
}

.product-content {
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 20px;
    color: #0066CC;
}

.product-description {
    font-size: 14px;
    color: #666;
}


/*franchise page hover box*/
.hover-box {
	background-color: #f5f5f5;
	transition: background-color 0.3s ease;
	height: 100%;
	border-radius: 2px;

}

.hover-box span {
	font-size: 18px;
	color: var(--brand-color);
}

.hover-box h1 {
	color: var(--brand-color);
}

.hover-box p {
	color: #999;
	font-size: 14px;
}

.hover-box:hover {
	background:  var(--brand-color); 
}

.hover-box:hover p{
	color: #fff;
}

.hover-box:hover h1{
	color: #fff;
}

.hover-box:hover span{
	color: #fff;
}

.pnz-button {
	color: #fff;
	background: var(--brand-color); 
	border-radius: 4px;
	padding: 15px 40px;
}

.pnz-button:hover {
	color: var(--brand-color); 
	border: 1px solid var(--brand-color); 
	text-decoration: none;
	background: #fff;
}

button {
	border: none;
}

.modal-body img {
	width: 100%;
}

