/*
 * Header, drawer, pill buttons, footer, language switcher.
 * Values measured from the rendered Lovable app (computed styles at 1440px and 390px, 2026-12-01).
 */

/* ---------- Pill (Lovable `Pill`) ---------- */
.sa-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.5rem 0.5rem 0.5rem 1.5rem;
	border-radius: var(--sa-radius-full);
	font-size: var(--sa-text-label);
	line-height: 1.35;
	font-weight: 600;
	text-decoration: none;
	transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1), opacity 150ms;
}
.sa-pill:hover { transform: translateY(-0.125rem); }
.sa-pill__dot {
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	overflow: hidden;
	border-radius: var(--sa-radius-full);
}
.sa-pill__icon { transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1); }
.sa-pill:hover .sa-pill__icon { transform: rotate(45deg); }
.sa-pill--primary { background: var(--sa-primary); color: var(--sa-primary-foreground); }
.sa-pill--primary .sa-pill__dot { background: oklch(1 0 0 / 0.15); }
.sa-pill--light { background: var(--sa-background); color: var(--sa-foreground); }
.sa-pill--light .sa-pill__dot,
.sa-pill--dark .sa-pill__dot { background: var(--sa-primary); color: var(--sa-primary-foreground); }
.sa-pill--dark { background: var(--sa-ink); color: var(--sa-background); }

/* ---------- Header (Lovable `Nav`) ---------- */
.sa-header {
	position: fixed;
	inset-inline: 0;
	top: 1rem;
	z-index: 50;
	width: var(--sa-nav-width);
	margin-inline: auto;
	animation: sa-header-in 0.8s var(--sa-ease) both;
}
.admin-bar .sa-header { top: calc(1rem + 32px); }
@media (max-width: 782px) {
	.admin-bar .sa-header { top: calc(1rem + 46px); }
}
@keyframes sa-header-in {
	from { opacity: 0; transform: translateY(-40px); }
	to { opacity: 1; transform: none; }
}
.sa-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 0.375rem 0.375rem 0.375rem 1rem;
	border-radius: var(--sa-radius-full);
	background: oklch(0.985 0 0 / 0.95);
	box-shadow: var(--sa-shadow-sm);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}
.sa-header__brand { flex-shrink: 0; display: block; }
.sa-logo--header { display: block; height: 2.75rem; width: auto; }
.sa-header__bar .sa-nav--primary { display: none; }
.sa-header__menu {
	display: flex;
	align-items: center;
	gap: 1.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--sa-text-label);
	line-height: 1.35;
	font-weight: 500;
	color: var(--sa-muted-foreground);
}
.sa-header__menu a {
	display: block;
	text-decoration: none;
	transition: color 150ms;
}
.sa-header__menu a:hover,
.sa-header__menu .current-menu-item > a,
.sa-header__menu .current_page_item > a {
	color: var(--sa-foreground);
}
.sa-header__menu .current-menu-item > a,
.sa-header__menu .current_page_item > a { font-weight: 600; }
.sa-header__actions { display: flex; align-items: center; gap: 0.5rem; }
.sa-header__toggle {
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 0;
	border-radius: var(--sa-radius-full);
	background: var(--sa-secondary);
	color: var(--sa-foreground);
	cursor: pointer;
}
.sa-header__toggle .sa-icon { width: 1.25rem; height: 1.25rem; }
.sa-header__toggle-close,
.sa-header__toggle[aria-expanded="true"] .sa-header__toggle-open { display: none; }
.sa-header__toggle[aria-expanded="true"] .sa-header__toggle-close { display: block; }

.sa-drawer {
	margin-top: 0.5rem;
	padding: 0.75rem;
	border-radius: var(--sa-radius-xl);
	background: var(--sa-background);
	box-shadow: var(--sa-shadow-lg);
}
.sa-drawer[hidden] { display: none; }
.sa-drawer.is-open { animation: sa-drawer-in 0.3s var(--sa-ease) both; }
.sa-drawer.is-closing { animation: sa-drawer-out 0.3s var(--sa-ease) both; }
@keyframes sa-drawer-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes sa-drawer-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-8px); } }
.sa-drawer__menu {
	display: grid;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.sa-drawer__menu a {
	display: block;
	padding: 0.75rem 1rem;
	border-radius: var(--sa-radius-xl);
	font-family: var(--sa-font-display);
	font-size: var(--sa-text-h3);
	line-height: 1.35;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--sa-foreground);
	text-decoration: none;
}
.sa-drawer__menu a:hover { background: var(--sa-secondary); }
.sa-drawer__menu .current-menu-item > a,
.sa-drawer__menu .current_page_item > a { color: var(--sa-primary); }

