/* ==========================================================================
   Palsana — main.css
   Tokens are taken from the Palsana logo and bottle label.
   ========================================================================== */

:root {
	--pl-violet: #8a2ae3;       /* logo "P" */
	--pl-violet-deep: #6d1cbc;  /* hover / pressed */
	--pl-navy: #0e1939;         /* logo roundel */
	--pl-ink: #1c2335;          /* body text (logo wordmark) */
	--pl-plum: #40207d;         /* A+ banner background */
	--pl-gold: #f6c338;         /* dose strip on the label */
	--pl-gold-deep: #e0a800;
	--pl-lilac: #f4effc;
	--pl-lilac-2: #e8dcfa;
	--pl-line: #e4e0ec;
	--pl-muted: #596079;
	--pl-white: #ffffff;
	--pl-success: #1d7a4a;

	--pl-font-display: "Unbounded", "Arial Black", "Helvetica Neue", Arial, sans-serif;
	--pl-font-body: "Figtree", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--pl-r-pill: 999px;
	--pl-r-lg: 28px;
	--pl-r-md: 18px;
	--pl-r-sm: 10px;

	--pl-wrap: 1240px;
	--pl-gutter: clamp(16px, 4vw, 40px);
	--pl-section: clamp(56px, 8vw, 112px);
}

/* ---------- Base (also neutralises Hello Elementor's pink defaults) ---------- */

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
	margin: 0;
	background: var(--pl-white);
	color: var(--pl-ink);
	font-family: var(--pl-font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--pl-navy); margin: 0 0 .5em; }
h1, h2, h3 { font-family: var(--pl-font-display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.12; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.25; }
h4 { font-family: var(--pl-font-body); font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; }

a { color: var(--pl-violet); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover, a:active { color: var(--pl-violet-deep); }

:focus-visible { outline: 3px solid var(--pl-gold); outline-offset: 2px; border-radius: 4px; }

button, [type="button"], [type="submit"], [type="reset"] {
	font-family: var(--pl-font-body);
	color: inherit;
	border-color: transparent;
	border-radius: var(--pl-r-pill);
}
button:hover, button:focus, [type="button"]:hover, [type="button"]:focus,
[type="submit"]:hover, [type="submit"]:focus { background-color: transparent; color: inherit; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"],
input[type="password"], input[type="url"], select, textarea {
	font-family: var(--pl-font-body);
	font-size: 16px;
	color: var(--pl-ink);
	background: var(--pl-white);
	border: 1.5px solid var(--pl-line);
	border-radius: var(--pl-r-sm);
	padding: 12px 14px;
	width: 100%;
	box-sizing: border-box;
}
input:focus, select:focus, textarea:focus { border-color: var(--pl-violet); outline: none; box-shadow: 0 0 0 3px rgba(138, 42, 227, .18); }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.pl-skip:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; background: var(--pl-white); padding: 10px 16px; border-radius: var(--pl-r-sm); }

.pl-wrap { max-width: var(--pl-wrap); margin-inline: auto; padding-inline: var(--pl-gutter); box-sizing: border-box; }
.pl-section { padding-block: var(--pl-section); }
.pl-section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.pl-section-head p { color: var(--pl-muted); font-size: 1.08rem; margin: 0; }
.pl-section-head--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.pl-section-head--row > div { max-width: 640px; }

/* ---------- Buttons ---------- */

.pl-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 28px;
	border-radius: var(--pl-r-pill);
	font-family: var(--pl-font-body); font-size: 1rem; font-weight: 700; line-height: 1;
	text-decoration: none; cursor: pointer;
	border: 2px solid transparent;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.pl-btn--primary { background: var(--pl-violet); color: var(--pl-white); }
.pl-btn--primary:hover { background: var(--pl-violet-deep); color: var(--pl-white); }
.pl-btn--dark { background: var(--pl-navy); color: var(--pl-white); }
.pl-btn--dark:hover { background: var(--pl-ink); color: var(--pl-white); }
.pl-btn--ghost { background: transparent; color: var(--pl-navy); border-color: var(--pl-navy); }
.pl-btn--ghost:hover { background: var(--pl-navy); color: var(--pl-white); }
.pl-btn--gold { background: var(--pl-gold); color: var(--pl-navy); }
.pl-btn--gold:hover { background: var(--pl-gold-deep); color: var(--pl-navy); }

/* ---------- Dose strip: the signature element, lifted from the bottle label ---------- */

.pl-dose {
	display: inline-flex; align-items: stretch;
	background: var(--pl-gold);
	border-radius: var(--pl-r-pill);
	padding: 10px 8px;
	color: var(--pl-navy);
	margin: 0; list-style: none;
	box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .08);
	max-width: 100%;
}
.pl-dose li { padding: 0 18px; text-align: center; line-height: 1.15; display: flex; flex-direction: column; justify-content: center; }
.pl-dose li + li { border-left: 2px solid rgba(14, 25, 57, .55); }
.pl-dose b { font-family: var(--pl-font-display); font-weight: 600; font-size: 1rem; letter-spacing: .01em; }
.pl-dose span { font-size: .85rem; font-weight: 500; }
.pl-dose--sm { padding: 6px 4px; }
.pl-dose--sm li { padding: 0 10px; }
.pl-dose--sm b { font-size: .72rem; }
.pl-dose--sm span { font-size: .72rem; }
.pl-dose--sm li + li { border-left-width: 1.5px; }

/* ---------- Generic pages rendered by Hello Elementor ---------- */

.page-header .entry-title { font-family: var(--pl-font-display); color: var(--pl-navy); }
body:not([class*="elementor-page-"]) .site-main { padding-inline: var(--pl-gutter); box-sizing: border-box; }
.pl-products + .pl-section--goals { padding-top: 0; }

/* Text pages made by Appearance > Palsana setup (About, policies). */
.pl-prose { max-width: 760px; margin: 0 auto; padding-block: 8px 48px; color: var(--pl-ink); font-family: var(--pl-font-body); line-height: 1.65; }
.pl-prose h2 { font-family: var(--pl-font-display); font-weight: 600; font-size: clamp(1.1rem, 2.4vw, 1.35rem); color: var(--pl-navy); margin: 2em 0 .5em; }
.pl-prose ul { padding-left: 1.2em; }
.pl-prose li + li { margin-top: .35em; }
.pl-prose a { color: var(--pl-violet); }
.pl-prose .pl-lead { font-size: 1.15rem; color: var(--pl-muted); }
.pl-prose mark { background: var(--pl-gold); color: var(--pl-navy); padding: 0 .25em; border-radius: 4px; }
