/* =========================================================
   Účetnictví Votýpková — stylesheet
   Mobile-first, premium, clean.
   ========================================================= */

:root {
  /* Brand */
  --c-navy:        #0f1f3d;
  --c-navy-2:      #1a2c52;
  --c-charcoal:    #1f2937;
  --c-text:        #1f2937;
  --c-text-muted:  #5b6577;
  --c-line:        #e6e9ef;
  --c-bg:          #ffffff;
  --c-bg-alt:      #f8fafc;
  --c-bg-soft:     #f3f5f9;
  --c-accent:      #2a6df4;     /* primary CTA */
  --c-accent-700:  #1d56cc;
  --c-success:     #157a4a;
  --c-error:       #b3261e;

  /* Soft service-card accents */
  --s-blue-bg:    #eaf2fe;  --s-blue-bd:    #cfe0fb;  --s-blue-ic:    #1e63d4;
  --s-green-bg:   #e8f6ee;  --s-green-bd:   #c9eadb;  --s-green-ic:   #1d7a4c;
  --s-amber-bg:   #fdf3df;  --s-amber-bd:   #f5e0b0;  --s-amber-ic:   #a86a14;
  --s-violet-bg:  #efeafd;  --s-violet-bd:  #dccff7;  --s-violet-ic:  #5b3fb6;
  --s-rose-bg:    #fdebe7;  --s-rose-bd:    #f7d2c9;  --s-rose-ic:    #b04a2f;
  --s-teal-bg:    #e3f4f3;  --s-teal-bd:    #c0e3e1;  --s-teal-ic:    #136b6a;

  /* Effects */
  --radius-sm:  10px;
  --radius:     16px;
  --radius-lg:  22px;
  --shadow-sm:  0 1px 2px rgba(15,31,61,0.06), 0 1px 3px rgba(15,31,61,0.05);
  --shadow:     0 6px 18px rgba(15,31,61,0.07), 0 2px 6px rgba(15,31,61,0.05);
  --shadow-lg:  0 18px 40px rgba(15,31,61,0.10), 0 4px 14px rgba(15,31,61,0.06);

  /* Layout */
  --container: 1180px;

  /* Type */
  --ff-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ff-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent); text-decoration: none; }
a:hover { color: var(--c-accent-700); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #b8d3ff;
  outline-offset: 2px;
  border-radius: 6px;
}
ul { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--ff-serif);
  color: var(--c-navy);
  font-weight: 700;
  margin: 0 0 .6em;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; font-family: var(--ff-sans); letter-spacing: .02em; }
p  { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 20px;
}
.section { padding: clamp(56px, 8vw, 96px) 0; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--c-navy); color: #fff;
  padding: 10px 14px; border-radius: 0 0 8px 0;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* Eyebrow */
.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin: 0 0 .8rem;
}

.section-header { max-width: 720px; margin-bottom: 40px; }
.section-intro { color: var(--c-text-muted); font-size: 1.05rem; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: 0.97rem;
  padding: 13px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.1;
}
.btn-primary {
  background: var(--c-navy);
  color: #fff;
  border-color: var(--c-navy);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--c-navy-2); border-color: var(--c-navy-2); color: #fff; transform: translateY(-1px); }
