/*!
Theme Name: AgentDesk
Theme URI: https://agentdesk.co.in/
Author: AgentDesk
Description: Custom AgentDesk theme built on Underscores, with ACF Blocks (v3) for every page section and Gravity Forms styling. Requires ACF PRO 6.6+.
Version: 1.0.35
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: agentdesk
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

Based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Design styles live in assets/css/main.css. This file only holds the theme
header and the WordPress utility classes the design CSS does not cover.
*/

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

/* Block visuals
--------------------------------------------- */

/* An uploaded image used in place of a mockup in a block's visual column. */
.row__img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-lg);
}

/* WordPress admin bar
--------------------------------------------- */

/* Logged-in users: keep the sticky header and progress bar below the admin bar. */
@media (min-width: 601px) {
	.admin-bar .header,
	.admin-bar .progress {
		top: 46px;
	}

	html:has(body.admin-bar) {
		scroll-padding-top: 136px;
	}
}

@media (min-width: 783px) {
	.admin-bar .header,
	.admin-bar .progress {
		top: 32px;
	}

	html:has(body.admin-bar) {
		scroll-padding-top: 122px;
	}
}

/* Brand logo and icon
--------------------------------------------- */

/* Logo artwork (assets/images/logo.svg, logo-white.svg) or the Customizer's Site Logo. */
.logo__img,
.custom-logo {
	display: block;
	width: auto;
	height: 40px;
}

@media (max-width: 599px) {
	.header .logo__img,
	.header .custom-logo {
		height: 34px;
	}
}

/* Widget figures (KPI tiles, family totals): the display font's tabular figures are very
   wide, so use its normal figures, and size the numbers by the width of their row so
   long amounts such as ₹1,85,000 stay inside their tile. */
.kpis,
.fam__totals { container-type: inline-size; }

.kpi b,
.fam__totals b {
	display: block;
	overflow: hidden;
	font-variant-numeric: normal;
	white-space: nowrap;
	text-overflow: clip;
}

.kpi b { font-size: clamp(.95rem, 5.2cqi, 1.3rem); }
.kpis--3 .kpi b { font-size: clamp(.95rem, 4.6cqi, 1.3rem); }
.fam__totals b { font-size: clamp(.95rem, 4.6cqi, 1.35rem); }

/* Four tiles in a row (same breakpoint as .kpis--4 in main.css). */
@media (min-width: 520px) {
	.kpis--4 .kpi b { font-size: clamp(.85rem, 3.6cqi, 1.3rem); }
}

/* Calm pastel palette
   ---------------------------------------------------------------
   An accent set on an element (style="--c:var(--teal)", from agentdesk_accent_style()
   or a visual) becomes its pastel for backgrounds, with dark text on it (--c-on).
   --c-mid is the stronger tone for bars, lines and dots; --c-text / --c-title / --c-ink
   are the deep shade for text and icons on white. Deep plum is for buttons and links. */
:root { --c-on: var(--ink); }

