/* ==========================================================================
   Filmcare design tokens
   Light is the default. Dark follows prefers-color-scheme unless the visitor
   picked a theme with the header toggle (data-theme on <html>).
   Brand blue #2B80FF is used for rings/highlights only: white text on it is
   3.7:1, so anything carrying white text uses #1F6FE5 (4.7:1).
   ========================================================================== */

/* Fonts: self-hosted, latin subset (covers ç in Curaçao). SIL OFL. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/open-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/open-sans-latin-700-normal.woff2") format("woff2"); }

:root {
	color-scheme: light;

	/* Type */
	--font-head: "Poppins", "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--tracking-caps: 0.04em;

	/* Shape */
	--radius-pill: 999px;
	--radius-card: 12px;
	--radius-input: 10px;
	--radius-sm: 8px;
	--tap: 44px;
	--container: 1440px;
	--gutter: 24px;

	/* Surfaces */
	--c-bg: #FFFFFF;
	--c-band: #F5F8FC;
	--c-surface: #FFFFFF;
	--c-field: #F7F8FA;
	--c-img-bg: #F2F4F7;
	--c-border: #E2E6EC;
	--c-border-strong: #CBD2DC;
	--c-overlay: rgba(18, 22, 28, 0.5);

	/* Text */
	--c-text: #12161C;
	--c-soft: #3A424F;
	--c-muted: #566070;

	/* Brand / interactive */
	--c-primary: #1F6FE5;
	--c-on-primary: #FFFFFF;
	--c-link: #1F6FE5;
	--c-ring: #2B80FF;
	--c-selected-bg: #EAF2FF;
	--c-ink: #12161C;          /* solid neutral buttons/chips */
	--c-on-ink: #FFFFFF;

	/* Header */
	--c-header: #1F6FE5;
	--c-header-border: #1F6FE5;
	--c-header-text: #FFFFFF;
	--c-header-icon-border: rgba(255, 255, 255, 0.5);
	--c-header-field: #FFFFFF;
	--c-header-field-border: #FFFFFF;
	--c-header-btn: #FFFFFF;
	--c-on-header-btn: #1F6FE5;
	--c-header-badge: #1F6FE5;
	--c-on-header-badge: #FFFFFF;

	/* Notice bar + footer */
	--c-notice: #12161C;
	--c-on-notice: #FFFFFF;
	--c-footer: #12161C;
	--c-footer-text: #C9CFD8;
	--c-footer-head: #FFFFFF;

	/* Status */
	--c-ok: #1E7A3C;
	--c-limited: #9A5800;
	--c-booked: #566070;
	--c-error: #B3261E;
	--c-disabled: #D5DAE1;
	--c-on-disabled: #566070;
}

/* Dark values, written once and applied by both selectors below. */
:root[data-theme="dark"] {
	color-scheme: dark;
	--c-bg: #0E1116;
	--c-band: #141922;
	--c-surface: #171B22;
	--c-field: #1C212A;
	--c-img-bg: #1C212A;
	--c-border: #2A313C;
	--c-border-strong: #3A4350;
	--c-overlay: rgba(0, 0, 0, 0.6);
	--c-text: #E8ECF2;
	--c-soft: #C3CAD4;
	--c-muted: #9AA4B2;
	--c-primary: #1F6FE5;
	--c-on-primary: #FFFFFF;
	--c-link: #6AA6FF;
	--c-ring: #6AA6FF;
	--c-selected-bg: #1A2740;
	--c-ink: #E8ECF2;
	--c-on-ink: #0E1116;
	--c-header: #141922;
	--c-header-border: #2A313C;
	--c-header-text: #E8ECF2;
	--c-header-icon-border: #3A4350;
	--c-header-field: #1C212A;
	--c-header-field-border: #3A4350;
	--c-header-btn: #1F6FE5;
	--c-on-header-btn: #FFFFFF;
	--c-header-badge: #FFFFFF;
	--c-on-header-badge: #12161C;
	--c-notice: #0A0D11;
	--c-on-notice: #C3CAD4;
	--c-footer: #0A0D11;
	--c-footer-text: #AEB6C2;
	--c-footer-head: #FFFFFF;
	--c-ok: #5CC88A;
	--c-limited: #F0A64A;
	--c-booked: #9AA4B2;
	--c-error: #FF8A80;
	--c-disabled: #2F3640;
	--c-on-disabled: #A7B0BD;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		color-scheme: dark;
		--c-bg: #0E1116;
		--c-band: #141922;
		--c-surface: #171B22;
		--c-field: #1C212A;
		--c-img-bg: #1C212A;
		--c-border: #2A313C;
		--c-border-strong: #3A4350;
		--c-overlay: rgba(0, 0, 0, 0.6);
		--c-text: #E8ECF2;
		--c-soft: #C3CAD4;
		--c-muted: #9AA4B2;
		--c-primary: #1F6FE5;
		--c-on-primary: #FFFFFF;
		--c-link: #6AA6FF;
		--c-ring: #6AA6FF;
		--c-selected-bg: #1A2740;
		--c-ink: #E8ECF2;
		--c-on-ink: #0E1116;
		--c-header: #141922;
		--c-header-border: #2A313C;
		--c-header-text: #E8ECF2;
		--c-header-icon-border: #3A4350;
		--c-header-field: #1C212A;
		--c-header-field-border: #3A4350;
		--c-header-btn: #1F6FE5;
		--c-on-header-btn: #FFFFFF;
		--c-header-badge: #FFFFFF;
		--c-on-header-badge: #12161C;
		--c-notice: #0A0D11;
		--c-on-notice: #C3CAD4;
		--c-footer: #0A0D11;
		--c-footer-text: #AEB6C2;
		--c-footer-head: #FFFFFF;
		--c-ok: #5CC88A;
		--c-limited: #F0A64A;
		--c-booked: #9AA4B2;
		--c-error: #FF8A80;
		--c-disabled: #2F3640;
		--c-on-disabled: #A7B0BD;
	}
}

@media (max-width: 640px) {
	:root { --gutter: 16px; }
}
