/*
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/*
 * Same layer order as Winden's Tailwind output. This file loads first, so
 * declaring it here keeps the order stable:
 *   - rules inside @layer base  → defaults that Tailwind classes override
 *   - unlayered rules (header, footer) → always win over Tailwind classes,
 *     so keep those scoped to theme classes, never bare elements.
 */
@layer theme, base, components, utilities;

/* ==========================================================================
   Design tokens — the single source for colors and fonts.
   Winden's Main Style maps these to Tailwind names with `@theme inline`
   (e.g. --color-brand-600: var(--as-brand-600) → bg-brand-600).
   ========================================================================== */

:root {
	/* Fonts (files are loaded in functions.php) */
	--as-font-sans: "Plus Jakarta Sans", "Noto Sans Devanagari", ui-sans-serif, system-ui, sans-serif;
	--as-font-display: "Bricolage Grotesque", "Noto Sans Devanagari", ui-sans-serif, system-ui, sans-serif;

	/* Warm clay brand palette */
	--as-brand-50: #faf5ee;
	--as-brand-100: #f3e8dd;
	--as-brand-200: #ddc5b3;
	--as-brand-300: #c7a38c;
	--as-brand-400: #a17c68;
	--as-brand-500: #ac6d51;
	--as-brand-600: #93583f;
	--as-brand-700: #79452f;
	--as-brand-900: #44382f;

	/* Text */
	--as-ink: #3e342e;
	--as-ink-soft: #67594d;
	--as-ink-muted: #807267;

	/* Borders */
	--as-line: #ddcdbd;
	--as-line-soft: #ede2d7;

	/* Accents */
	--as-sun: #d9bd81;
	--as-clay: #a16249;

	/* Score bands */
	--as-score-high: #738d62;
	--as-score-high-text: #4e6a41;
	--as-score-high-soft: #e5eadc;
	--as-score-medium: #b38e3e;
	--as-score-medium-text: #856426;
	--as-score-medium-soft: #f3e9d3;
	--as-score-low: #be846c;
	--as-score-low-text: #a16249;
	--as-score-low-soft: #f1e0d5;
}

/* ==========================================================================
   Base element defaults (Tailwind classes override these)
   ========================================================================== */

@layer base {

	body {
		font-family: var(--as-font-sans);
	}

	h1 {
		font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
		line-height: 1.2;
		font-weight: 700;
		letter-spacing: -0.02em;
		margin-block: 0.67em;
	}

	h1,
	h2 {
		font-family: var(--as-font-display);
	}
}

/* ==========================================================================
   Theme roles (header, footer)
   ========================================================================== */

:root {
	--as-container: 1200px;
	--as-gutter: 1.25rem;
	--as-header-height: 4rem;

	--as-color-text: var(--as-ink);
	--as-color-muted: var(--as-ink-muted);
	--as-color-accent: var(--as-brand-600);
	--as-color-border: var(--as-line);
	--as-color-bg: #ffffff;

	--as-footer-bg: #eadbcc;
	--as-footer-text: var(--as-ink-soft);
	--as-footer-heading: var(--as-ink);
	--as-footer-border: var(--as-brand-200);
	--as-footer-muted: var(--as-ink-muted);

	--as-font: var(--as-font-sans);
}

/* Landing pages (no theme header): let Tailwind sections span the full width. */
body.as-landing .site-main {
	max-width: none;
	padding: 0;
}

body.as-landing .site-main .page-content {
	margin: 0;
}

/* Score meter component; motion is optional for visitors. */
.as-score-meter[data-score-band="high"] {
	--as-score-color: var(--as-score-high);
	--as-score-track: var(--as-score-high-soft);
}

.as-score-meter[data-score-band="medium"] {
	--as-score-color: var(--as-score-medium);
	--as-score-track: var(--as-score-medium-soft);
}

.as-score-meter[data-score-band="low"] {
	--as-score-color: var(--as-score-low);
	--as-score-track: var(--as-score-low-soft);
}

.as-score-meter-track {
	stroke: var(--as-score-track, var(--as-score-high-soft));
}

.as-score-meter-progress {
	stroke: var(--as-score-color, var(--as-score-high));
	stroke-dasharray: 452.4;
	stroke-dashoffset: 452.4;
	animation: as-score-reveal 1.4s ease-out 0.2s forwards;
}

@keyframes as-score-reveal {
	to { stroke-dashoffset: var(--as-score-end, 126.7); }
}

