/* ============================================================================
   A11 Klientský portál — brand layer on top of Oat.
   Pins the portal to a light theme and injects the A11 blue/yellow brand.
   Components lean on Oat's native elements (.button, .card, [data-field], forms).
   ============================================================================ */

:root {
	color-scheme: light;

	--a11-blue: #0055b8;
	--a11-blue-dark: #00428f;
	--a11-yellow: #ffd400;
	--a11-yellow-dark: #f0c400;
	--a11-ink: #1a1a1a;
	--a11-grey: #f4f5f7;
	--a11-line: #e3e6ea;

	--background: #ffffff;
	--foreground: var(--a11-ink);
	--card: #ffffff;
	--card-foreground: var(--a11-ink);
	--primary: var(--a11-blue);
	--primary-foreground: #ffffff;
	--secondary: var(--a11-grey);
	--secondary-foreground: var(--a11-blue);
	--muted: var(--a11-grey);
	--muted-foreground: #6b7280;
	--faint: #fafbfc;
	--faint-foreground: #9aa3af;
	--accent: #e8eef7;
	--danger: #d32f2f;
	--danger-foreground: #ffffff;
	--success: #008032;
	--success-foreground: #ffffff;
	--warning: #a65b00;
	--border: var(--a11-line);
	--input: var(--a11-line);
	--ring: var(--a11-blue);
	--radius-medium: .4rem;
	--font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--container-max: 1180px;
}

body { background: var(--a11-grey); color: var(--a11-ink); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-sans); letter-spacing: -.01em; }

/* ── Brand button modifier (sits on top of Oat's .button / <button>) ───── */
.button.a11-yellow,
button.a11-yellow {
	background-color: var(--a11-yellow);
	color: var(--a11-ink);
	border-color: var(--a11-yellow);
	font-weight: var(--font-semibold);
}
.button.a11-yellow:hover,
button.a11-yellow:hover { background-color: var(--a11-yellow-dark); border-color: var(--a11-yellow-dark); }
.button.a11-lg, button.a11-lg { padding: .7rem 1.6rem; font-size: 1rem; }

/* ── Top bar ──────────────────────────────────────────────────────────── */
.a11-topbar { background: #fff; border-bottom: 1px solid var(--a11-line); }
.a11-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; }
.a11-logo { display: inline-flex; align-items: baseline; gap: .55rem; text-decoration: none; color: inherit; }
.a11-logo b { color: var(--a11-blue); font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.a11-logo span { color: #9aa3af; font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.a11-topbar-user { display: flex; align-items: center; gap: .75rem; font-size: .9rem; text-align: right; }
.a11-topbar-user .a11-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--a11-grey); display: grid; place-items: center; color: var(--a11-blue); flex-shrink: 0; }
.a11-topbar-user .a11-uname { font-weight: 700; line-height: 1.2; }
.a11-topbar-user a { color: var(--muted-foreground); font-size: .8rem; }

