/* =====================================================================
   Camtom® — Download section + "Download" menu buttons
   Permanent styles (site's normal colours). The Diwali look for these
   lives in css/diwali.css and is layered on top while that file is loaded.
   ===================================================================== */


/* ---------------- Menu: main "Download" button (tablet / desktop) ---------------- */
.navbar-custom .nav-item .nav-link.nav-download {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	margin-left: .5rem;
	padding: .35rem 1.1rem;
	border-radius: 2rem;
	background: #00c9db;
	color: #fff;
	line-height: 1.5rem;
	white-space: nowrap;
	transition: all .2s ease;
}

.navbar-custom .nav-item .nav-link.nav-download:hover,
.navbar-custom .nav-item .nav-link.nav-download.active,
.navbar-custom.top-nav-collapse .nav-item .nav-link.nav-download:hover,
.navbar-custom.top-nav-collapse .nav-item .nav-link.nav-download.active {
	background: #fff;
	color: #00c9db;
}

/* Phones get the always-visible button next to the menu icon instead */
@media (max-width: 767.98px) {
	.navbar-custom .nav-item-download { display: none; }
}

/* Tighten the menu a little on tablets so the extra button fits on one line */
@media (min-width: 768px) and (max-width: 991.98px) {
	.navbar-custom .nav-item .nav-link {
		padding-right: .5rem;
		padding-left: .5rem;
	}

	.navbar-custom .nav-item .nav-link.nav-download {
		margin-left: .25rem;
		padding: .35rem .85rem;
	}
}


/* ---------------- Menu: compact "Download" button on phones ---------------- */
.nav-download-mobile {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	margin-right: .5rem;
	margin-left: auto;
	padding: .45rem .95rem;
	border-radius: 2rem;
	background: #00c9db;
	color: #fff;
	font: 700 .75rem/1.25rem "Montserrat", sans-serif;
	letter-spacing: .03em;
	text-decoration: none;
	white-space: nowrap;
	transition: all .2s ease;
}

.nav-download-mobile:hover,
.nav-download-mobile:focus {
	background: #fff;
	color: #00c9db;
	text-decoration: none;
}

@media (max-width: 399.98px) {
	.nav-download-mobile { padding: .55rem .75rem; }
	.nav-download-mobile span { display: none; }
}

@media (min-width: 768px) {
	.nav-download-mobile { display: none; }
}


/* ---------------- Download section ---------------- */
.download-apps {
	padding-top: 6.5rem;
	padding-bottom: 6rem;
	background-color: #2f2c3d;
	text-align: center;
}

.download-apps h2 { margin-bottom: 1.125rem; }

.download-apps .p-heading { margin-bottom: 3.75rem; }

.dl-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.75rem 1.5rem;
}

@media (max-width: 991.98px) {
	.dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	/* Put the visitor's own platform first when the cards stack */
	.dl-card.is-recommended { order: -1; }
}

@media (max-width: 575.98px) {
	.dl-grid { grid-template-columns: 1fr; }
}

.dl-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 2.25rem 1.5rem 1.75rem;
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: 16px;
	background: #262431;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.dl-card:hover {
	transform: translateY(-8px);
	border-color: rgba(0, 201, 219, .5);
	box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}

.dl-card.is-recommended {
	border-color: #00c9db;
	box-shadow: 0 0 0 2px rgba(0, 201, 219, .35), 0 18px 40px rgba(0, 0, 0, .35);
}

.dl-badge {
	display: none;
	position: absolute;
	top: -12px;
	left: 50%;
	padding: .2rem .85rem;
	border-radius: 1rem;
	background: #00c9db;
	color: #fff;
	font: 700 .65rem/1.1rem "Montserrat", sans-serif;
	letter-spacing: .06em;
	text-transform: uppercase;
	white-space: nowrap;
	transform: translateX(-50%);
}

.dl-card.is-recommended .dl-badge { display: inline-block; }

.dl-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	margin-bottom: 1.25rem;
	border-radius: 50%;
	background: #00c9db;
	color: #fff;
	font-size: 2.2rem;
}

.dl-title { margin-bottom: .5rem; }

.dl-desc {
	flex-grow: 1;
	margin-bottom: 1.5rem;
	opacity: .85;
}

.dl-btn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	width: 100%;
	margin-bottom: .65rem;
	padding: .85rem 1rem;
	border: 2px solid #00c9db;
	border-radius: 2rem;
	background: #00c9db;
	color: #fff;
	font: 700 .8rem/1.2rem "Montserrat", sans-serif;
	text-decoration: none;
	transition: all .2s ease;
}

.dl-btn:hover,
.dl-btn:focus {
	background: transparent;
	color: #00c9db;
	text-decoration: none;
}

.dl-btn .fab,
.dl-btn .fas { font-size: 1.05rem; }

/* The Mac chip we detected for this visitor */
.dl-btn.is-match { box-shadow: 0 0 0 3px rgba(0, 201, 219, .35); }

.dl-btn.is-match::after {
	content: "Your Mac";
	position: absolute;
	top: -9px;
	right: 14px;
	padding: 0 .5rem;
	border-radius: 1rem;
	background: #fff;
	color: #262431;
	font-size: .6rem;
	line-height: 1rem;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.dl-meta {
	margin: .35rem 0 0;
	font-size: .75rem;
	line-height: 1.15rem;
	opacity: .65;
}

.dl-help {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: .75rem 2rem;
	margin-top: 3rem;
}

.dl-help p {
	margin: 0;
	opacity: .9;
}

.dl-help .fas {
	margin-right: .35rem;
	color: #00c9db;
}

.dl-help-link {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	border-bottom: 1px solid rgba(241, 241, 248, .4);
	color: #f1f1f8;
	font-weight: 700;
	text-decoration: none;
}

.dl-help-link:hover {
	border-color: #00c9db;
	color: #00c9db;
	text-decoration: none;
}

.dl-help-link .fab { color: #ff3b3b; }
