/* =========================================================
   BludivyNerv.sk — vlastné štýly
   ========================================================= */

:root {
  --primary: #1f6f6b;
  --primary-dark: #123f3d;
  --primary-light: #eaf5f3;
  --accent: #ff8a5c;
  --accent-dark: #e96f3f;
  --ink: #16302c;
  --muted: #5c716d;
  --bg: #f8faf9;
  --card-bg: #ffffff;
  --border: #e3ece9;
  --shadow: 0 10px 30px rgba(18, 63, 61, 0.08);
  --radius: 18px;
  --font-heading: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .navbar-brand, .footer-brand {
  font-family: var(--font-heading);
}

.text-accent { color: var(--accent); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 2000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Navbar ---------- */
#mainNav {
  padding: 1rem 0;
  transition: all .3s ease;
  background: transparent;
}
#mainNav.scrolled {
  padding: .6rem 0;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(18, 63, 61, .08);
}
.navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: .5rem;
}
#mainNav.scrolled .navbar-brand,
#mainNav.scrolled .nav-link { color: var(--ink); }
.hero ~ * #mainNav {} /* noop guard */
.navbar-brand .brand-accent,
.footer-brand .brand-accent { color: var(--accent); }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
}
.navbar-nav .nav-link {
  font-weight: 500;
  color: rgba(255,255,255,.92);
  margin: 0 .3rem;
  font-size: .95rem;
  position: relative;
}
#mainNav.scrolled .navbar-nav .nav-link { color: var(--ink); }
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .25s ease;
}
.navbar-nav .nav-link:hover::after { width: 100%; }
.navbar-nav .nav-link.active {
  color: #fff;
  font-weight: 700;
}
.navbar-nav .nav-link.active::after { width: 100%; }
#mainNav.scrolled .navbar-nav .nav-link.active { color: var(--accent-dark); }
.navbar-toggler { border: none; box-shadow: none !important; }

@media (max-width: 1199.98px) {
  .navbar-collapse {
    background: #fff;
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  .navbar-nav .nav-link { color: var(--ink) !important; }
  .navbar-nav .nav-link.active { color: var(--accent-dark) !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 9.5rem 0 6rem;
  background: linear-gradient(150deg, var(--primary-dark) 0%, var(--primary) 55%, #2a8a83 100%);
  color: #fff;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,138,92,.35) 0%, rgba(255,138,92,0) 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  padding: .4rem .9rem;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero-lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,.88);
  max-width: 520px;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: 100px;
  padding: .75rem 1.6rem;
}
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-outline-light {
  border-radius: 100px;
  font-weight: 600;
  padding: .75rem 1.6rem;
}

.hero-visual { display: flex; justify-content: center; }
.vagus-illustration { width: 100%; max-width: 400px; height: auto; }
.vagus-illustration .ring { fill: none; stroke: rgba(255,255,255,.15); }
.vagus-illustration .ring-2 { stroke: rgba(255,255,255,.25); }
.vagus-illustration .vagus-path { animation: dash 6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -200; } }
.vagus-illustration .node { fill: rgba(255,255,255,.14); stroke: #fff; stroke-width: 1.5; }
.vagus-illustration .node-icon { font-size: 22px; }

.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 70px; display: block; }
.hero-wave path { fill: var(--bg); }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section-alt { background: var(--primary-light); }
.section-eyebrow {
  display: inline-block;
  color: var(--accent-dark);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .8rem;
  margin-bottom: .6rem;
}
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1rem;
}
.section-text { color: var(--muted); font-size: 1.05rem; line-height: 1.75; }

/* Info cards (co je to) */
.info-card-stack { display: flex; flex-direction: column; gap: 1rem; }
.info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow);
  transition: transform .25s ease;
}
.info-card:hover { transform: translateY(-4px); }
.info-card i { font-size: 1.6rem; color: var(--primary); margin-top: .1rem; }
.info-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .25rem; }
.info-card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Feature / cause / technique cards */
.feature-card, .cause-card, .technique-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  height: 100%;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover, .cause-card:hover, .technique-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(18,63,61,.12);
}
.feature-icon, .cause-icon, .technique-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
}
.feature-icon { background: var(--primary-light); color: var(--primary); }
.cause-icon { background: #fff1ea; color: var(--accent-dark); }
.technique-icon { background: var(--primary-light); color: var(--primary); }

.feature-card h3, .cause-card h3, .technique-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.feature-card p, .cause-card p, .technique-card p {
  color: var(--muted);
  font-size: .95rem;
  margin: 0;
  line-height: 1.65;
}

.technique-card { position: relative; overflow: hidden; }
.technique-index {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--primary-light);
  -webkit-text-stroke: 1px var(--border);
}

/* ---------- Sympatikus / Parasympatikus ---------- */
.ans-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.ans-card {
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.ans-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 5px;
  height: 100%;
}
.ans-card i { font-size: 1.6rem; margin-bottom: .6rem; display: block; }
.ans-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .2rem; }
.ans-card .ans-subtitle { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .6rem; }
.ans-card p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.6; }

