/* ─── Základní text 18px pro seniory ─────────────────────────────────────────
   Všechny Tailwind rem třídy se škálují od tohoto */
html { font-size: 18px; }

body {
    font-family: 'Source Sans 3', 'Inter', ui-sans-serif, system-ui, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.font-heading {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

/* ─── Alpine.js ───────────────────────────────────────────────────────────────
   Zabránit blikání prvků před inicializací */
[x-cloak] { display: none !important; }

/* ─── Přístupnost: výrazné focus styly pro klávesnici ────────────────────────
   amber-500 – kontrastní na bílém i tmavém pozadí */
:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 3px;
    border-radius: 4px;
}
/* Potlačit výchozí outline – zachováme jen :focus-visible */
:focus:not(:focus-visible) {
    outline: none;
}

/* ─── Skip-to-content odkaz ──────────────────────────────────────────────────*/
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    padding: 0.5rem 1.25rem;
    background: #064e3b;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 0 0 6px 6px;
    text-decoration: none;
    transition: top 0.15s;
}
.skip-to-content:focus {
    top: 0;
    outline: 3px solid #f59e0b;
    outline-offset: 2px;
}

/* ─── Hero homepage – hvězdy a animace ───────────────────────────────────────*/
.hero-star {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    animation: hero-twinkle var(--d, 3s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    opacity: var(--op, 0.6);
}

@keyframes hero-twinkle {
    0%, 100% { opacity: var(--op); transform: scale(1); }
    50%       { opacity: calc(var(--op) * 0.3); transform: scale(0.7); }
}

@keyframes hero-drift {
    0%   { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-60px) translateY(20px); }
}

@keyframes hero-rise {
    0%   { opacity: 0; transform: translateY(8px); }
    60%  { opacity: 1; }
    100% { opacity: 1; transform: translateY(0); }
}

/* Blikání světel vesnice */
@keyframes hero-light {
    0%, 100% { opacity: 0.7; }
    25%       { opacity: 0.2; }
    50%       { opacity: 0.9; }
    75%       { opacity: 0.4; }
}

/* Pulzující záře nad horizontem */
@keyframes hero-glow {
    0%, 100% { opacity: 0.9; transform: translateX(-50%) scaleX(1);   }
    50%       { opacity: 0.5; transform: translateX(-50%) scaleX(1.15); }
}

/* Pomalý drift hvězd */
@keyframes hero-float {
    0%, 100% { transform: translateY(0)    translateX(0); }
    33%       { transform: translateY(-3px) translateX(2px); }
    66%       { transform: translateY(2px)  translateX(-2px); }
}

.hero-content { animation: hero-rise 1s ease-out both; }

.hero-star-float {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    animation:
        hero-twinkle var(--d, 3s) ease-in-out infinite,
        hero-float   var(--fd, 8s) ease-in-out infinite;
    animation-delay: var(--delay, 0s), var(--fdelay, 0s);
    opacity: var(--op, 0.6);
}

/* ─── eGate signature ────────────────────────────────────────────────────────*/
.egate-signature {
    font-size: 12px;
    font-family: "Segoe UI", system-ui, sans-serif;
}

.egate-link {
    text-decoration: none;
    color: #4d7a5a;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.egate-link:hover { opacity: 1; }

.egate-brand { font-weight: 600; }
.egate-e     { color: #00B426; }
.egate-gate  { color: #a7f3d0; }

.egate-heart {
    display: inline;
    width: 13px;
    height: 13px;
    margin: 0 4px;
    vertical-align: -2px;
}

.egate-heart path {
    fill: none;
    stroke: #00B426;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: drawHeart 1.8s ease forwards;
}

@keyframes drawHeart {
    to { stroke-dashoffset: 0; }
}
