@import url("/static/css/common.css");

.show-phone {
	display: none !important;
}

/*header start*/
header {
	background-color: var(--color-bg-dark);
	padding: 1rem 0;
}

header * {
	color: var(--color-bg-light);
}

header section {
	margin: 0 auto;
	overflow: hidden;
}

header section div.logo {
	float: left;
}

header section img#logo {
	height: 3.6rem;
	margin-top: 0.6rem;
}

header section div.nav {
	float: right;
}

header section div.nav ul {
	list-style: none;
}

header section div.nav ul li {
	display: inline-block;
	margin-left: 1rem;
}

header section div.nav ul li a {
	text-decoration: none;
	cursor: pointer;
}

header section.hero {
	margin-top: 2rem;
}

header section .heroimg {
	display: block;
	margin-bottom: 2rem;
	width: 100%;
	border-radius: 1.5rem;
}

/*megamenu*/

div.megamenu {
	display: none;
	overflow: hidden;
	transition: all 0.5s;
	background-color: var(--color-primary);
	border-radius: 2rem;
	padding: 2rem;
	margin-top: 1rem;

	animation: fadeInUp;
	animation-duration: 0.5s;
}

div.megamenu > div.grid5 div {
	border: 0;
}

div.megamenu > div > a {
	display: block;
}

header section:has(#service-menu-hook.active) div.megamenu {
	display: block;
	height: auto;
}

/*header end*/

/*main starts*/

main {
	margin: 2rem 0;
}

main section.bg1 {
	background-color: var(--color-secondary-1);
}

main section.bg2 {
	background-color: var(--color-secondary-2);
}

main section div.brand-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 2rem;
	margin-top: 1rem;
}

main section div.brand-grid img {
	width: 100%;
}

main section.services div.service {
	padding: 1rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

main section.services div.service div.content {
	display: flex;
	flex-direction: column; /* Ensures the content stacks vertically */
	justify-content: center; /* Vertically aligns the content */
}

main section.services div.service div.content p.num {
	font-size: 3.5rem;
	font-weight: bolder;
}

main section.services div.service.reverse div.content {
	order: -1;
}

main section.services div.service div.content > p {
	margin: 1rem 0;
}

main section.services div.service div.img img {
	width: 100%;
	border-radius: 2rem;
}

div.grid5 {
	display: grid;
	grid-template-columns: repeat(5, minmax(12rem, 1fr));
	margin: 1.5rem 0;
}

div.grid5 > div {
	padding: 1rem;
	border-right: 1px solid var(--color-bg-dark);
	overflow-x: scroll;
	overflow-x: hidden;
}

div.grid5 > div:first-child {
	border-left: 1px solid var(--color-bg-dark);
}

div.grid5 > div * {
	font-size: 14px;
}

div.grid5 > div > h4 {
	border-bottom: 2px solid var(--color-bg-dark);
	padding-bottom: 0.5rem;
	margin-bottom: 0.5rem;
}

/*profile card start */

div.card.profile > div.title {
	display: flex;
	flex-direction: row;
	gap: 1rem;
	margin-bottom: 1rem;
}

div.card.profile > div.title > div.tiny {
	flex: 1;
}

div.card.profile > div.title > div.huge {
	flex: 9;
	padding-top: 1rem;
}

div.card.profile > div.title > div > h4 {
	margin: 0;
}

/*profile card end*/

/* forms */

form#loginform {
	display: block; 
	margin: 0 auto; 
	width: 90%; 
	max-width: 400px; 
	border: 1px solid black;
	padding: 1rem;
	border-radius: 0.5rem;
}

form#loginform hr {
	margin: 1rem auto;
}

form#loginform div.field {
	margin-bottom: 1rem;
}

form#loginform div.field label {
	font-weight: bold;
}

form#loginform div.field input {
	padding: 1rem;
	border: 1px solid black;
	border-radius: 0.5rem;
	display: block;
	width: 100%;
	margin-top: 0.5rem;
}

form#loginform div.field button {
	display: block;
	background-color: var(--color-bg-dark);
	color: var(--color-bg-light);
	width: 100%;
}

/*main ends*/

/*footer starts*/

footer {
	background-color: var(--color-bg-dark);
	margin-top: 2rem;
	padding: 1rem;
}

footer * {
	color: var(--color-bg-light);
	text-align: center;
}

footer section img.logo {
	height: 5rem;
	display: block;
	margin: 0 auto;
}

footer section nav ul {
	list-style: none;
}

footer section nav ul li {
	display: inline-block;
	margin: 0.5rem;
}

footer section nav ul li a {
	text-decoration: none;
}

footer section nav ul li a:hover {
	text-decoration: underline;
}

footer section p.annot {
	font-size: 0.75rem;
}

footer section p.annot a {
	font-weight: bolder;
	font-size: 0.75rem;
}

footer section {
	margin-bottom: 0;
}

/*footer ends*/


/*responsive start*/