@media (prefers-reduced-motion: reduce) {
	.as-score-meter-progress {
		animation: none;
		stroke-dashoffset: var(--as-score-end, 126.7);
	}
}

/* FAQ accordion (<details class="as-faq">): slide the answer open and closed.
   The height slide needs ::details-content (Chrome/Edge 131+); other browsers
   still get the fade-in. */
.as-faq {
	interpolate-size: allow-keywords;
}

.as-faq::details-content {
	block-size: 0;
	overflow: hidden;
	transition: block-size 0.35s ease, content-visibility 0.35s allow-discrete;
}

.as-faq[open]::details-content {
	block-size: auto;
}

.as-faq[open] > summary + * {
	animation: as-faq-reveal 0.35s ease both;
}

@keyframes as-faq-reveal {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.as-faq::details-content {
		transition: none;
	}

	.as-faq[open] > summary + * {
		animation: none;
	}
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link.screen-reader-text:focus {
	top: 0.5rem;
	left: 0.5rem;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	margin: 0;
	clip: auto;
	background: var(--as-color-bg);
	color: var(--as-color-text);
	font: 600 0.875rem/1 var(--as-font);
	text-decoration: none;
	border-radius: 0.375rem;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
	position: relative;
	z-index: 50;
	padding: 0 1.5rem;
	background: var(--as-brand-50);
	color: var(--as-ink);
	font-family: var(--as-font);
}

.site-header a {
	text-decoration: none;
}

.site-header .header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	max-width: 1180px;
	min-height: 5rem;
	margin: 0 auto;
}

/* Logo */

.site-header .site-logo {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	gap: 0.75rem;
	color: var(--as-ink);
}

.site-header .site-logo-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 0.75rem;
	background: var(--as-brand-600);
	color: #fff;
}

.site-header .site-logo-text {
	font-size: 1.4375rem;
	font-weight: 800;
	letter-spacing: -0.045em;
}

.site-header .site-logo-dot {
	color: var(--as-brand-600);
}

/* Menu toggle (mobile) */

.site-header .menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid var(--as-line);
	border-radius: 0.875rem;
	background: #fff;
	color: var(--as-ink);
	cursor: pointer;
}

.site-header .menu-toggle:focus-visible,
.site-header a:focus-visible {
	outline: 2px solid var(--as-brand-600);
	outline-offset: 3px;
}

.site-header .menu-toggle .icon-close,
.site-header .menu-toggle[aria-expanded="true"] .icon-menu {
	display: none;
}

.site-header .menu-toggle[aria-expanded="true"] .icon-close {
	display: block;
}

/* Nav */

.site-header .site-nav-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-header .site-nav-menu a {
	display: block;
	color: var(--as-ink-soft);
	font-size: 0.8125rem;
	font-weight: 700;
	transition: color 0.15s ease;
}

.site-header .site-nav-menu a:hover,
.site-header .site-nav-menu .current-menu-item > a {
	color: var(--as-brand-600);
}

.site-header .site-header-cta {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 0.75rem 1.25rem;
	border-radius: 999px;
	background: var(--as-brand-600);
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 700;
	transition: background-color 0.15s ease;
}

.site-header .site-header-cta:hover {
	background: var(--as-brand-700);
	color: #fff;
}

/* Mobile and tablet: dropdown panel under the header */
@media (max-width: 1023px) {

	.site-header .site-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 1rem;
		right: 1rem;
		padding: 0.75rem 1.25rem 1.25rem;
		border-radius: 1.5rem;
		background: #fff;
		box-shadow: 0 20px 50px rgb(68 56 47 / 0.14);
	}

	.site-header .site-nav.is-open {
		display: block;
	}

	.site-header .site-nav-menu a {
		padding: 0.875rem 0;
		border-bottom: 1px solid var(--as-line-soft);
		font-size: 0.9375rem;
	}

	.site-header .site-header-cta {
		width: 100%;
		margin-top: 1rem;
		padding: 0.9375rem 1.25rem;
		font-size: 0.875rem;
	}
}

/* Desktop: inline menu */
@media (min-width: 1024px) {

	.site-header {
		padding: 0 2.5rem;
	}

	.site-header .header-inner {
		min-height: 6rem;
	}

	.site-header .menu-toggle {
		display: none;
	}

	/* Logo, menu and button sit side by side, spread evenly like the homepage header. */
	.site-header .site-nav {
		display: contents;
	}

	.site-header .site-nav-menu {
		display: flex;
		align-items: center;
		gap: 2rem;
	}
}