@media (min-width: 1024px) {
	.sa-header__bar .sa-nav--primary { display: flex; }
	.sa-header__toggle,
	.sa-drawer { display: none !important; }
}

/* ---------- Language switcher (Lovable Diaspora `LangSwitch` style) ---------- */
/* In the header it is shown on desktop only; below 1024px it lives inside the drawer (prevents bar overflow). */
.sa-header__actions .sa-lang { display: none; }
.sa-drawer__lang { padding: 0.5rem 1rem 0.25rem; }
@media (min-width: 1024px) {
	.sa-header__actions .sa-lang { display: inline-flex; }
}
.sa-lang {
	display: inline-flex;
	align-items: center;
	gap: 0.125rem;
	padding: 0.25rem;
	border-radius: var(--sa-radius-full);
	font-size: 0.75rem;
	line-height: 1rem;
	font-weight: 600;
}
.sa-lang__icon { margin-inline: 0.5rem; opacity: 0.8; }
.sa-lang__item {
	padding: 0.25rem 0.875rem;
	border-radius: var(--sa-radius-full);
	text-decoration: none;
	transition: color 150ms, background-color 150ms;
}
.sa-lang--dark { background: oklch(1 0 0 / 0.1); color: var(--sa-primary-foreground); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.sa-lang--dark .sa-lang__item { color: oklch(1 0 0 / 0.8); }
.sa-lang--dark .sa-lang__item:hover { color: var(--sa-primary-foreground); }
.sa-lang--dark .sa-lang__item.is-current { background: var(--sa-background); color: var(--sa-foreground); }
.sa-lang--light { background: var(--sa-secondary); color: var(--sa-foreground); }
.sa-lang--light .sa-lang__item { color: var(--sa-muted-foreground); }
.sa-lang--light .sa-lang__item.is-current { background: var(--sa-background); color: var(--sa-foreground); }

/* ---------- Form fields shared with the plugin (footer newsletter, contact, donation) ---------- */
.sa-field { display: grid; gap: 0.375rem; }
.sa-field__label { font-size: var(--sa-text-label); line-height: 1.35; font-weight: 600; }
.sa-field__input {
	width: 100%;
	padding: 0.75rem 1.25rem;
	border: 1px solid var(--sa-input);
	border-radius: var(--sa-radius-full);
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: var(--sa-text-body);
	line-height: 1.6;
	outline: none;
	transition: border-color 150ms;
}
.sa-field__input:focus { border-color: var(--sa-primary); }

/* ---------- Footer (Lovable `Footer`) ---------- */
.sa-footer { padding: 0.75rem; }
.sa-footer__panel {
	position: relative;
	overflow: hidden;
	border-radius: var(--sa-radius-panel);
	background: var(--sa-ink);
	color: var(--sa-background);
}
.sa-footer__pattern {
	position: absolute;
	top: -6rem;
	right: -6rem;
	width: 34rem;
	max-width: 100%;
	height: auto;
	opacity: 0.06;
	filter: invert(1);
	pointer-events: none;
}
.sa-footer__news {
	position: relative;
	display: grid;
	gap: 2.5rem;
	padding: 3.5rem 1.5rem;
	border-bottom: 1px solid oklch(0.985 0 0 / 0.1);
}
.sa-footer__kicker {
	font-size: var(--sa-text-eyebrow);
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--sa-primary);
}
.sa-footer__title {
	margin: 1rem 0 0;
	font-size: var(--sa-text-h1);
	line-height: 1.08;
	font-weight: 900;
	letter-spacing: -0.025em;
}
.sa-footer__lead {
	margin: 1rem 0 0;
	max-width: 28rem;
	font-size: var(--sa-text-lead);
	line-height: 1.5;
	font-weight: 500;
	color: oklch(0.985 0 0 / 0.6);
}
.sa-footer__form .sa-field__label { color: oklch(0.985 0 0 / 0.7); }
.sa-footer__form .sa-field__input {
	padding-block: 0.75rem;
	border-color: oklch(0.985 0 0 / 0.15);
	background: oklch(0.985 0 0 / 0.05);
	color: var(--sa-background);
}
.sa-footer__form .sa-field__input::placeholder { color: oklch(0.985 0 0 / 0.4); }
.sa-footer__cols {
	position: relative;
	display: grid;
	gap: 3rem;
	padding: 3.5rem 1.5rem;
}
.sa-logo--footer {
	display: block;
	height: 5rem;
	width: auto;
	filter: brightness(0) invert(1);
}
.sa-footer__desc {
	margin: 1.5rem 0 0;
	max-width: 24rem;
	font-size: var(--sa-text-body);
	line-height: 1.6;
	color: oklch(0.985 0 0 / 0.6);
}
.sa-footer__socials {
	display: flex;
	gap: 0.5rem;
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}
.sa-footer__socials a {
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid oklch(0.985 0 0 / 0.15);
	border-radius: var(--sa-radius-full);
	color: var(--sa-background);
	transition: background-color 150ms, border-color 150ms;
}
.sa-footer__socials a:hover { border-color: var(--sa-primary); background: var(--sa-primary); }
.sa-footer__heading {
	margin: 0;
	font-size: var(--sa-text-h3);
	line-height: 1.35;
	font-weight: 700;
	letter-spacing: -0.01em;
}
.sa-footer__links,
.sa-footer__contact-list {
	display: grid;
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
}
.sa-footer__links { gap: 0.75rem; justify-items: start; }
.sa-footer__links a {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: var(--sa-text-body);
	line-height: 1.6;
	color: oklch(0.985 0 0 / 0.6);
	text-decoration: none;
	transition: color 150ms;
}
.sa-footer__links a:hover { color: var(--sa-background); }
.sa-footer__link-icon { width: 0.875rem; height: 0.875rem; opacity: 0; transition: opacity 150ms; }
.sa-footer__links a:hover .sa-footer__link-icon { opacity: 1; }
.sa-footer__contact-list { gap: 1rem; color: oklch(0.985 0 0 / 0.6); }
.sa-footer__contact-list li,
.sa-footer__contact-list a {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	text-decoration: none;
	transition: color 150ms;
}
.sa-footer__contact-list a:hover { color: var(--sa-background); }
.sa-footer__contact-list .sa-icon { margin-top: 0.25rem; color: var(--sa-primary); }
.sa-footer__dial {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 2rem;
	padding: 1.5rem;
	border-radius: var(--sa-radius-xl);
	background: var(--sa-primary);
	color: var(--sa-primary-foreground);
	text-decoration: none;
	transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.sa-footer__dial:hover { transform: translateY(-0.25rem); }
.sa-footer__dial-top { display: flex; align-items: center; justify-content: space-between; }
.sa-footer__dial-kicker {
	font-size: var(--sa-text-eyebrow);
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: oklch(1 0 0 / 0.8);
}
.sa-footer__dial-icon {
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: var(--sa-radius-full);
	background: oklch(1 0 0 / 0.15);
}
.sa-footer__dial-code {
	display: block;
	font-size: 1.5rem;
	line-height: 1.35;
	font-weight: 700;
	letter-spacing: -0.01em;
}
.sa-footer__dial-sub {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: oklch(1 0 0 / 0.8);
}
.sa-footer__bottom {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1.5rem;
	border-top: 1px solid oklch(0.985 0 0 / 0.1);
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: oklch(0.985 0 0 / 0.5);
}
.sa-footer__bottom p { margin: 0; }
.sa-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.sa-footer__legal a { display: block; text-decoration: none; transition: color 150ms; }
.sa-footer__legal a:hover { color: var(--sa-background); }

@media (min-width: 640px) {
	.sa-footer__form form,
	.sa-footer__form .sa-newsletter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
	.sa-footer__news { padding: 5rem 3.5rem; }
	.sa-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: 3.5rem; }
	.sa-footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; padding-inline: 3.5rem; }
}
@media (min-width: 1024px) {
	.sa-footer__news { grid-template-columns: 1fr 1.1fr; align-items: end; }
	.sa-footer__cols { grid-template-columns: 1.4fr 0.8fr 1.1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.sa-header,
	.sa-drawer.is-open,
	.sa-drawer.is-closing { animation: none; }
	.sa-pill,
	.sa-pill__icon,
	.sa-footer__dial { transition: none; }
}

/* Global owner-approved language access; unavailable translations have no destination. */
.sa-lang__item { display:inline-flex;align-items:center;justify-content:center;min-height:32px; }
.sa-lang__item:focus-visible {outline:3px solid var(--sa-primary);outline-offset:3px;}
.sa-lang__item--unavailable {cursor:not-allowed;text-decoration:line-through;opacity:.65;}
.sa-header__actions .sa-lang__icon {display:none;}
.sa-header__actions .sa-lang__item {padding-inline:.5rem;}
.sa-drawer .sa-lang__item {min-height:44px;min-width:44px;}
@media(min-width:1024px) and (max-width:1199px){
 .sa-header__bar {gap:.75rem;}
 .sa-header__menu {gap:1rem;}
}