[style*="--c:var(--saffron)"], [style*="--c: var(--saffron)"] { --c: var(--saffron-soft) !important; --c-mid: var(--saffron-mid); --c-text: var(--saffron); --c-title: var(--saffron); --c-ink: var(--saffron-ink) !important; }
[style*="--c:var(--teal)"], [style*="--c: var(--teal)"] { --c: var(--teal-soft) !important; --c-mid: var(--teal); --c-text: var(--teal-ink); --c-title: #A67800; --c-ink: var(--teal-ink) !important; }
[style*="--c:var(--rani)"], [style*="--c: var(--rani)"] { --c: var(--rani-soft) !important; --c-mid: var(--rani); --c-text: var(--rani-ink); --c-title: var(--rani-ink); --c-ink: var(--rani-ink) !important; }
[style*="--c:var(--indigo)"], [style*="--c: var(--indigo)"] { --c: var(--indigo-soft) !important; --c-mid: var(--indigo); --c-text: var(--indigo-ink); --c-title: var(--indigo-ink); --c-ink: var(--indigo-ink) !important; }
[style*="--c:var(--sky)"], [style*="--c: var(--sky)"] { --c: var(--sky-soft) !important; --c-mid: var(--sky); --c-text: var(--sky-ink); --c-title: var(--sky-ink); --c-ink: var(--sky-ink) !important; }
[style*="--c:var(--plum)"], [style*="--c: var(--plum)"] { --c: var(--plum-soft) !important; --c-mid: var(--plum); --c-text: var(--plum-ink); --c-title: var(--plum-ink); --c-ink: var(--plum-ink) !important; }
[style*="--c:var(--coral)"], [style*="--c: var(--coral)"] { --c: var(--coral-soft) !important; --c-mid: var(--coral); --c-text: var(--coral-ink); --c-title: var(--coral-ink); --c-ink: var(--coral-ink) !important; }
[style*="--c:var(--leaf)"], [style*="--c: var(--leaf)"] { --c: var(--leaf-soft) !important; --c-mid: var(--leaf); --c-text: var(--leaf-ink); --c-title: var(--leaf-ink); --c-ink: var(--leaf-ink) !important; }
[style*="--c:var(--marigold)"], [style*="--c: var(--marigold)"],
[style*="--c:var(--marigold-ink)"], [style*="--c: var(--marigold-ink)"] { --c: var(--marigold-soft) !important; --c-mid: var(--marigold); --c-text: var(--marigold-ink); --c-title: #A67800; --c-ink: var(--marigold-ink) !important; }
[style*="--c:var(--ink)"], [style*="--c: var(--ink)"] { --c-on: var(--white); --c-mid: var(--ink); --c-text: var(--ink); --c-title: var(--ink); }

/* Icons in coloured squares use the deep shade of their pastel. */
.bcard__ic,
.dd__ic,
.nf-suggest__ic,
.ccard .ic { color: var(--c-text, var(--c-on)); }

/* Badge in a menu label, from "[text]" in the title, e.g. "Mobile App [Soon]". */
.menu-badge {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 7px;
	border-radius: 999px;
	background: var(--tint-saffron);
	color: var(--saffron-ink);
	font-size: .66rem;
	font-weight: 700;
	letter-spacing: .04em;
	line-height: 1.4;
	text-transform: uppercase;
	vertical-align: 2px;
}

.footer .menu-badge {
	background: rgb(246 213 122 / .16);
	color: var(--marigold);
}

/* Closing call to action on the soft blush background: the dark button is plum. */
.final .btn--dark {
	background: var(--saffron);
	color: var(--white);
	box-shadow: 0 6px 18px rgb(94 58 122 / .22);
}

.final .btn--dark:hover { background: #4A2D61; }

/* Footer
   ---------------------------------------------------------------
   Three bands with room to breathe: brand + social on top, the link
   columns across the full width, then copyright / Powered by / tagline. */
.footer { padding-block: clamp(56px, 7vw, 88px) 28px; }

.footer__top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px 48px;
	padding-bottom: clamp(32px, 4vw, 44px);
	border-bottom: 1px solid #43385A;
}

.footer__brand {
	display: grid;
	align-content: start;
	gap: 16px;
	max-width: 440px;
}

.footer__brand .logo { justify-self: start; }

.footer__brand p {
	color: #D2C8DD;
	font-size: .98rem;
	line-height: 1.65;
}

.footer__aside {
	display: grid;
	justify-items: end;
	gap: 16px;
}

.footer__aside .footer__status { margin: 0; color: #D9D0E3; }

/* Below the wide layout the badge and icons sit under the description: align left. */
@media (max-width: 959px) {
	.footer__aside { justify-items: start; }
}

/* Link columns: two on phones (Product across both), four on wider screens with
   Product's long list in two short columns. */
.footer__menus {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 36px 28px;
	padding-top: clamp(36px, 4.5vw, 52px);
}

.footer__nav--split { grid-column: 1 / -1; }

/* Tablets: Product across the top, the three short menus side by side below. */
@media (min-width: 600px) and (max-width: 959px) {
	.footer__menus { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
	.footer__menus {
		grid-template-columns: 2fr 1fr 1fr 1.25fr;
		gap: 48px;
	}

	.footer__nav--split { grid-column: auto; }
}

.footer .footer__nav {
	display: block;
}

.footer .footer__h {
	margin: 0 0 16px;
	color: var(--white);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	opacity: .95;
}

.footer__links {
	display: grid;
	align-content: start;
	gap: 4px;
}

/* Filled top to bottom, so the list still reads in menu order. */
.footer__nav--split .footer__links {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: repeat(var(--rows, 5), auto);
	grid-auto-flow: column;
	column-gap: 28px;
}

.footer .footer__links a {
	display: block;
	min-height: 0;
	padding: 6px 0;
	color: #D9D0E3;
	font-size: .95rem;
	line-height: 1.4;
	text-decoration: none;
	transition: color .15s;
}

.footer .footer__links a:hover,
.footer .footer__links a:focus-visible {
	color: var(--white);
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Bottom bar: copyright left, "Powered by Everspan" centred, tagline right. */
.footer .footer__base {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 10px 24px;
	margin-top: clamp(40px, 5vw, 56px);
	padding-top: 22px;
	border-top: 1px solid #43385A;
	color: #B5A9C4;
	font-size: .85rem;
}

.footer__base > :first-child { justify-self: start; }
.footer__base > :last-child { justify-self: end; }

.footer__powered a {
	color: var(--white);
	font-weight: 700;
	text-decoration: none;
	border-bottom: 1px solid rgb(255 255 255 / .35);
	transition: border-color .15s, color .15s;
}

.footer__powered a:hover,
.footer__powered a:focus-visible {
	color: var(--marigold);
	border-color: var(--marigold);
}

@media (max-width: 719px) {
	.footer .footer__base {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
	}

	.footer__base > :first-child,
	.footer__base > :last-child { justify-self: center; }
}

/* Social profile icons (Theme Settings → SEO Settings → Official profiles and websites). */
.footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer__social a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgb(255 255 255 / .16);
	border-radius: 50%;
	color: #D9D0E3;
	transition: background .2s, border-color .2s, color .2s, transform .2s ease-out;
}

.footer__social a:hover,
.footer__social a:focus-visible {
	border-color: var(--marigold);
	background: var(--marigold);
	color: var(--ink);
	transform: translateY(-2px);
}

/* App icon in the centre of the closing call-to-action ring and the home "problem" card. */
.ring__icon {
	position: relative;
	width: 112px;
	height: 112px;
	filter: drop-shadow(0 12px 28px rgb(21 19 58 / .25));
}

.hub__icon {
	display: block;
	width: 56px;
	height: 56px;
}
