/* ==========================================================================
   Medanta Organics — Design Tokens
   Original visual identity. Change values here to re-skin the whole site.
   Kept as a small standalone file so it loads on every page with minimal cost.
   ========================================================================== */

:root {
	/* --- Brand palette (derived from the Medanta Organics logo mark;
	   #a25800 and #336804 sampled directly from the logo PNG) ------------- */
	--mo-color-primary:        #a25800; /* logo mark brown */
	--mo-color-primary-600:    #8f4d00;
	--mo-color-primary-700:    #713e00;
	--mo-color-primary-050:    #f7f0e8;

	--mo-color-accent:         #336804; /* logo leaf green */
	--mo-color-accent-600:     #2d5c04;
	--mo-color-accent-050:     #edf1e8;

	/* --- Neutrals -------------------------------------------------------- */
	--mo-color-ink:            #1c2b27; /* headings */
	--mo-color-body:           #3c4844; /* body text */
	--mo-color-muted:          #566158; /* secondary text - 5.93:1 on canvas, WCAG AA */
	--mo-color-line:           #e3ded3; /* borders / dividers */
	--mo-color-surface:        #ffffff; /* cards, inputs */
	--mo-color-canvas:         #f7f5ef; /* page background (warm cream) */
	--mo-color-canvas-alt:     #efeadf; /* alternating sections */

	/* --- Status --------------------------------------------------------- */
	--mo-color-success:        #2e7d54;
	--mo-color-error:          #c0392b;
	--mo-color-warning:        #b7791f;
	--mo-color-info:           #2a6f8f;
	--mo-color-sale:           #c0392b;

	/* --- Focus ---------------------------------------------------------- */
	--mo-color-focus:          #a25800;
	--mo-focus-ring:           0 0 0 3px rgba(162, 88, 0, 0.35);

	/* --- Typography (rounded geometric sans, matching the logo wordmark) - */
	--mo-font-heading: "Quicksand", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	--mo-font-body:    "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mo-font-mono:    ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

	/* Type scale tuned for e-commerce density: section headings land at
	   28-36px on desktop (not 44px), product titles at 16px, body 16px. */
	--mo-text-xs:   0.75rem;
	--mo-text-sm:   0.875rem;
	--mo-text-base: 1rem;
	--mo-text-lg:   1.125rem;
	--mo-text-xl:   clamp(1.125rem, 1.02rem + 0.42vw, 1.375rem);
	--mo-text-2xl:  clamp(1.35rem, 1.18rem + 0.7vw, 1.75rem);
	--mo-text-3xl:  clamp(1.625rem, 1.35rem + 1.1vw, 2.25rem);
	--mo-text-4xl:  clamp(1.9rem, 1.45rem + 1.9vw, 3rem);

	--mo-leading-tight: 1.15;
	--mo-leading-snug:  1.3;
	--mo-leading-body:  1.65;

	--mo-weight-normal: 400;
	--mo-weight-medium: 500;
	--mo-weight-bold:   700;

	/* --- Spacing scale ------------------------------------------------- */
	--mo-space-1:  0.25rem;
	--mo-space-2:  0.5rem;
	--mo-space-3:  0.75rem;
	--mo-space-4:  1rem;
	--mo-space-5:  1.5rem;
	--mo-space-6:  2rem;
	--mo-space-8:  3rem;
	--mo-space-10: 4rem;
	--mo-space-12: 6rem;

	/* Rhythm scale. --mo-section-py is the canonical section padding
	   (~36px mobile / 48 tablet / 64 desktop); homepage sections mirror
	   these exact values through Elementor's own per-section padding
	   settings, because Elementor drops a section's custom CSS classes when
	   the section is saved programmatically. Native (non-Elementor)
	   templates use the token directly. */
	--mo-section-py:     clamp(2.25rem, 1.5rem + 2.4vw, 4rem);
	--mo-heading-gap:    clamp(1.25rem, 1rem + 0.6vw, 1.75rem);
	--mo-card-gap:       clamp(1rem, 0.85rem + 0.5vw, 1.5rem);

	/* --- Radius / shadow / motion ----------------------------------- */
	--mo-radius-sm:   4px;
	--mo-radius:      8px;
	--mo-radius-lg:   16px;
	--mo-radius-pill: 999px;

	--mo-shadow-sm: 0 1px 2px rgba(28, 43, 39, 0.06);
	--mo-shadow:    0 4px 16px rgba(28, 43, 39, 0.08);
	--mo-shadow-lg: 0 16px 40px rgba(28, 43, 39, 0.12);

	--mo-transition: 160ms ease;

	/* --- Layout ------------------------------------------------------
	   The design is a wide layout, not a narrow centred column: on its
	   1881px canvas the content runs about 81% of the width. A fixed 1200px
	   column read as far too narrow on anything above a laptop - on a 1920
	   screen it filled only 62% of it.

	   So the container is now gutter-driven rather than fixed: it takes the
	   full width minus a generous gutter, capped at 1600px so line lengths on
	   a very wide monitor stay readable. On 1920 that is 1600px (83%), which
	   is the design's proportion; below ~1700 it is simply the viewport less
	   the gutter. The hero overrides this again with --mo-container-wide,
	   because in the design it runs wider still. */
	--mo-container:        1600px;
	--mo-container-wide:   1760px;
	--mo-container-narrow: 760px;
	--mo-gutter:           clamp(1rem, 3.5vw, 3.5rem);

	/* --- Z-index scale --------------------------------------------- */
	--mo-z-header:  100;
	--mo-z-drawer:  200;
	--mo-z-overlay: 190;
	--mo-z-toast:   300;

	/* ------------------------------------------------------------------
	   Elementor Global Colors bridge.
	   If the Elementor kit has not been imported yet, these give Pro
	   widgets sensible brand defaults. Once the kit defines its own
	   Global Colors, Elementor's later :root rules win the cascade.
	   ------------------------------------------------------------------ */
	--e-global-color-primary:   var(--mo-color-primary);
	--e-global-color-secondary: var(--mo-color-accent);
	--e-global-color-text:      var(--mo-color-body);
	--e-global-color-accent:    var(--mo-color-accent);
}

@media (prefers-reduced-motion: reduce) {
	:root {
		--mo-transition: 0ms;
	}
}