.btn-outline {
  background: #fff; color: var(--c-navy); border-color: var(--c-navy);
}
.btn-outline:hover { background: var(--c-navy); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--c-navy); border-color: var(--c-line);
}
.btn-ghost:hover { background: var(--c-bg-soft); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-block { width: 100%; padding: 14px 22px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.logo {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--c-navy);
  font-family: var(--ff-serif);
  font-weight: 700;
  text-decoration: none;
}
.logo-mark {
  width: 40px; height: 40px;
  background: var(--c-navy); color: #fff;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  font-family: var(--ff-serif);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-line1 { font-size: 1rem; color: var(--c-text-muted); font-weight: 500; font-family: var(--ff-sans); letter-spacing: .02em; }
.logo-line2 { font-size: 1.25rem; }

.primary-nav ul { display: flex; gap: 6px; }
.primary-nav a {
  display: block;
  padding: 10px 14px;
  color: var(--c-charcoal);
  font-weight: 500;
  border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}
.primary-nav a:hover { background: var(--c-bg-soft); color: var(--c-navy); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.fb-icon {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  color: #1877f2;
  background: #fff;
  transition: background .15s ease, transform .15s ease;
}
.fb-icon:hover { background: #eaf2fe; transform: translateY(-1px); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 2px;
  background: var(--c-navy); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease, top .2s ease;
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 90% -10%, #eaf2fe 0%, transparent 60%),
    radial-gradient(900px 400px at -10% 30%, #f3f5f9 0%, transparent 55%),
    #ffffff;
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 7vw, 80px);
  border-bottom: 1px solid var(--c-line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.hero h1 { margin-top: 4px; }
.hero .lead {
  font-size: 1.15rem;
  color: var(--c-text-muted);
  max-width: 540px;
}
.hero-buttons {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin: 26px 0 30px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
  border-top: 1px solid var(--c-line);
  padding-top: 24px;
  max-width: 540px;
}
.hero-stats li {
  display: flex; flex-direction: column; gap: 2px;
}
.hero-stats strong {
  font-family: var(--ff-serif);
  color: var(--c-navy);
  font-size: 1.7rem;
  line-height: 1;
}
.hero-stats span { font-size: .85rem; color: var(--c-text-muted); }

.hero-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ---------- Cards (generic) ---------- */
.card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cards { display: grid; gap: 20px; grid-template-columns: 1fr; }

/* ---------- Services ---------- */
.services { background: var(--c-bg-alt); }
.services-grid { gap: 20px; }
.service-card {
  position: relative;
  padding: 28px 24px;
  border-radius: 18px;
  border: 1px solid var(--c-line);
  background: #fff;
}
.service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.service-icon {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px;
  font-size: 1.6rem;
  margin-bottom: 14px;
}
.service-card h3 { margin-bottom: 8px; color: var(--c-navy); }
.service-card p { color: var(--c-text-muted); margin: 0; }

.service-blue   { background: linear-gradient(180deg,#fff,#fff); border-color: var(--s-blue-bd);   }
.service-blue   .service-icon { background: var(--s-blue-bg);   color: var(--s-blue-ic);   }
.service-green  { border-color: var(--s-green-bd);  }
.service-green  .service-icon { background: var(--s-green-bg);  color: var(--s-green-ic);  }
.service-amber  { border-color: var(--s-amber-bd);  }
.service-amber  .service-icon { background: var(--s-amber-bg);  color: var(--s-amber-ic);  }
.service-violet { border-color: var(--s-violet-bd); }
.service-violet .service-icon { background: var(--s-violet-bg); color: var(--s-violet-ic); }
.service-rose   { border-color: var(--s-rose-bd);   }
.service-rose   .service-icon { background: var(--s-rose-bg);   color: var(--s-rose-ic);   }
.service-teal   { border-color: var(--s-teal-bd);   }
.service-teal   .service-icon { background: var(--s-teal-bg);   color: var(--s-teal-ic);   }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
.about-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  object-fit: cover;
}
.check-list {
  margin: 8px 0 24px;
  display: grid; gap: 8px;
}
.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--c-text);
}
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: .5em;
  width: 18px; height: 18px;
  background: var(--s-green-bg);
  border-radius: 6px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d7a4c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='5 12 10 17 19 7'/></svg>");
  background-size: 12px 12px;
  background-repeat: no-repeat;
  background-position: center;
}
.about-cta {
  background: linear-gradient(135deg, #f8fafc 0%, #eaf2fe 100%);
  border-color: var(--s-blue-bd);
  margin-top: 8px;
}
.about-cta h3 { margin-bottom: 4px; }
.about-cta p { color: var(--c-text-muted); margin-bottom: 16px; }

/* ---------- Reference ---------- */
.reference { background: var(--c-bg-alt); }
.reference-card {
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 28px;
  border-radius: var(--radius-lg);
}
.reference-stars {
  color: #f4b400;
  font-size: 1.3rem;
  letter-spacing: 4px;
  margin-bottom: 14px;
}
.reference-text {
  font-family: var(--ff-serif);
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--c-charcoal);
  margin-bottom: 18px;
}
.reference-meta {
  color: var(--c-text-muted);
  font-size: .9rem;
}

/* ---------- Blog ---------- */
.blog-grid { gap: 22px; }
.blog-card { display: flex; flex-direction: column; gap: 10px; }
.blog-card h3 { margin: 0; font-size: 1.15rem; }
.blog-card h3 a { color: var(--c-navy); text-decoration: none; }
.blog-card h3 a:hover { color: var(--c-accent); }
.blog-card p { color: var(--c-text-muted); margin: 0; }
.blog-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card-link {
  margin-top: auto;
  font-weight: 600;
  color: var(--c-navy);
  align-self: flex-start;
}
.card-link:hover { color: var(--c-accent); }
.blog-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  border-radius: 999px;
  align-self: flex-start;
  text-transform: uppercase;
}
.tag-blue   { background: var(--s-blue-bg);   color: var(--s-blue-ic);   }
.tag-green  { background: var(--s-green-bg);  color: var(--s-green-ic);  }
.tag-amber  { background: var(--s-amber-bg);  color: var(--s-amber-ic);  }
.tag-violet { background: var(--s-violet-bg); color: var(--s-violet-ic); }
.tag-rose   { background: var(--s-rose-bg);   color: var(--s-rose-ic);   }
.tag-teal   { background: var(--s-teal-bg);   color: var(--s-teal-ic);   }

/* ---------- Contact ---------- */
.contact { background: #fff; }
.contact-grid {
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr;
}
.contact-info h2 { margin-top: 4px; }
.contact-list {
  display: grid; gap: 12px;
  margin-bottom: 24px;
}
.contact-list li {
  display: flex; align-items: flex-start; gap: 12px;
}
.contact-ico {
  width: 36px; height: 36px;
  background: var(--c-bg-soft);
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-photo img {
  border-radius: var(--radius);
  margin-top: 8px;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.contact-form-wrap { padding: 30px; }
.contact-form-wrap h3 { margin-bottom: 20px; }
.form-row { margin-bottom: 16px; }
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.form-row label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  color: var(--c-charcoal);
  margin-bottom: 6px;
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
  width: 100%;
  font: inherit;
  color: var(--c-text);
  padding: 12px 14px;
  border: 1px solid #d6dbe4;
  border-radius: 12px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px #b8d3ff;
  outline: none;
}
.form-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .92rem;
}
.form-check input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 3px;
  accent-color: var(--c-accent);
}
.form-check label {
  margin: 0;
  font-weight: 400;
  color: var(--c-text-muted);
}
.form-note {
  margin: 12px 0 0;
  text-align: center;
  font-size: .85rem;
  color: var(--c-text-muted);
}

/* Honeypot */
.hp {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Form status banner */
.form-status {
  display: none;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: .95rem;
  border: 1px solid transparent;
}
.form-status.show { display: block; }
.form-status.success {
  background: #e8f6ee;
  border-color: #c9eadb;
  color: var(--c-success);
}
.form-status.error {
  background: #fdebe9;
  border-color: #f3c8c2;
  color: var(--c-error);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-navy);
  color: #d8def0;
  padding-top: 56px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 36px;
}
.footer-col h4 {
  color: #fff;
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-col ul { display: grid; gap: 8px; }
.footer-col a { color: #c9d1e3; }
.footer-col a:hover { color: #fff; }
.logo-footer .logo-line1 { color: #aab4cc; }
.logo-footer .logo-line2 { color: #fff; }
.logo-footer .logo-mark { background: #fff; color: var(--c-navy); }
.footer-tagline { color: #aab4cc; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: .9rem;
  color: #aab4cc;
}
.footer-bottom p { margin: 0; }

/* ---------- Blog article pages ---------- */
.article-page main { background: #fff; }
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) 20px;
}
.article .blog-tag { margin-bottom: 14px; }
.article h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  margin-bottom: 18px;
}
.article p, .article li {
  font-size: 1.05rem;
  color: #2a3346;
}
.article h2 { font-size: 1.4rem; margin-top: 36px; }
.article h3 { font-size: 1.1rem; margin-top: 24px; }
.article ul { list-style: disc; padding-left: 22px; margin: 0 0 18px; }
.article ul li { margin-bottom: 6px; }
.article-back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--c-text-muted);
  font-weight: 500;
}
.article-back:hover { color: var(--c-navy); }
.article-cta {
  margin-top: 40px;
  padding: 24px;
  background: linear-gradient(135deg,#f8fafc,#eaf2fe);
  border-radius: var(--radius);
  border: 1px solid var(--s-blue-bd);
}
.article-cta h3 { margin-bottom: 8px; }
.article-cta p { color: var(--c-text-muted); margin-bottom: 14px; }

/* ---------- Responsive ---------- */
@media (min-width: 700px) {
  .cards.services-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid-2 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  .about-grid { grid-template-columns: .9fr 1.1fr; gap: 56px; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
  .cards.services-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}

@media (min-width: 1140px) {
  .blog-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Mobile nav ---------- */
@media (max-width: 880px) {
  .nav-toggle { display: inline-block; order: 3; }
  .header-actions .header-cta span { display: none; }
  .header-actions .header-cta { padding: 9px 14px; }
  .primary-nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .primary-nav.open { max-height: 480px; }
  .primary-nav ul {
    flex-direction: column;
    padding: 12px 20px 18px;
    gap: 0;
  }
  .primary-nav a {
    padding: 12px 8px;
    border-bottom: 1px solid var(--c-line);
    border-radius: 0;
  }
  .primary-nav li:last-child a { border-bottom: 0; }
  .header-inner { flex-wrap: wrap; }
}

/* Small screens */
@media (max-width: 480px) {
  .hero-buttons .btn { width: 100%; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .hero-stats strong { font-size: 1.4rem; }
  .logo-line1 { font-size: .9rem; }
  .logo-line2 { font-size: 1.1rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