@media (min-width: 1280px) {

	.site-header .site-nav-menu {
		gap: 2.5rem;
	}
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	padding: 0 1.5rem;
	border-top: 1px solid var(--as-footer-border);
	background: var(--as-footer-bg);
	color: var(--as-footer-text);
	font-family: var(--as-font);
	font-size: 0.9375rem;
	line-height: 1.6;
}

.site-footer a {
	color: var(--as-footer-text);
	text-decoration: none;
	transition: color 0.15s ease;
}

.site-footer a:hover {
	color: var(--as-brand-600);
}

.site-footer .footer-inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 5rem 0 2rem;
}

/* Trust strip */
.site-footer .footer-trust {
	display: grid;
	gap: 1rem;
	margin: 0 0 3.5rem;
	padding: 0;
	list-style: none;
}

.site-footer .footer-trust-item {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	padding: 1.125rem 1.25rem;
	border-radius: 1.25rem;
	background: rgb(255 255 255 / 0.55);
	box-shadow: 0 10px 28px rgb(68 56 47 / 0.05);
}

.site-footer .footer-trust-icon {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 0.875rem;
	background: var(--as-brand-600);
	color: #fff;
}

.site-footer .footer-trust-title {
	display: block;
	color: var(--as-footer-heading);
	font-size: 0.9375rem;
	font-weight: 700;
}

.site-footer .footer-trust-text {
	display: block;
	color: var(--as-footer-muted);
	font-size: 0.8125rem;
}

.site-footer .footer-main {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2.5rem 1.5rem;
	padding-bottom: 2.75rem;
}

/* Phones: brand and contact span the row, Explore and Company sit side by side. */
.site-footer .footer-branding,
.site-footer .footer-main > .footer-col:last-child {
	grid-column: 1 / -1;
}

.site-footer .footer-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--as-footer-heading);
}

.site-footer .footer-logo-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 0.75rem;
	background: var(--as-brand-600);
	color: #fff;
}

.site-footer .footer-logo-text {
	font-size: 1.4375rem;
	font-weight: 800;
	letter-spacing: -0.045em;
}

.site-footer .footer-logo-dot {
	color: var(--as-brand-600);
}

.site-footer .footer-description {
	max-width: 22rem;
	margin: 1.25rem 0 0;
	color: var(--as-footer-muted);
	font-size: 0.875rem;
}

.site-footer .footer-company {
	margin: 1.25rem 0 0;
	color: var(--as-footer-muted);
	font-size: 0.8125rem;
}

.site-footer .footer-company strong {
	color: var(--as-footer-heading);
	letter-spacing: 0.04em;
}

.site-footer .footer-heading {
	margin: 0 0 1.125rem;
	color: var(--as-clay);
	font-family: var(--as-font);
	font-size: 0.6875rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.site-footer .footer-links,
.site-footer .footer-contact {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer .footer-links {
	font-weight: 600;
}

.site-footer .footer-contact li {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
}

.site-footer .footer-contact svg {
	flex-shrink: 0;
	margin-top: 0.1875rem;
	color: var(--as-brand-600);
}

.site-footer .footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--as-footer-border);
}

.site-footer .copyright,
.site-footer .footer-made {
	margin: 0;
	color: var(--as-footer-muted);
	font-size: 0.8125rem;
}

.site-footer .footer-made {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
}

.site-footer .footer-heart {
	color: var(--as-clay);
}

@media (min-width: 768px) {

	.site-footer .footer-trust {
		grid-template-columns: repeat(3, 1fr);
	}

	.site-footer .footer-main {
		grid-template-columns: repeat(3, 1fr);
	}

	.site-footer .footer-main > .footer-col:last-child {
		grid-column: auto;
	}
}

/* Tablets: stack each service card's icon above its text so it isn't squeezed. */
@media (min-width: 768px) and (max-width: 1023px) {

	.site-footer .footer-trust-item {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (min-width: 1024px) {

	.site-footer {
		padding: 0 2.5rem;
	}

	.site-footer .footer-inner {
		padding: 6rem 0 2.25rem;
	}

	.site-footer .footer-main {
		grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
		gap: 3rem;
	}

	.site-footer .footer-branding {
		grid-column: auto;
	}
}

.site-footer .footer-company-link {
	color: var(--as-brand-600);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: var(--as-brand-300);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
}

.site-footer .footer-company-link strong {
	color: inherit;
}

.site-footer .footer-company-link:hover {
	color: var(--as-brand-700);
	text-decoration-color: currentColor;
}
