/*
 * AhmedabadMart theme styles — v1.1 design pass.
 *
 * Design plan (kept here for future-me / whoever edits this next):
 * Color: brand-fixed Navy/Green/Orange from the client brief, plus one
 *   deliberate addition — Gold (#E8B84B), used ONLY for Verified/
 *   Featured accents and the jaali motif strokes, referencing Uttarayan
 *   kite-festival gold. Never used as a general accent color.
 * Type: Manrope (display, 700/800) for headings/business names/large
 *   numbers — warmer and rounder than a tech-startup grotesk. Inter
 *   (body, 400-700) for legibility. IBM Plex Mono (500) for stat
 *   numbers/prices — "this is a measured fact," not decoration.
 * Signature: a jaali (lattice) motif inspired by Sidi Saiyyed's Mosque
 *   and Ahmedabad's stepwells — used in exactly 3 places (hero
 *   background, 2 section dividers, footer top edge). Everywhere else
 *   stays quiet and disciplined on purpose.
 * Cards: folded-corner "Featured" ribbon (clip-path triangle) instead
 *   of a generic pill badge — nods to paper/ribbon craft on Indian shop
 *   signage rather than a SaaS-dashboard badge.
 */

:root {
	--ahm-navy: #0B2A5B;
	--ahm-navy-ink: #071B3D;
	--ahm-green: #18A83B;
	--ahm-orange: #FF7A00;
	--ahm-gold: #E8B84B;
	--ahm-bg: #F6F8FB;
	--ahm-surface: #FFFFFF;
	--ahm-text: #172033;
	--ahm-text-muted: #5B6478;
	--ahm-border: #E4E8F0;
	--ahm-radius: 14px;
	--ahm-radius-sm: 8px;
	--ahm-max-width: 1180px;
	--ahm-font-display: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
	--ahm-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	--ahm-font-mono: 'IBM Plex Mono', ui-monospace, monospace;
	--ahm-shadow-sm: 0 1px 2px rgba(11, 42, 91, 0.06), 0 1px 3px rgba(11, 42, 91, 0.08);
	--ahm-shadow-md: 0 4px 12px rgba(11, 42, 91, 0.10), 0 2px 4px rgba(11, 42, 91, 0.06);
	--ahm-shadow-lg: 0 12px 32px rgba(11, 42, 91, 0.16);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--ahm-bg);
	color: var(--ahm-text);
	font-family: var(--ahm-font-body);
	margin: 0;
	line-height: 1.6;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4,
.ahm-hero-heading,
.ahm-site-title {
	font-family: var(--ahm-font-display);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--ahm-navy);
}

a {
	color: var(--ahm-navy);
}

.screen-reader-text {
	position: absolute;
	left: -9999px;
}

.ahm-skip-link:focus {
	left: 10px;
	top: 10px;
	position: fixed;
	background: #fff;
	padding: 10px 16px;
	z-index: 10000;
	border-radius: 6px;
}

.ahm-container {
	max-width: var(--ahm-max-width);
	margin: 0 auto;
	padding: 24px 20px;
}

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

.ahm-site-header {
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: saturate(180%) blur(10px);
	border-bottom: 1px solid var(--ahm-border);
	position: sticky;
	top: 0;
	z-index: 100;
}

.ahm-site-header-inner {
	max-width: var(--ahm-max-width);
	margin: 0 auto;
	padding: 14px 20px;
	display: flex;
	align-items: center;
	gap: 24px;
}

.ahm-site-title {
	font-size: 21px;
	color: var(--ahm-navy);
	text-decoration: none;
}

.ahm-primary-nav {
	flex: 1;
}

.ahm-primary-nav ul {
	display: flex;
	gap: 22px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ahm-primary-nav a {
	text-decoration: none;
	color: var(--ahm-text);
	font-weight: 600;
	font-size: 14.5px;
	transition: color 0.15s;
}

.ahm-primary-nav a:hover {
	color: var(--ahm-orange);
}

.ahm-header-actions {
	display: flex;
	gap: 10px;
}

.ahm-mobile-menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px;
}

.ahm-mobile-menu-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--ahm-navy);
	margin: 5px 0;
	border-radius: 2px;
}

.ahm-mobile-nav {
	display: none;
	background: #fff;
	border-top: 1px solid var(--ahm-border);
	padding: 10px 20px;
}

.ahm-mobile-nav.is-open {
	display: block;
}

.ahm-mobile-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ahm-mobile-nav li {
	border-bottom: 1px solid #f0f0f0;
}

.ahm-mobile-nav a {
	display: block;
	padding: 12px 0;
	text-decoration: none;
	color: var(--ahm-text);
	font-weight: 600;
}

/* ============ Breadcrumbs ============ */

.ahm-breadcrumbs-wrap {
	background: var(--ahm-surface);
	border-bottom: 1px solid var(--ahm-border);
}

