/*
 * ApnaDoctor design tokens – the single source of truth for colour, type, spacing and elevation.
 * Loaded on every public page and in the doctor portal. Change a value here and it updates
 * everywhere: theme header/footer, patient pages, doctor portal.
 */
:root {
	/* Brand: deep healthcare blue with a calm medical teal */
	--primary: #0f5d9e;
	--primary-dark: #0a4576;
	--primary-light: #e8f2fb;
	--primary-contrast: #ffffff;
	--secondary: #12897f;
	--secondary-dark: #0c6b63;
	--secondary-light: #e6f5f3;

	/* Surfaces & text */
	--background: #f6f9fc;
	--surface: #ffffff;
	--surface-muted: #f1f5f9;
	--text-primary: #132033;
	--text-secondary: #5a6b81;
	--text-on-dark: rgba(255, 255, 255, .92);
	--border: #e2e8f0;
	--border-strong: #cbd5e1;

	/* Status */
	--success: #14804a;
	--success-light: #e7f6ee;
	--warning: #9a5b00;
	--warning-light: #fdf3e3;
	--danger: #b42318;
	--danger-light: #fdecea;
	--info: #0f5d9e;
	--info-light: #e8f2fb;

	/* Elevation */
	--shadow-sm: 0 1px 2px rgba(19, 32, 51, .06);
	--shadow: 0 2px 8px rgba(19, 32, 51, .07);
	--shadow-md: 0 8px 24px rgba(19, 32, 51, .09);
	--shadow-lg: 0 20px 48px rgba(19, 32, 51, .12);

	/* Shape & spacing */
	--radius-sm: 8px;
	--radius: 14px;
	--radius-lg: 20px;
	--radius-pill: 999px;
	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-5: 24px;
	--space-6: 32px;
	--space-7: 48px;
	--space-8: 64px;

	/* Type */
	--font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--font-urdu: "Noto Naskh Arabic", "Jameel Noori Nastaleeq", Tahoma, sans-serif;
	--text-hero: clamp(2.1rem, 4.6vw, 3.4rem);
	--text-h1: clamp(1.8rem, 3.2vw, 2.5rem);
	--text-h2: clamp(1.4rem, 2.4vw, 1.9rem);
	--text-h3: 1.15rem;
	--text-body: 1rem;
	--text-small: .875rem;
	--text-tiny: .78rem;
	--leading-tight: 1.2;
	--leading: 1.6;
	--weight-normal: 400;
	--weight-medium: 500;
	--weight-semibold: 600;
	--weight-bold: 700;

	/* Layout */
	--container: 1180px;
	--header-height: 72px;
}

/* Keep the Astra theme (header, footer, theme buttons) on the same palette. */
:root {
	--ast-global-color-0: var(--primary);
	--ast-global-color-1: var(--primary-dark);
	--ast-global-color-2: var(--text-primary);
	--ast-global-color-3: var(--text-primary);
	--ast-global-color-4: var(--background);
	--ast-global-color-5: var(--surface);
	--ast-global-color-6: var(--surface-muted);
	--ast-global-color-7: var(--text-secondary);
}

/* ---------------------------------------------------------------- base typography */
body,
button,
input,
select,
textarea {
	font-family: var(--font-sans);
}

body {
	color: var(--text-primary);
	font-size: var(--text-body);
	line-height: var(--leading);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-sans);
	color: var(--text-primary);
	letter-spacing: -.015em;
	line-height: var(--leading-tight);
	font-weight: var(--weight-bold);
}

/* Urdu pages keep the Naskh face but inherit every other token. */
body.apna-urdu,
body.apna-urdu h1, body.apna-urdu h2, body.apna-urdu h3,
body.apna-urdu p, body.apna-urdu a, body.apna-urdu button, body.apna-urdu input, body.apna-urdu select, body.apna-urdu textarea {
	font-family: var(--font-urdu);
	letter-spacing: 0;
}

/* ---------------------------------------------------------------- shared components */
.ad-icon {
	width: 1.25em;
	height: 1.25em;
	flex: none;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
	vertical-align: -.22em;
}

.ad-icon-lg { width: 1.75em; height: 1.75em; }
.ad-icon-xl { width: 2.25em; height: 2.25em; stroke-width: 1.5; }

/* Focus ring: visible for keyboard users on every interactive element. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent);
	outline-offset: 2px;
	border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .001ms !important;
		transition-duration: .001ms !important;
		scroll-behavior: auto !important;
	}
}

/* Brand marks are drawn filled rather than stroked. */
.ad-icon-solid { fill: currentColor; stroke: none; }
