/* ============================================
   MEGA PLUS GROUP — Corporate Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --color-bg: #f7f6f3;
  --color-surface: #ffffff;
  --color-text: #1a1a18;
  --color-text-muted: #6b6b62;
  --color-border: #ddddd5;
  --color-accent: #2c3e2d;
  --color-accent-light: #4a6741;
  --color-gold: #9a7d4a;
  --color-gold-light: #c4a46b;
  --radius: 2px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.1), 0 12px 40px rgba(0,0,0,0.08);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --max-width: 1140px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Typography ---- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-family: var(--font-body); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; }

p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-text-muted);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: var(--color-gold); }

/* ---- Layout ---- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

main {
  flex: 1;
}

/* ---- Site Header ---- */

.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-logo {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
}

.site-logo .logo-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-logo .logo-sub {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-accent);
}

/* ---- Hero ---- */

.hero {
  background: var(--color-accent);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 80px,
      rgba(255,255,255,0.015) 80px,
      rgba(255,255,255,0.015) 81px
    );
}

.hero .container {
  position: relative;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(154,125,74,0.4);
}

.hero h1 {
  color: #f2efe8;
  font-weight: 400;
  max-width: 640px;
  margin-bottom: 1.5rem;
}

.hero p {
  color: rgba(242,239,232,0.7);
  max-width: 520px;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ---- Section ---- */

.section {
  padding: 4rem 0;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.6rem;
}

.section-header h2 {
  color: var(--color-text);
}

.section-header p {
  margin-top: 0.75rem;
  max-width: 560px;
}

/* ---- Company Cards Grid ---- */

.companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.company-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.company-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-accent-light);
  color: inherit;
}

.company-card-tag {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 400;
}

.company-card h3 {
  font-size: 1.2rem;
  color: var(--color-accent);
  margin: 0;
}

.company-card-meta {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.company-card-meta span {
  display: flex;
  gap: 0.4rem;
}

.company-card-meta .label {
  font-weight: 500;
  color: var(--color-text);
  min-width: 2.5rem;
}

.company-card-arrow {
  margin-top: auto;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s;
}

.company-card:hover .company-card-arrow {
  gap: 0.7rem;
}

/* ---- Firm Page ---- */

.firm-hero {
  background: var(--color-accent);
  padding: 3.5rem 0 3rem;
}

.firm-hero-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(242,239,232,0.6);
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.firm-hero-back:hover { color: var(--color-gold-light); }

.firm-hero h1 {
  color: #f2efe8;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.firm-hero-subtitle {
  color: rgba(242,239,232,0.6);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

/* ---- Data Table ---- */

.data-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.data-section-title {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--color-border);
  background: #f9f8f5;
}

.data-section-title h4 {
  font-size: 0.68rem;
  color: var(--color-text-muted);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table tr {
  border-bottom: 1px solid var(--color-border);
}

.data-table tr:last-child {
  border-bottom: none;
}

.data-table td {
  padding: 0.9rem 2rem;
  font-size: 0.88rem;
  vertical-align: top;
}

.data-table td:first-child {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-weight: 400;
  width: 220px;
  white-space: nowrap;
}

.data-table td:last-child {
  color: var(--color-text);
  font-weight: 400;
}

/* ---- Two Column ---- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* ---- Documents Section ---- */

.docs-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.docs-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--color-border);
  background: #f9f8f5;
}

.docs-header h3 {
  font-size: 1.1rem;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}

.docs-header p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin: 0;
}

.docs-category {
  border-bottom: 1px solid var(--color-border);
}

.docs-category:last-child {
  border-bottom: none;
}

.docs-category-header {
  padding: 1rem 2rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: #fafaf8;
  border-bottom: 1px solid var(--color-border);
}

.docs-empty {
  padding: 1.25rem 2rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.docs-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 2rem;
  border-bottom: 1px solid #f0f0eb;
  font-size: 0.87rem;
}

.docs-item:last-child { border-bottom: none; }

.docs-item-name {
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.docs-item-name::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background: var(--color-border);
  border-radius: 2px;
  flex-shrink: 0;
}

.docs-item-meta {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ---- Contact Block ---- */

.contact-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-block h4 {
  font-size: 0.68rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.contact-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  font-size: 0.87rem;
}

.contact-row:last-child { margin-bottom: 0; }

.contact-row .label {
  color: var(--color-text-muted);
  min-width: 60px;
  font-size: 0.8rem;
}

.contact-row .value {
  color: var(--color-text);
}

.contact-row .placeholder {
  color: var(--color-border);
  font-style: italic;
}

/* ---- Notice Bar ---- */

.notice-bar {
  background: #f0ede4;
  border: 1px solid #e0dbd0;
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.notice-bar::before {
  content: 'i';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* ---- Divider ---- */

.divider {
  height: 1px;
  background: var(--color-border);
  margin: 2rem 0;
}

/* ---- Footer ---- */

.site-footer {
  background: var(--color-accent);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2.5rem 0;
  margin-top: auto;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand .logo-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: #f2efe8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-brand .logo-sub {
  font-size: 0.65rem;
  color: rgba(242,239,232,0.4);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.78rem;
  color: rgba(242,239,232,0.5);
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-gold-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(242,239,232,0.35);
  margin: 0;
}

/* ---- Utilities ---- */

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* ---- Responsive ---- */

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: none;
  }

  .data-table td:first-child {
    width: 140px;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 3.5rem 0 3rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .data-table td {
    padding: 0.8rem 1.25rem;
  }

  .data-table td:first-child {
    display: none;
  }

  .companies-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   AUTH — Pro akcionáře (zaheslovaná část)
   ============================================ */

.auth-gate {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  max-width: 480px;
}

.auth-gate-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-accent);
  margin-bottom: 0.4rem;
}

.auth-gate-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.auth-gate-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-gate-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s;
}

.auth-gate-input:focus {
  border-color: var(--color-accent);
}

.auth-gate-btn {
  padding: 0.75rem 1.5rem;
  background: var(--color-accent);
  color: #f2efe8;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
  align-self: flex-start;
}

.auth-gate-btn:hover {
  background: var(--color-accent-light);
}

.auth-gate-error {
  font-size: 0.82rem;
  color: #b84a4a;
  display: none;
}

.auth-gate-error.visible {
  display: block;
}

/* Logged-in bar */
.auth-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0ede4;
  border: 1px solid #e0dbd0;
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.auth-bar-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-bar-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5a8a5a;
  flex-shrink: 0;
}

.auth-bar-logout {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  cursor: pointer;
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
}

.auth-bar-logout:hover {
  color: var(--color-accent);
}

/* Private docs — hidden by default */
.docs-private {
  display: none;
}

.docs-private.unlocked {
  display: block;
}

.docs-public-notice {
  display: block;
}

.docs-public-notice.hidden {
  display: none;
}

/* Private badge on category header */
.docs-category-header .badge-private {
  display: inline-block;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--color-gold);
  color: #fff;
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  margin-left: 0.5rem;
  vertical-align: middle;
}