.ahm-breadcrumbs {
	max-width: var(--ahm-max-width);
	margin: 0 auto;
	padding: 10px 20px;
	font-size: 13px;
	color: var(--ahm-text-muted);
}

.ahm-breadcrumbs a {
	color: var(--ahm-text-muted);
	text-decoration: none;
}

/* ============ Buttons ============ */

.ahm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 11px 20px;
	border-radius: var(--ahm-radius-sm);
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.ahm-btn:hover {
	transform: translateY(-1px);
}

.ahm-btn-primary {
	background: var(--ahm-orange);
	color: #fff;
	box-shadow: 0 2px 8px rgba(255, 122, 0, 0.35);
}

.ahm-btn-outline {
	background: transparent;
	border: 1.5px solid var(--ahm-navy);
	color: var(--ahm-navy);
}

.ahm-btn-call {
	background: var(--ahm-navy);
	color: #fff;
}

.ahm-btn-whatsapp {
	background: var(--ahm-green);
	color: #fff;
}

/* ============ Signature: jaali divider ============ */

.ahm-jali-divider {
	height: 34px;
	background-image: url("../images/jali-pattern.svg");
	background-repeat: repeat-x;
	background-size: 34px 34px;
	background-position: center;
	color: var(--ahm-gold);
	opacity: 0.55;
}

.ahm-jali-divider-footer {
	height: 24px;
	opacity: 0.9;
	color: rgba(232, 184, 74, 0.7);
}

/* ============ Hero ============ */

.ahm-hero {
	position: relative;
	background:
		radial-gradient(1200px 500px at 15% -10%, rgba(24, 168, 59, 0.18), transparent 60%),
		linear-gradient(155deg, var(--ahm-navy-ink) 0%, var(--ahm-navy) 65%);
	background-size: cover;
	background-position: center;
	color: #fff;
	padding: 72px 20px 0;
	overflow: hidden;
}

.ahm-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url("../images/jali-pattern.svg");
	background-repeat: repeat;
	background-size: 70px 70px;
	opacity: 0.07;
	color: #fff;
	pointer-events: none;
}

.ahm-hero-inner {
	position: relative;
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
}

.ahm-hero-heading {
	color: #fff;
	font-size: clamp(30px, 5vw, 48px);
	margin: 0 0 16px;
}

.ahm-hero-subheading {
	font-size: 17px;
	color: rgba(255, 255, 255, 0.85);
	margin: 0 0 32px;
	font-weight: 400;
}

.ahm-hero-search {
	position: relative;
	display: flex;
	align-items: center;
	background: #fff;
	border-radius: 999px;
	padding: 6px 6px 6px 20px;
	box-shadow: var(--ahm-shadow-lg);
	max-width: 620px;
	margin: 0 auto 28px;
}

.ahm-hero-search-icon {
	width: 20px;
	height: 20px;
	color: var(--ahm-text-muted);
	flex-shrink: 0;
}

.ahm-hero-search input {
	flex: 1;
	border: none;
	outline: none;
	padding: 12px;
	font-size: 15px;
	font-family: var(--ahm-font-body);
	color: var(--ahm-text);
}

.ahm-hero-search button {
	background: var(--ahm-orange);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 12px 24px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: filter 0.15s;
}

.ahm-hero-search button:hover {
	filter: brightness(1.08);
}

.ahm-trust-strip {
	position: relative;
	display: flex;
	justify-content: center;
	gap: 14px;
	flex-wrap: wrap;
	font-family: var(--ahm-font-mono);
	font-size: 13px;
	color: rgba(255, 255, 255, 0.75);
	padding: 20px 0 40px;
	letter-spacing: 0.01em;
}

.ahm-trust-dot {
	color: var(--ahm-gold);
}

/* ============ Category icon grid ============ */

.ahm-category-grid-section h2 {
	text-align: center;
	margin-bottom: 24px;
}

.ahm-category-icon-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 14px;
}

.ahm-category-icon-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--ahm-text);
	background: var(--ahm-surface);
	border: 1px solid var(--ahm-border);
	border-radius: var(--ahm-radius);
	padding: 20px 10px;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.ahm-category-icon-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--ahm-shadow-md);
	border-color: var(--ahm-orange);
}

.ahm-cat-icon-wrap {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: linear-gradient(155deg, rgba(11,42,91,0.08), rgba(24,168,59,0.08));
	color: var(--ahm-navy);
}

.ahm-cat-icon {
	width: 22px;
	height: 22px;
}

/* ============ Front-page shortcode area ============ */
/* Hides the plugin's own search/category/area sub-sections on the
   front page only, since the theme's hero + category grid above
   already cover that entry point — see front-page.php's docblock. */

