/* Timeless Remedies — design tokens (plugin tr-site). Loaded after the Elementor kit.
   Colors and fonts mirror the kit globals; fluid sizes and spacing live only here. */

@font-face {
	font-family: "Geist";
	src: url("../fonts/geist-latin-ext-wght-normal.woff2") format("woff2-variations"),
	     url("../fonts/geist-latin-ext-wght-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Geist";
	src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2-variations"),
	     url("../fonts/geist-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	/* Color roles */
	--tr-surface: #FFFFFF;
	--tr-tint: #F2F4EC;
	--tr-deep: #1C2416;
	--tr-ink: #1C2416;
	--tr-ink-2: #4A5534;
	--tr-muted: #5B6450;
	--tr-brand: #647146;
	--tr-brand-hover: #535E39;
	--tr-on-brand: #FFFFFF;
	--tr-sage: #8FA86B;        /* decorative on light; text only on --tr-deep */
	--tr-sage-light: #C9D6B3;  /* text on --tr-deep */
	--tr-line: #D9DDCF;
	--tr-error: #B42318;

	/* Type */
	--tr-font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--tr-h1: clamp(2.5rem, 1.79rem + 3vw, 4.5rem);        /* 40 → 72 px (375 → 1440) */
	--tr-h1-product: clamp(2rem, 1.56rem + 1.88vw, 3.25rem); /* 32 → 52 px */
	--tr-h2: clamp(2rem, 1.65rem + 1.5vw, 3rem);          /* 32 → 48 px */
	--tr-h3: clamp(1.375rem, 1.24rem + 0.56vw, 1.75rem);  /* 22 → 28 px */
	--tr-lead: clamp(1.125rem, 1.04rem + 0.38vw, 1.375rem);/* 18 → 22 px */
	--tr-body: clamp(1.0625rem, 1.04rem + 0.09vw, 1.125rem);/* 17 → 18 px */
	--tr-eyebrow: 0.8125rem;                                /* 13 px */

	/* 8 pt spacing */
	--tr-s1: 8px; --tr-s2: 16px; --tr-s3: 24px; --tr-s4: 32px;
	--tr-s6: 48px; --tr-s8: 64px; --tr-s12: 96px; --tr-s16: 128px;
	--tr-section: 72px;            /* mobile */
	--tr-gutter: 24px;
	--tr-container: 1240px;

	/* Shape & motion */
	--tr-radius-card: 24px;
	--tr-radius-field: 14px;
	--tr-radius-pill: 999px;
	--tr-btn-h: 54px;
	--tr-field-h: 52px;
	--tr-ease: cubic-bezier(.2, .7, .2, 1);
	--tr-dur-hover: 200ms;
	--tr-dur-reveal: 600ms;
}
@media (min-width: 768px)  { :root { --tr-section: 96px;  --tr-gutter: 40px; } }
@media (min-width: 1024px) { :root { --tr-section: 144px; --tr-gutter: 48px; } }

/* Base */
body {
	font-family: var(--tr-font);
	font-size: var(--tr-body);
	line-height: 1.6;
	color: var(--tr-ink);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Fluid heading scale (sizes are never set in widgets) */
h1, [class*="elementor-kit-"] h1, .tr-h1, .elementor-widget-heading h1.elementor-heading-title { font-size: var(--tr-h1); line-height: 1; letter-spacing: -0.04em; text-wrap: balance; }
h2, [class*="elementor-kit-"] h2, .tr-h2, .elementor-widget-heading h2.elementor-heading-title { font-size: var(--tr-h2); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
h3, [class*="elementor-kit-"] h3, .tr-h3, .elementor-widget-heading h3.elementor-heading-title { font-size: var(--tr-h3); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.tr-h1-product, .tr-h1-product .elementor-heading-title { font-size: var(--tr-h1-product); }

/* Utilities used in Elementor via "CSS Classes" */
.tr-eyebrow, .tr-eyebrow .elementor-heading-title, .tr-eyebrow p {
	font-size: var(--tr-eyebrow); font-weight: 600; line-height: 1.2;
	letter-spacing: 0.1em; text-transform: uppercase; color: var(--tr-brand);
}
.tr-on-deep .tr-eyebrow, .tr-on-deep .tr-eyebrow .elementor-heading-title { color: var(--tr-sage); }
.tr-lead, .tr-lead p { font-size: var(--tr-lead); line-height: 1.5; color: var(--tr-ink-2); max-width: 34ch; }
.tr-measure p, .tr-measure li { max-width: 68ch; }
.tr-section { padding-block: var(--tr-section); }
.tr-tint { background-color: var(--tr-tint); }
.tr-deep { background-color: var(--tr-deep); color: #FFFFFF; }
.tr-deep .tr-lead, .tr-deep .tr-lead p { color: var(--tr-sage-light); }
.tr-card { border-radius: var(--tr-radius-card); background: var(--tr-tint); }

/* Buttons (mirrors the kit; adds height, motion and the secondary style) */
.elementor-button, .tr-btn {
	min-height: var(--tr-btn-h);
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	border-radius: var(--tr-radius-pill);
	transition: background-color var(--tr-dur-hover) var(--tr-ease), color var(--tr-dur-hover) var(--tr-ease), box-shadow var(--tr-dur-hover) var(--tr-ease), transform var(--tr-dur-hover) var(--tr-ease);
}
.elementor-button:active, .tr-btn:active { transform: scale(0.98); }
.tr-btn-secondary .elementor-button {
	background-color: transparent; color: var(--tr-ink);
	box-shadow: inset 0 0 0 1.5px var(--tr-line);
}
.tr-btn-secondary .elementor-button:hover { background-color: transparent; color: var(--tr-ink); box-shadow: inset 0 0 0 1.5px var(--tr-ink); }
.tr-btn-light .elementor-button { background-color: #FFFFFF; color: var(--tr-ink); }
.tr-btn-light .elementor-button:hover { background-color: var(--tr-tint); color: var(--tr-ink); }

/* Fields */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"], input[type="number"], select, textarea {
	font-family: var(--tr-font);
}
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"], input[type="number"], select {
	min-height: var(--tr-field-h);
}

/* Focus: always visible */
a:focus-visible, button:focus-visible, .elementor-button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
	outline: 2px solid var(--tr-brand);
	outline-offset: 3px;
}

/* Gentle reveal (opt-in class; content stays visible without JS) */
@media (prefers-reduced-motion: no-preference) {
	.tr-reveal { animation: tr-rise var(--tr-dur-reveal) var(--tr-ease) both; }
	@keyframes tr-rise { from { opacity: .001; transform: translateY(20px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