/* ── Layout helpers ───────────────────────────────────────────────────── */
.a11-main { padding: 2.5rem 0 4rem; }
.a11-card { background: #fff; border: 1px solid var(--a11-line); border-radius: var(--radius-medium); box-shadow: var(--shadow-small); padding: 2rem; }
.a11-card + .a11-card { margin-top: 1.5rem; }
.a11-muted { color: var(--muted-foreground); }
.a11-center { text-align: center; }
.a11-stack > * + * { margin-top: 1rem; }
.a11-error { color: var(--danger); font-size: .85rem; }
.a11-ok { color: var(--success); font-size: .85rem; }
.a11-spinner-inline { font-size: .85rem; color: var(--muted-foreground); }
.a11-form-actions { display: flex; gap: .6rem; align-items: center; margin-top: 1.25rem; }

/* ── Status badges ────────────────────────────────────────────────────── */
.a11-badge { display: inline-block; padding: .25rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .02em; }
.a11-badge.is-ceka      { background: #fff4dc; color: #a65b00; }
.a11-badge.is-schvaleno { background: #e3f5e8; color: #008032; }
.a11-badge.is-zamitnuto { background: #fde6e6; color: #d32f2f; }
.a11-badge.is-upraveno  { background: #e6effb; color: var(--a11-blue); }
.a11-badge.is-pending   { background: #fff4dc; color: #a65b00; }

/* ── Hero / landing ───────────────────────────────────────────────────── */
.a11-hero { position: relative; padding: 4.5rem 0 2.5rem; overflow: hidden; }
.a11-hero-bg {
	position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background-image: url("/wp-content/uploads/2026/01/bg-klient.png");
	background-repeat: no-repeat;
	background-position: right top;
	background-size: cover;
	-webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 45%, rgba(0,0,0,0) 100%);
	mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 45%, rgba(0,0,0,0) 100%);
	opacity: .7;
}
/* Keep the headline crisp over the artwork on narrow screens. */
@media (max-width: 879px) {
	.a11-hero-bg { opacity: .35; }
}
.a11-hero .container { position: relative; z-index: 1; }
.a11-hero h1 { font-size: clamp(2.4rem, 1.8rem + 3vw, 4rem); line-height: 1.04; margin: 0 0 1.25rem; font-weight: 800; }
.a11-hero p.lead { font-size: 1.2rem; color: #3b4453; max-width: 34ch; }
.a11-hero-actions { display: flex; align-items: center; gap: 1.25rem; margin-top: 2rem; flex-wrap: wrap; }
@media (min-width: 880px) { .a11-hero { padding-bottom: 5rem; } .a11-hero-bg { background-size: 62% auto; } }

.a11-section { padding-top: 3.5rem; }
.a11-section > .container > h2, .a11-section h2.a11-section-title { text-align: center; margin-bottom: 2rem; }
.a11-feature { padding: 1.75rem; height: 100%; }
.a11-feature .a11-kicker { font-size: .8rem; font-weight: 700; color: var(--a11-blue); letter-spacing: .08em; text-transform: uppercase; }
.a11-feature h3 { margin: .5rem 0; }
.a11-feature p { margin: 0; color: var(--muted-foreground); }
.row > [class*="col-"] { margin-bottom: 1.5rem; }

/* ── Editorial text block ─────────────────────────────────────────────── */
.a11-textblock { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding: 3rem; }
@media (max-width: 820px) { .a11-textblock { grid-template-columns: 1fr; gap: 1.75rem; padding: 2rem; } }
.a11-textblock h2 { margin: 0 0 1rem; font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.2rem); }
.a11-textblock p { color: #4b5563; font-size: 1.05rem; line-height: 1.7; margin: 0 0 1rem; }
.a11-checklist { list-style: none; padding: 0; margin: 0; }
.a11-checklist li { position: relative; padding: .55rem 0 .55rem 2rem; border-top: 1px solid var(--a11-line); font-weight: 500; }
.a11-checklist li:first-child { border-top: 0; }
.a11-checklist li::before { content: "✓"; position: absolute; left: 0; top: .55rem; width: 1.25rem; height: 1.25rem; background: var(--a11-blue); color: #fff; border-radius: 50%; font-size: .7rem; display: grid; place-items: center; }

.a11-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; padding: 2.25rem 1rem; }
@media (max-width: 720px) { .a11-stats { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1rem; } }
.a11-stat b { display: block; font-size: 2.4rem; font-weight: 800; color: var(--a11-blue); line-height: 1; }
.a11-stat span { color: var(--muted-foreground); font-size: .9rem; }

.a11-cta-band { background: var(--a11-blue); color: #fff; border-radius: .75rem; padding: 3rem; text-align: center; }
.a11-cta-band h2 { color: #fff; margin: 0 0 .25rem; }
.a11-cta-band .button.a11-yellow { margin-top: .5rem; }

/* ── Order list rows ──────────────────────────────────────────────────── */
.a11-order-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--a11-line); }
.a11-order-row:first-of-type { border-top: 0; }
.a11-order-row h4 { margin: 0 0 .2rem; font-size: 1rem; }
.a11-order-row .a11-order-meta { font-size: .82rem; color: var(--muted-foreground); }

/* ── Order disclaimer (small print, outside the form card) ────────────── */
.a11-disclaimer { margin: 1rem .25rem 0; font-size: .72rem; line-height: 1.55; color: #9aa3af; }
.a11-disclaimer a { color: #6b7280; }

/* ── Footer (plain text, no bg / border) ──────────────────────────────── */
.a11-footer { padding: 1.5rem 0; }
.a11-footer .a11-footer-inner { text-align: center; font-size: .82rem; color: var(--muted-foreground); }
.a11-footer a { color: var(--muted-foreground); }
