/* REKUVO hub — visual language aligned with rekuvo.cz public app */

:root {
  --primary: 30, 58, 138;
  --primary-mid: 29, 78, 216;
  --secondary: 23, 37, 84;
  --background: 241, 245, 249;
  --yellow: #facc15;
  --white: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --shell: 72rem;
  --header-h: 4.25rem;
  --font: 'Montserrat', system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font);
  color: var(--text);
  background: rgb(var(--background));
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

ul {
  list-style: none;
}

.shell {
  width: min(100% - 2rem, var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--white);
  color: rgb(var(--primary));
  font-weight: 600;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(var(--primary), 1);
  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    backdrop-filter 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(var(--primary), 0.95);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(8px);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding-block: 0.85rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fff, #bfdbfe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-name .reg {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: #bfdbfe;
}

.brand:hover .brand-name {
  background: linear-gradient(90deg, #bfdbfe, #fff);
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-tagline {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header-nav--desktop {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

.header-nav--desktop a {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 0.15rem;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.header-nav--desktop a:hover,
.header-nav--desktop a:focus-visible {
  color: #bfdbfe;
  border-color: #fff;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.55rem;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.menu-toggle-bars {
  position: relative;
  display: block;
  width: 1.15rem;
  height: 0.85rem;
}

.menu-toggle-bars span {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    top 0.2s ease;
}

.menu-toggle-bars span:nth-child(1) {
  top: 0;
}

.menu-toggle-bars span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.menu-toggle-bars span:nth-child(3) {
  bottom: 0;
}

.menu-toggle[aria-expanded='true'] .menu-toggle-bars span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] .menu-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded='true'] .menu-toggle-bars span:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

.mobile-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(var(--secondary), 0.55);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-block: 0.75rem 1rem;
}

.mobile-nav-inner a {
  display: block;
  padding: 0.85rem 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: color 0.2s ease;
}

.mobile-nav-inner a:last-child {
  border-bottom: 0;
}

.mobile-nav-inner a:hover,
.mobile-nav-inner a:focus-visible {
  color: #bfdbfe;
}

@media (min-width: 640px) {
  .header-nav--desktop {
    display: flex;
  }

  .menu-toggle,
  .mobile-nav {
    display: none !important;
  }
}

/* Hero — full-bleed brand plane */

.hero {
  background: linear-gradient(
    180deg,
    rgba(var(--primary), 1) 33%,
    rgba(var(--primary-mid), 1) 100%
  );
  color: var(--white);
  padding: 3.5rem 0 4.5rem;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  max-width: 48rem;
}

.hero-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.hero-title {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 600;
  line-height: 1.45;
  max-width: 18ch;
}

.hero-highlight {
  display: inline;
  background: var(--yellow);
  color: #000;
  padding: 0 0.35em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 500;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  max-width: 40rem;
}

.hero-lead strong {
  font-weight: 700;
}

/* Portals */

.portals {
  padding: 3.5rem 0 4rem;
}

.section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.25rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  color: rgb(var(--secondary));
  margin-bottom: 0.65rem;
}

.section-head p {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
}

.portal-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .portal-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.portal-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  padding: 1.35rem 1.25rem 1.25rem;
  border-radius: 0.85rem;
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.portal-card:hover,
.portal-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(var(--primary), 0.35);
  box-shadow: 0 16px 40px rgba(30, 58, 138, 0.14);
}

.portal-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgb(var(--primary));
  background: rgba(var(--primary), 0.1);
}

.portal-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.portal-country {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(var(--primary));
}

.portal-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: rgb(var(--secondary));
}

.portal-desc {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 0.25rem;
}

.portal-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(var(--primary));
  margin-top: 0.5rem;
}

/* About */

.about {
  padding: 0 0 4.5rem;
}

.about-inner {
  display: grid;
  gap: 1.5rem;
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  background: linear-gradient(
    135deg,
    rgba(var(--primary), 0.06),
    rgba(var(--primary-mid), 0.1)
  );
  border: 1px solid rgba(var(--primary), 0.12);
}

@media (min-width: 900px) {
  .about-inner {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
    padding: 2.5rem;
    gap: 2.5rem;
  }
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(var(--primary));
  margin-bottom: 0.5rem;
}

.about-copy h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: rgb(var(--secondary));
  margin-bottom: 0.85rem;
}

.about-copy h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: rgb(var(--secondary));
  margin: 1.25rem 0 0.55rem;
}

.about-copy p {
  color: #334155;
  font-weight: 500;
  margin-bottom: 0.85rem;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.reg {
  font-size: 0.55em;
  font-weight: 700;
  vertical-align: super;
  line-height: 0;
  letter-spacing: 0;
}

.hero-highlight .reg {
  color: #000;
}

.about-panel {
  background: var(--white);
  border-radius: 0.85rem;
  padding: 1.35rem 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.about-panel h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgb(var(--secondary));
  margin-bottom: 0.85rem;
}

.about-panel li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.925rem;
  font-weight: 500;
  color: #334155;
  margin-bottom: 0.55rem;
}

.about-panel li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: rgb(var(--primary));
}

.about-panel li:last-child {
  margin-bottom: 0;
}

/* Footer */

.site-footer {
  background: rgb(var(--secondary));
  color: rgba(255, 255, 255, 0.92);
  padding: 2.5rem 0 2rem;
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
}

.footer-logo {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 0.45rem;
}

.footer-brand p {
  font-size: 0.9rem;
  font-weight: 500;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.88);
}

.footer-tm {
  margin-top: 0.65rem;
  font-size: 0.8rem !important;
  color: rgba(255, 255, 255, 0.78) !important;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  padding-bottom: 0.1rem;
  transition: border-color 0.2s ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  border-color: #fff;
}

.footer-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-credit {
  color: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 0.05rem;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.footer-credit:hover,
.footer-credit:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
}
