/*
 * Adams Auto Tech – scoped front-end CSS (plugin: aat-workshop-requests).
 * Layout, colours and typography are set in Elementor. This file only adds what
 * Elementor controls cannot: Malayalam glyph fallback, focus visibility, reduced motion.
 */

/* Malayalam glyphs: when any element uses "Plus Jakarta Sans" (which has no Malayalam
   glyphs), the browser takes Malayalam characters from this self-hosted Noto face.
   One rule per weight so it matches as exactly as the Latin faces do. */
@font-face {
	font-family: "Plus Jakarta Sans";
	src: url("../fonts/noto-sans-malayalam.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0D00-0D7F, U+200C-200D, U+25CC;
}

@font-face {
	font-family: "Plus Jakarta Sans";
	src: url("../fonts/noto-sans-malayalam.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0D00-0D7F, U+200C-200D, U+25CC;
}

@font-face {
	font-family: "Plus Jakarta Sans";
	src: url("../fonts/noto-sans-malayalam.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0D00-0D7F, U+200C-200D, U+25CC;
}

@font-face {
	font-family: "Plus Jakarta Sans";
	src: url("../fonts/noto-sans-malayalam.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0D00-0D7F, U+200C-200D, U+25CC;
}

@font-face {
	font-family: "Plus Jakarta Sans";
	src: url("../fonts/noto-sans-malayalam.woff2") format("woff2");
	font-weight: 800;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0D00-0D7F, U+200C-200D, U+25CC;
}

@font-face {
	font-family: "Noto Sans Malayalam";
	src: url("../fonts/noto-sans-malayalam.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0D00-0D7F, U+200C-200D, U+25CC;
}

/* Visible keyboard focus on every interactive element. */
body.aat-site a:focus-visible,
body.aat-site button:focus-visible,
body.aat-site input:focus-visible,
body.aat-site select:focus-visible,
body.aat-site textarea:focus-visible,
body.aat-site summary:focus-visible {
	outline: 3px solid #3889af;
	outline-offset: 2px;
}

/* Respect reduced-motion preferences (the only !important rules in this file). */
@media (prefers-reduced-motion: reduce) {
	body.aat-site *,
	body.aat-site *::before,
	body.aat-site *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---------------------------------------------------------------------------------------------------------------
   Typography adjustments (19 Nov 2026). The base sizes of headings and text live in the Elementor global classes
   (aat-h1 48/44/34 px, aat-h2 32/30/26 px, aat-h3 21/19 px, aat-body 17 px, aat-lead 22/18.4 px). This block holds
   only what a class cannot express: the home-page hero, reading width, Malayalam rules and small-text minimums.
   The e-xxxxxxxx-xxxx selectors are Elementor element styles; they change if those elements are re-created.
   --------------------------------------------------------------------------------------------------------------- */

/* Home page hero keeps a display size; inner-page titles use the class size. */
.home .elementor .aat-h1 { font-size: 4.5rem; }
@media (max-width: 1024px) { .home .elementor .aat-h1 { font-size: 3.5rem; } }
@media (max-width: 767px)  { .home .elementor .aat-h1 { font-size: 2.25rem; } }

/* Comfortable reading width for running text: about 75 characters per line at 17 px ("ch" units measured ~100). */
.elementor .aat-body { max-width: 41rem; }
.elementor .aat-lead { max-width: 60ch; }

/* Malayalam: no negative letter spacing (it squeezes conjuncts), taller lines for vowel signs above and below the
   letters, and smaller titles on phones because Malayalam words are long. */
html[lang^="ml"] .elementor .aat-h1,
html[lang^="ml"] .elementor .aat-h2 { letter-spacing: 0; line-height: 1.3; }
html[lang^="ml"] .elementor .aat-h3 { line-height: 1.4; }
html[lang^="ml"] .elementor .aat-body { line-height: 1.8; }
html[lang^="ml"] .elementor .aat-lead { line-height: 1.7; }
html[lang^="ml"] .elementor .aat-eyebrow { font-size: 0.875rem; letter-spacing: 0; }
html[lang^="ml"] .home .elementor .aat-h1 { font-size: 3.75rem; }
@media (max-width: 1024px) { html[lang^="ml"] .home .elementor .aat-h1 { font-size: 3rem; } }
@media (max-width: 767px) {
	html[lang^="ml"] .elementor .aat-h1,
	html[lang^="ml"] .home .elementor .aat-h1 { font-size: 1.875rem; }
	html[lang^="ml"] .elementor .aat-h2 { font-size: 1.5rem; }
	/* "About the workshop" title holds one very long word: keep its own smaller size so it fits a 375 px screen. */
	html[lang^="ml"] .elementor .aat-h1.e-c6eaa5b7-mh1 { font-size: 1.5rem; }
}
/* Safety net: a word too long for the screen wraps instead of making the page scroll sideways. */
html[lang^="ml"] .elementor :is(.aat-h1, .aat-h2) { overflow-wrap: break-word; }

/* Image captions ("Illustrative image"): not below 13 px. */
body .elementor :is(.e-06433314-64dd, .e-2cddbf38-45f3, .e-387156bc-4e14, .e-51857d30-46ac, .e-69eaab66-0ef7, .e-75a591a1-2b12,
	.e-7751fccc-acff, .e-ab976854-cf7d, .e-bba5cfdb-7da1, .e-c90e287d-b942, .e-d84f908b-cfc6, .e-f1f42274-94b6) { font-size: 0.8125rem; }

/* Footer and contact-card sentences (opening-hours notes, time zone, brand line, language switch): not below 14 px.
   Short uppercase English labels stay at 13 px. */
body .elementor :is(.e-5f2af8bc-f8ab, .e-d04c4b37-b1fe, .e-98641d0b-bb14, .e-87eaf9a8-6fea, .e-9fca5e86-e61a, .e-727dcccc-154b,
	.e-09faec3e-c1b7, .e-6f33ab7c-cd92, .e-6191489d-7a23, .e-d36ae53a-b40f,
	.e-2d96cc5b-c0c8, .e-d257d04e-692a, .e-415bd229-85ed, .e-a42b358f-262a) { font-size: 0.875rem; }

/* Malayalam labels: 14 px (Malayalam letters need more size than Latin capitals to stay legible). */
html[lang^="ml"] body .elementor :is(.e-64b12c02-c69f, .e-6da31fbc-3d8d, .e-82c80b76-4381, .e-ec52fe36-60c3, .e-fcf9dae1-1d4d,
	.e-6ce7498d-05d8, .e-f8814973-58d9) { font-size: 0.875rem; letter-spacing: 0; }