/* =============================================================================
   AMEDVEN design system · v1.0 (02.12.2026)
   One font (Inter, self-hosted), one palette, one type scale, one set of controls.
   Used by: the WordPress theme (assets/css/amedven.css) and the Master v3.2 home.
   Paths: the font sits next to this file in fonts/ (relative URL).
   ========================================================================== */

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url(fonts/inter-latin-var.woff2) format("woff2");
	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 {
	/* ---- palette (from the approved Master v3.2) ---- */
	--am-navy: #294E68;          /* headings, primary text on pearl */
	--am-ink: #1E3A50;           /* strongest text (prices, numbers) */
	--am-slate: #526C7E;         /* body / secondary text */
	--am-muted: #7A8E9C;         /* hints, captions */
	--am-teal: #148F91;          /* brand accent, primary action */
	--am-teal-ink: #0F7A7C;      /* hover / pressed */
	--am-teal-soft: #E3F1F0;     /* tints, selected states */
	--am-line: rgba(41, 78, 104, .14);
	--am-line-strong: rgba(41, 78, 104, .24);
	--am-surface: #FFFFFF;       /* cards, inputs */
	--am-surface-2: rgba(255, 255, 255, .72); /* glass on pearl */
	--am-pearl: #E6EDF4;         /* base under the pearl tile */
	--am-ok: #1F8A5B;
	--am-warn: #B7791F;
	--am-danger: #C2413B;

	/* ---- type ---- */
	--am-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--am-fs-display: clamp(40px, 4.9vw, 78px);   /* hero only */
	--am-fs-h1: clamp(32px, 3.4vw, 54px);
	--am-fs-h2: clamp(26px, 2.6vw, 40px);
	--am-fs-h3: 20px;
	--am-fs-h4: 17px;
	--am-fs-lead: clamp(16px, 1.2vw, 19px);
	--am-fs-body: 16px;
	--am-fs-small: 14px;
	--am-fs-micro: 12px;
	--am-lh-tight: 1.02;
	--am-lh-head: 1.12;
	--am-lh-body: 1.6;
	--am-track-head: -.024em;
	--am-track-eyebrow: .3em;

	/* ---- shape & space ---- */
	--am-radius-pill: 999px;
	--am-radius-card: 20px;
	--am-radius-field: 12px;
	--am-radius-sm: 8px;
	--am-shadow-card: 0 0 0 1px rgba(41, 78, 104, .08), 0 24px 48px -40px rgba(41, 78, 104, .45);
	--am-shadow-pop: 0 30px 60px -30px rgba(41, 78, 104, .45), 0 0 0 1px rgba(41, 78, 104, .07);
	--am-pad: clamp(20px, 5.5vw, 96px);
	--am-container: 1280px;
	--am-control-h: 48px;
}

/* ---- base ---- */
html { background: var(--am-pearl) url(pearl-tile.webp) 0 0 / 1254px 1254px repeat; }
body { font-family: var(--am-font); font-size: var(--am-fs-body); line-height: var(--am-lh-body); color: var(--am-slate); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "cv11", "ss01"; }
h1, h2, h3, h4, h5, h6 { font-family: var(--am-font); color: var(--am-navy); font-weight: 600; letter-spacing: var(--am-track-head); line-height: var(--am-lh-head); margin: 0 0 .5em; }
h1 { font-size: var(--am-fs-h1); line-height: var(--am-lh-tight); }
h2 { font-size: var(--am-fs-h2); }
h3 { font-size: var(--am-fs-h3); letter-spacing: -.01em; }
h4 { font-size: var(--am-fs-h4); letter-spacing: -.005em; }
p { margin: 0 0 1em; }
a { color: var(--am-teal); text-decoration: none; }
a:hover { color: var(--am-teal-ink); }
small, .am-small { font-size: var(--am-fs-small); }
:focus-visible { outline: 2px solid var(--am-teal); outline-offset: 2px; }
.am-eyebrow { font-size: var(--am-fs-micro); letter-spacing: var(--am-track-eyebrow); font-weight: 650; color: var(--am-teal); text-transform: uppercase; margin: 0 0 14px; }
.am-lead { font-size: var(--am-fs-lead); line-height: 1.55; color: var(--am-slate); }
.am-num { font-variant-numeric: tabular-nums; color: var(--am-ink); }

/* ---- buttons (one family everywhere: site, shop, account, checkout) ---- */
.am-btn, .button, button.button, a.button, input.button, .wp-element-button, .wc-block-components-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--am-control-h);
	font: 600 15px/1 var(--am-font); letter-spacing: 0; padding: 0 24px; border-radius: var(--am-radius-pill);
	border: 1px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap;
	background: var(--am-teal); color: #fff; transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.am-btn:hover, .button:hover, button.button:hover, a.button:hover, .wp-element-button:hover { background: var(--am-teal-ink); color: #fff; }
.am-btn--ghost, .button.alt-ghost { background: var(--am-surface-2); color: var(--am-navy); border-color: var(--am-line-strong); }
.am-btn--ghost:hover { background: #fff; color: var(--am-teal); border-color: var(--am-teal); }
.am-btn--link { background: none; border: 0; padding: 0; min-height: 0; color: var(--am-teal); }
.am-btn:disabled, .button:disabled, .button.disabled { opacity: .45; cursor: not-allowed; }

/* ---- fields ---- */
.am-field, input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search], input[type=number], input[type=url], select, textarea {
	font: 500 16px var(--am-font); color: var(--am-navy); background: var(--am-surface); border: 1px solid var(--am-line-strong);
	border-radius: var(--am-radius-field); min-height: var(--am-control-h); padding: 0 16px; box-sizing: border-box; max-width: 100%;
}
textarea { padding: 12px 16px; min-height: 120px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--am-teal); box-shadow: 0 0 0 3px rgba(20, 143, 145, .18); }
::placeholder { color: var(--am-muted); opacity: 1; }
label { font-size: var(--am-fs-small); font-weight: 600; color: var(--am-navy); }
.am-field--pill, input[type=search] { border-radius: var(--am-radius-pill); }

/* ---- surfaces ---- */
.am-card { background: var(--am-surface); border-radius: var(--am-radius-card); box-shadow: var(--am-shadow-card); }
.am-glass { background: var(--am-surface-2); border: 1px solid var(--am-line); border-radius: var(--am-radius-card); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.am-notice { border-left: 3px solid var(--am-teal); padding: 14px 18px; background: var(--am-surface-2); border-radius: 0 12px 12px 0; font-size: var(--am-fs-small); color: var(--am-slate); line-height: 1.6; }
.am-badge { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--am-font); padding: 6px 10px; border-radius: var(--am-radius-pill); background: var(--am-teal-soft); color: var(--am-teal-ink); }