@media only screen and (device-width < 640px) {
	* {
		font-size: 14px;
	}

	.show-phone {
		display: block !important;
	}

	.show-desktop {
		display: none !important;
	}

	header section div.logo {
		float: none;
		display: block;
	}

	header section img#logo {
		display: block;
		margin: 0 auto;
	}

	div.crossgrid p {
		font-size: 12px
	}

	main section div.brand-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 1rem;
	}

	main section.services div.service {
		max-width: 90%;
		grid-template-columns: 1fr;
	}

	main section.services div.service.reverse div.content {
		order: 1;
	}

	main section div.grid5 {
		grid-template-columns: repeat(5, minmax(16rem, 1fr));
	}

	main section div.card.profile > div.title {
		flex-direction: column;
		gap: 0;
	}

	main section div.card.profile > div.title > * {
		flex: 1 !important;
		width: 100%;
	}

	.swiper .swiper-button-next, .swiper .swiper-button-prev {
		display: none;
	}
}

/* Tile-based small screen nav styles */
@media (max-width: 768px) {
  .tile-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 2rem 0.5rem 0.5rem 0.5rem;
    background: var(--color-bg-light);
    border-radius: 1.5rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
    transition: opacity 0.25s, transform 0.25s;
  }
  .tile-nav-item {
    display: flex;
	margin: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: var(--color-font-light) !important;
    border-radius: 1rem;
    padding: 1.2rem 0.5rem 0.7rem 0.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 1px 6px rgba(112,140,117,0.08);
    text-decoration: none !important;
    transition: background 0.2s, box-shadow 0.2s;
    min-width: 0;
	width: 100%;
    min-height: 90px;
	height: 90%;
  }
  .tile-nav-item i.fa {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--color-font-light) !important;
  }
  .tile-nav-item.tile-nav-close {
    background: var(--color-bg-dark);
    color: var(--color-font-light) !important;
  }
  .tile-nav-item.tile-nav-close i.fa {
    color: var(--color-font-light) !important;
  }
  .tile-nav-item:active, .tile-nav-item:hover {
    background: var(--color-secondary-1);
    color: var(--color-bg-dark) !important;
    box-shadow: 0 2px 12px rgba(112,140,117,0.15);
  }
  .tile-nav-item:active i.fa, .tile-nav-item:hover i.fa {
    color: var(--color-bg-dark) !important;
  }
  #overlay {
    padding: 0.5rem !important;
    background: rgba(200,200,200,0.7);
    backdrop-filter: blur(10px);
  }
  #modalnav {
    right: 0.5rem !important;
    left: 0.5rem !important;
    bottom: 2rem !important;
    width: auto !important;
    max-width: 500px;
    margin: 0 auto;
  }
  .tile-nav-bottom-btn {
    display: block;
    width: 100%;
    max-width: 500px;
    margin: 0.5rem auto 0.5rem auto;
    background: var(--color-bg-dark);
    color: var(--color-font-light) !important;
    border: none;
    border-radius: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.7rem 0 0.7rem 0;
    text-align: center;
    box-shadow: 0 1px 6px rgba(112,140,117,0.08);
    transition: background 0.2s, box-shadow 0.2s;
    cursor: pointer;
  }
  .tile-nav-bottom-btn i.fa {
    color: var(--color-font-light) !important;
    font-size: 1.5rem;
    margin-right: 0.5rem;
    vertical-align: middle;
  }
  .tile-nav-bottom-btn:active, .tile-nav-bottom-btn:hover {
    background: var(--color-secondary-1);
    color: var(--color-bg-dark) !important;
    box-shadow: 0 2px 12px rgba(112,140,117,0.15);
  }
  .tile-nav-bottom-btn:active i.fa, .tile-nav-bottom-btn:hover i.fa {
    color: var(--color-bg-dark) !important;
  }
  .tile-nav-grid,
  .tile-nav-item,
  .tile-nav-item *,
  .tile-nav-bottom-btn,
  .tile-nav-bottom-btn *,
  .tile-nav-item img {
    color: var(--color-font-light) !important;
    fill: var(--color-font-light) !important;
  }
  .tile-nav-item span {
    color: var(--color-font-light) !important;
  }
  .tile-nav-item img {
    filter: brightness(0) invert(1);
  }
  .menu-fade-in {
    animation: fadeInTiles 0.25s cubic-bezier(0.4,0,0.2,1);
  }
  .menu-fade-out {
    animation: fadeOutTiles 0.2s cubic-bezier(0.4,0,0.2,1);
  }
  .menu-fade-in-down {
    animation: fadeInDownTiles 0.25s cubic-bezier(0.4,0,0.2,1);
  }
  @keyframes fadeInTiles {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @keyframes fadeOutTiles {
    from {
      opacity: 1;
      transform: translateY(0);
    }
    to {
      opacity: 0;
      transform: translateY(30px);
    }
  }
  @keyframes fadeInDownTiles {
    from {
      opacity: 0;
      transform: translateY(-30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .tile-nav-title {
    text-align: center;
    font-size: 1.5rem;
	text-shadow: 2px 1px 2px grey;
    font-weight: 700;
    color: var(--color-font-light);
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
  }
}

/*responsive end*/