.ahm-front-page .ahm-search-bar,
.ahm-front-page .ahm-categories-widget,
.ahm-front-page .ahm-areas-widget {
	display: none;
}

.ahm-front-page .ahm-featured-widget h2,
.ahm-front-page .ahm-latest-widget h2 {
	text-align: center;
}

/* ============ Content cards / listing grid ============ */
/* These rules load after the plugin's own ahm-public.css (see
   functions.php note on enqueue order) and refine, rather than
   replace, its card structure. */

.ahm-content-card {
	background: var(--ahm-surface);
	border: 1px solid var(--ahm-border);
	border-radius: var(--ahm-radius);
	padding: 16px;
}

.ahm-listing-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 20px;
	margin-top: 16px;
}

.ahm-listing-card {
	border-radius: var(--ahm-radius) !important;
	box-shadow: var(--ahm-shadow-sm);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	overflow: visible !important;
}

.ahm-listing-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--ahm-shadow-md);
}

/* Folded-corner "Featured" ribbon instead of a generic badge pill. */
.ahm-badge-featured {
	position: absolute;
	top: 0;
	left: 0;
	background: var(--ahm-orange) !important;
	color: #fff;
	font-family: var(--ahm-font-mono);
	font-size: 10px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 5px 14px 5px 10px !important;
	border-radius: 0 !important;
	clip-path: polygon(0 0, 100% 0, 84% 100%, 0% 100%);
}

.ahm-badge-verified {
	background: transparent !important;
	color: var(--ahm-navy) !important;
	border: 1.5px solid var(--ahm-gold);
	font-weight: 700 !important;
	font-size: 10px !important;
	padding: 4px 10px !important;
}

/* ============ Sticky mobile call/WhatsApp bar ============ */

.ahm-sticky-mobile-bar {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: #fff;
	border-top: 1px solid var(--ahm-border);
	padding: 10px 16px;
	gap: 10px;
	z-index: 200;
	box-shadow: 0 -4px 16px rgba(11, 42, 91, 0.12);
}

.ahm-sticky-mobile-bar .ahm-btn {
	flex: 1;
	text-align: center;
}

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

.ahm-site-footer {
	background: var(--ahm-navy-ink);
	color: #cdd8ec;
	margin-top: 40px;
}

.ahm-site-footer-inner {
	max-width: var(--ahm-max-width);
	margin: 0 auto;
	padding: 30px 20px 20px;
}

.ahm-footer-top {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 30px;
	margin-bottom: 20px;
}

.ahm-footer-brand .ahm-site-title {
	color: #fff;
}

.ahm-footer-tagline {
	color: #a9b7d6;
	font-size: 14px;
	margin: 8px 0 12px;
	max-width: 320px;
}

.ahm-footer-social {
	display: flex;
	gap: 14px;
}

.ahm-footer-social a {
	color: var(--ahm-gold);
	text-decoration: none;
	font-weight: 600;
	font-size: 13px;
}

.ahm-footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 20px;
	flex: 1;
}

.ahm-footer-widget-title {
	color: #fff;
	font-size: 15px;
}

.ahm-footer-nav ul {
	list-style: none;
	display: flex;
	gap: 16px;
	padding: 0;
	margin: 0 0 12px;
	flex-wrap: wrap;
	border-top: 1px solid rgba(255,255,255,0.1);
	padding-top: 16px;
}

.ahm-footer-nav a {
	color: #cdd8ec;
	text-decoration: none;
	font-size: 13px;
}

.ahm-footer-copy {
	font-size: 13px;
	color: #7f8fb3;
	margin: 0;
}

.ahm-plugin-missing-notice {
	padding: 16px;
	background: #fce8e6;
	border-radius: 8px;
	color: #a3241a;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid var(--ahm-orange);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation: none !important;
		transition: none !important;
	}
	html {
		scroll-behavior: auto;
	}
}

/* ============ Responsive ============ */

@media (max-width: 800px) {
	.ahm-primary-nav,
	.ahm-header-actions {
		display: none;
	}

	.ahm-mobile-menu-toggle {
		display: block;
		margin-left: auto;
	}

	.ahm-sticky-mobile-bar {
		display: flex;
	}

	.ahm-hero {
		padding-top: 48px;
	}

	.ahm-hero-search {
		flex-wrap: wrap;
		border-radius: 20px;
		padding: 14px;
	}

	.ahm-hero-search button {
		width: 100%;
		margin-top: 8px;
	}

	.ahm-footer-top {
		flex-direction: column;
	}
}

/* RTL readiness */
[dir="rtl"] .ahm-mobile-menu-toggle {
	margin-left: 0;
	margin-right: auto;
}

[dir="rtl"] .ahm-badge-featured {
	left: auto;
	right: 0;
	clip-path: polygon(100% 0, 0 0, 16% 100%, 100% 100%);
}
