/*
Theme Name: Hello Elementor Child - Aahana EV
Theme URI: https://aahanaevehicles.com
Description: Custom child theme of Hello Elementor tailored for the Aahana EV (Electric Vehicles) website. Provides custom styling, scripts, and hooks while preserving parent theme updates.
Author: Deepayan Ghosh
Author URI: https://deepayanghosh.com/
Template: hello-elementor
Version: 1.0.0
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: hello-elementor-child
*/

/* ==========================================================================
   Aahana EV Brand Design Tokens & Variables
   ========================================================================== */

:root {
	/* Brand Colors */
	--aahana-primary: #ec1919;

	/* Surfaces & Text */
	--aahana-bg: #f5f5f5;
	--aahana-surface: #fff;
	--aahana-ink: #1a1a1a;
	--aahana-ink-muted: #6b6b6b;

	/* Shape */
	--aahana-radius: 14px;
	--aahana-card-shadow: 0 8px 20px 0 rgba(173, 173, 173, 0.1);

	/* Typography */
	--aahana-font-heading: "Blinker", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ==========================================================================
   Vehicle category archive (/e-rickshaw, /e-scooty, /e-cart, /e-trike)
   ========================================================================== */

body.tax-vehicle_type {
	background-color: var(--aahana-bg);
}

.aahana-vehicle-archive {
	max-width: 1200px;
	margin-inline: auto;
	padding: 3rem 1.25rem 4.5rem;
}

.aahana-vehicle-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
	gap: 1.5rem;
}

.aahana-vehicle-card {
	display: flex;
	flex-direction: column;
	/* Inset so the image floats inside the card, as in the design. */
	padding: 0.5rem;
	border-radius: var(--aahana-radius);
	background: var(--aahana-surface);
	box-shadow: var(--aahana-card-shadow);
	text-align: center;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.aahana-vehicle-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 30px 0 rgba(173, 173, 173, 0.28);
}

.aahana-vehicle-card__media {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: var(--aahana-radius);
	background: #efefef;
}

.aahana-vehicle-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.aahana-vehicle-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
}

.aahana-vehicle-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	padding: 1.25rem 1rem 1.4rem;
}

.aahana-vehicle-card__title {
	margin: 0;
	font-family: var(--aahana-font-heading);
	font-size: 2rem;
	font-weight: 600;
	line-height: 1.25;
	color: var(--aahana-ink);
}

.aahana-vehicle-card__title a {
	color: inherit;
	text-decoration: none;
}

.aahana-vehicle-card__excerpt {
	margin: 0;
	color: var(--aahana-ink-muted);
}

.aahana-vehicle-card__cta {
	margin-top: auto;
	padding: 12px 24px;
	border: 1px solid var(--aahana-primary);
	border-radius: 6px;
	color: var(--aahana-ink);
	font-size: 0.95rem;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.aahana-vehicle-card__cta:hover,
.aahana-vehicle-card__cta:focus-visible {
	background-color: var(--aahana-primary);
	color: #fff;
	text-decoration: none;
}

.aahana-vehicle-archive__empty {
	text-align: center;
	color: var(--aahana-ink-muted);
}

/* ==========================================================================
   Category archive hero + intro
   ========================================================================== */

/* This template deliberately omits the parent theme's .site-main class: that
   class is capped at 1140px by `body:not([class*="elementor-page-"]) .site-main`,
   which would box in the hero. The archive sets its own widths instead --
   the hero runs edge to edge, .aahana-vehicle-archive centres the grid. */
.aahana-archive-main {
	width: 100%;
	margin-inline: auto;
}

/* No text sits over the artwork, so the image keeps its own aspect ratio
   instead of being cropped to a fixed height. */
.aahana-hero {
	width: 100%;
}

.aahana-hero__picture,
.aahana-hero__image {
	display: block;
	width: 100%;
	height: auto;
}

.aahana-archive-intro {
	max-width: 48rem;
	margin-inline: auto;
	padding: 3rem 1.25rem 0;
	text-align: center;
}

.aahana-archive-intro__title {
	margin: 0;
	font-family: var(--aahana-font-heading);
	font-size: clamp(2.5rem, 5vw, 3.5rem);
	font-weight: 600;
	line-height: 1.15;
	color: var(--aahana-ink);
}

.aahana-archive-intro__text {
	margin: 0.75rem 0 0;
	font-size: clamp(1rem, 1.5vw, 1.125rem);
	line-height: 1.6;
	color: var(--aahana-ink-muted);
}

@media (prefers-reduced-motion: reduce) {

	.aahana-vehicle-card,
	.aahana-vehicle-card__cta {
		transition: none;
	}
}