.ans-card-symp { background: #fff6ed; }
.ans-card-symp::before { background: var(--accent); }
.ans-card-symp i, .ans-card-symp .ans-subtitle { color: var(--accent-dark); }

.ans-card-para { background: var(--primary-light); }
.ans-card-para::before { background: var(--primary); }
.ans-card-para i, .ans-card-para .ans-subtitle { color: var(--primary); }

.ans-table-wrap {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: .5rem 0 .5rem;
  overflow: hidden;
}
.ans-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.ans-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 700;
  font-size: .85rem;
  padding: .4rem .8rem;
  border-radius: 100px;
}
.ans-badge-symp { background: #fff1ea; color: var(--accent-dark); }
.ans-badge-para { background: var(--primary-light); color: var(--primary); }
.ans-mid-label {
  display: none;
  color: var(--muted);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
}
@media (min-width: 576px) {
  .ans-mid-label { display: inline-block; }
}

.ans-table { padding: 0 1.5rem; }
.ans-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.ans-row:last-child { border-bottom: none; }
.ans-mid { order: 2; text-align: center; font-weight: 600; color: var(--ink); font-size: .92rem; min-width: 160px; }
.ans-side { font-size: .92rem; font-weight: 500; }
.ans-side-symp { order: 1; text-align: right; color: var(--accent-dark); }
.ans-side-para { order: 3; text-align: left; color: var(--primary); }

@media (max-width: 575.98px) {
  .ans-table-head { justify-content: flex-start; gap: .6rem; flex-wrap: wrap; }
  .ans-row { grid-template-columns: 1fr; gap: .3rem; padding: 1rem 0; }
  .ans-mid { order: 1; text-align: left; min-width: 0; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
  .ans-side-symp { order: 2; text-align: left; }
  .ans-side-para { order: 3; text-align: left; }
}

.insight-box {
  display: flex;
  gap: 1.3rem;
  align-items: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-top: 2.5rem;
  position: relative;
  overflow: hidden;
}
.insight-box::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(to right, var(--accent), var(--primary));
}
.insight-icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--primary));
}
.insight-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .8rem;
}
.insight-content p {
  color: var(--muted);
  font-size: .97rem;
  line-height: 1.75;
  margin-bottom: .9rem;
}

@media (max-width: 575.98px) {
  .insight-box { flex-direction: column; padding: 1.5rem; }
}

/* ---------- Anatomy diagram ---------- */
.anatomy-diagram {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
  max-width: 420px;
  margin: 0 auto;
}
.body-illustration { width: 100%; height: auto; display: block; }
.body-illustration .body-shape {
  fill: url(#bodyFade);
  stroke: var(--primary);
  stroke-opacity: .35;
  stroke-width: 2;
}
.body-illustration .vagus-path {
  stroke: var(--accent-dark);
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-dasharray: 7 8;
  opacity: .85;
  animation: dash 6s linear infinite;
}
.anatomy-node circle {
  fill: var(--accent);
  stroke: #fff;
  stroke-width: 3;
  filter: drop-shadow(0 3px 8px rgba(233, 111, 63, .45));
  transform-box: fill-box;
  transform-origin: center;
  animation: nodePulse 2.6s ease-in-out infinite;
}
.anatomy-node:nth-of-type(2n) circle { animation-delay: .4s; }
.anatomy-node:nth-of-type(3n) circle { animation-delay: .8s; }
.anatomy-node text {
  fill: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  text-anchor: middle;
}
@keyframes nodePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.anatomy-legend {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.anatomy-legend li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow);
}
.legend-num {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.anatomy-legend h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: .25rem; }
.anatomy-legend p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.6; }

/* Symptom list */
.symptom-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .9rem; }
.symptom-list li {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  font-weight: 500;
}
.symptom-list i { color: var(--primary); font-size: 1.2rem; margin-top: .1rem; }

/* FAQ accordion */
.faq-accordion .accordion-item {
  border: 1px solid var(--border);
  border-radius: 14px !important;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.faq-accordion .accordion-button {
  font-weight: 600;
  color: var(--ink);
  background: var(--card-bg);
}
.faq-accordion .accordion-button:not(.collapsed) {
  background: var(--primary-light);
  color: var(--primary-dark);
  box-shadow: none;
}
.faq-accordion .accordion-button:focus { box-shadow: none; border-color: var(--border); }
.faq-accordion .accordion-body { color: var(--muted); line-height: 1.7; }

/* Disclaimer */
.disclaimer-section { padding-top: 0; padding-bottom: 5rem; }
.disclaimer-box {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: #fff6ed;
  border: 1px solid #ffdcc0;
  border-radius: var(--radius);
  padding: 1.6rem;
}
.disclaimer-box i { font-size: 1.6rem; color: var(--accent-dark); margin-top: .15rem; }
.disclaimer-box h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .35rem; }
.disclaimer-box p { margin: 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.85);
  padding: 4.5rem 0 2rem;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
  margin-bottom: .9rem;
}
.footer-text { color: rgba(255,255,255,.65); font-size: .95rem; line-height: 1.7; }
.footer-heading { color: #fff; font-weight: 700; margin-bottom: 1rem; font-size: .95rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { color: rgba(255,255,255,.65); text-decoration: none; font-size: .95rem; }
.footer-links a:hover { color: var(--accent); }
.footer-divider { border-color: rgba(255,255,255,.15); margin: 2.5rem 0 1.5rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 8px 20px rgba(233,111,63,.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .3s ease;
  z-index: 1000;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-dark); color: #fff; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 767.98px) {
  .section { padding: 4rem 0; }
  .hero { padding: 7.5rem 0 4.5rem; }
}
