/* ============================================
   Design tokens — calm, soft, rounded
   ============================================ */
:root {
  --bg: #F5F7F3;
  --bg-alt: #E7F0EA;
  --ink: #263832;
  --ink-soft: #5B6E64;
  --primary: #3F7A6F;
  --primary-dark: #2F5F56;
  --gold: #E3A857;
  --line: #DCE7DE;
  --white: #FFFFFF;

  --heading: "Nunito", -apple-system, BlinkMacSystemFont, sans-serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;

  --measure: 62ch;
  --radius: 22px;
  --radius-sm: 12px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary-dark);
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
a:hover { color: var(--primary); }

h1, h2, h3 {
  font-family: var(--heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1.1em; max-width: var(--measure); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 720px; }

/* ============================================
   Header / nav
   ============================================ */
.site-header {
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
  gap: 24px;
  position: relative;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* CTA link duplicated inside the mobile dropdown menu; hidden everywhere else */
.nav-cta-mobile { display: none; }

.brand {
  font-family: var(--heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary-dark);
  text-decoration: none;
  white-space: nowrap;
}
/* Global img{display:block} forces the logo onto its own line inside .brand;
   keep it inline-block here so it sits on the same row as the name. */
.brand img { display: inline-block; }

nav.primary { display: flex; gap: 24px; flex-wrap: wrap; }

nav.primary a {
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
nav.primary a:hover,
nav.primary a[aria-current="page"] {
  color: var(--primary-dark);
  border-bottom-color: var(--gold);
}

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--primary-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.nav-toggle:hover { background: var(--bg-alt); }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================
   Hero
   ============================================ */
.hero { padding: 56px 0 80px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  align-items: center;
}

.hero-eyebrow {
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.hero p.lede { font-size: 1.15rem; color: var(--ink-soft); }

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  text-decoration: none !important;
  border: 2px solid var(--primary);
}
.btn-primary { background: var(--primary); color: var(--white) !important; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-secondary { background: transparent; color: var(--primary-dark) !important; }
.btn-secondary:hover { background: var(--bg-alt); }

.photo-frame {
  aspect-ratio: 4/5;
  background: var(--bg-alt);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  text-align: center;
  padding: 24px;
  overflow: hidden;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.photo-frame video { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); display: block; }
.photo-frame iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius); display: block; }
.photo-frame.wide { aspect-ratio: 16/10; }
/* Any frame holding a video/embed gets the footage's own 16:9 ratio instead of
   the portrait-photo default, so cover-fit never crops the footage or on-screen text. */
.photo-frame:has(video), .photo-frame:has(iframe) { aspect-ratio: 16/9; }

/* ============================================
   Sections
   ============================================ */
section { padding: 60px 0; }
section.alt { background: var(--bg-alt); }

.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head p { color: var(--ink-soft); }

/* Reassurance strip — soft rounded panels */
.reassure-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 20px;
}
.reassure-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.reassure-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(38, 56, 50, 0.10);
}
.reassure-item h3 { font-size: 1.05rem; margin: 0; color: var(--primary-dark); }
.reassure-item p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }

/* Icon + title share one row, so all three cards line up the same way */
.reassure-item-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

/* Icon badges — soft organic blob in brand gradient behind a simple line icon */
.reassure-icon-badge {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: radial-gradient(circle at 32% 26%, var(--gold) 0%, var(--primary) 55%, var(--primary-dark) 100%);
  border-radius: 42% 58% 55% 45% / 45% 40% 60% 55%;
  box-shadow: 0 10px 20px rgba(63, 122, 111, 0.22);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-radius 0.4s ease;
}
.reassure-icon-badge svg {
  width: 22px;
  height: 22px;
  display: block;
}
.reassure-item:hover .reassure-icon-badge {
  transform: rotate(-8deg) scale(1.1);
  border-radius: 58% 42% 45% 55% / 55% 55% 45% 45%;
}

/* Two-column text+photo blocks */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}
.split.reverse .split-photo { order: 2; }

/* Numbered sequence — soft rounded steps */
.steps { counter-reset: step; margin-top: 8px; }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  padding: 22px 24px;
  background: var(--white);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
.step:before {
  content: counter(step);
  font-family: var(--heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--white);
  background: var(--primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink-soft); }

/* Client-phrase quote block */
.phrase-block {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 26px 0;
}
.phrase-block p {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin: 0;
}

/* FAQ (native details/summary) */
.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  padding: 0 22px;
}
.faq-item summary {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:after {
  content: "+";
  font-size: 1.4rem;
  color: var(--gold);
  flex-shrink: 0;
}
.faq-item[open] summary:after { content: "\2013"; }
.faq-item .faq-answer { padding-bottom: 22px; color: var(--ink-soft); }

/* Testimonials */
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 16px;
}
.testimonial p.quote {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
}
.testimonial .attribution { font-size: 0.88rem; color: var(--ink-soft); }
.testimonial .draft-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: none;
  margin: 0 0 8px;
}
.testimonial .stars {
  color: var(--gold);
  letter-spacing: 2px;
  font-size: 0.95rem;
  margin: 0 0 10px;
  display: block;
}
.testimonial .source-tag {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin: 10px 0 0;
}
.testimonial .source-tag a { color: var(--ink-soft); text-decoration: underline; }
.testimonial .source-tag a:hover { color: var(--primary-dark); }

/* SuperDoc.bg trust badge — a visual CTA button, photo + stars + real logo.
   No live numbers here on purpose (rating/review count would need manual
   updates as reviews grow) — the platform's own page is the source of truth. */
.superdoc-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 7px 20px 7px 7px;
  text-decoration: none !important;
  box-shadow: 0 6px 16px rgba(38, 56, 50, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.superdoc-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(38, 56, 50, 0.14);
}
.superdoc-badge-photo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.superdoc-badge-stars {
  color: var(--gold);
  letter-spacing: 1px;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.superdoc-badge-divider {
  width: 1px;
  height: 18px;
  background: var(--line);
  flex-shrink: 0;
}
.superdoc-badge-logo { height: 15px; width: auto; display: block; flex-shrink: 0; }

/* Homepage version — slightly larger, centered under the hero */
.superdoc-badge-wrap { text-align: center; margin-top: 22px; }
.superdoc-badge--lg .superdoc-badge-photo { width: 44px; height: 44px; }
.superdoc-badge--lg .superdoc-badge-stars { font-size: 1.05rem; }
.superdoc-badge--lg .superdoc-badge-logo { height: 17px; }
.superdoc-badge--lg { padding: 8px 22px 8px 8px; }

/* Reviews-page version — full width row */
.superdoc-badge--block { display: flex; width: fit-content; margin: 0 0 28px; }

/* Office gallery — swipeable, scroll-snap, no JS framework */
.gallery { position: relative; max-width: 420px; margin: 0 auto; }
.gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: var(--radius);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 4/5;
  background: var(--bg-alt);
}
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.92);
  color: var(--primary-dark);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(38, 56, 50, 0.18);
}
.gallery-arrow:hover { background: var(--white); }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.gallery-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  border: none;
  padding: 0;
  cursor: pointer;
}
.gallery-dot.active { background: var(--primary); }

/* Map / contact */
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 8px;
}
.map-frame iframe { display: block; width: 100%; height: 380px; border: 0; }

.contact-details { margin-top: 8px; }
.contact-details dt { font-size: 0.85rem; color: var(--ink-soft); margin-top: 18px; }
.contact-details dd {
  margin: 4px 0 0;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-dark);
}

/* Contact form */
.contact-form { margin-top: 8px; }
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-success {
  display: none;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 20px;
  color: var(--primary-dark);
  font-weight: 700;
}
.form-success.show { display: block; }

#contact-form { scroll-margin-top: 96px; }

/* Footer */
footer {
  padding: 40px 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}
footer a { color: var(--ink-soft); text-decoration: none; }
footer a:hover { color: var(--primary-dark); text-decoration: underline; }
footer .footer-links { margin-top: 10px; font-size: 0.85rem; }
footer .footer-legal { margin-top: 18px; font-size: 0.78rem; opacity: 0.8; }
footer .footer-review-note { margin-top: 10px; font-size: 0.85rem; }
footer .footer-credit {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  opacity: 0.55;
}
footer .footer-credit a { text-decoration: none; }
footer .footer-credit a:hover { text-decoration: underline; }

/* Click-to-reveal phone number: last 6 digits are masked in the markup
   and swapped in on first click/tap, as a light deterrent against
   automated scraping of the number straight off the page. */
a.tel-mask { cursor: pointer; }

/* CTA band */
.cta-band { text-align: left; padding: 52px 0; }
.cta-band h2 { margin-bottom: 12px; }

/* Blog index grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none !important;
  color: var(--ink) !important;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(38, 56, 50, 0.12); }
.blog-card .blog-card-cover {
  aspect-ratio: 16/9;
  background: var(--bg-alt);
}
.blog-card .blog-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card .blog-card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card .blog-card-cat {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.blog-card h3 { font-size: 1.12rem; margin-bottom: 8px; line-height: 1.3; }
.blog-card p { font-size: 0.94rem; color: var(--ink-soft); margin: 0; flex: 1; }
.blog-card .blog-card-more { margin-top: 14px; font-size: 0.88rem; font-weight: 700; color: var(--primary-dark); }

.blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.blog-filter a {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--bg-alt);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  text-decoration: none !important;
}
.blog-filter a:hover, .blog-filter a.active { background: var(--primary); color: var(--white) !important; }

/* Article page */
.article-cover {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 8px;
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-body h2 { margin-top: 1.6em; }
.article-body h3 { margin-top: 1.3em; }
.article-body p { font-size: 1.05rem; }

.inline-cta {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin: 40px 0;
  text-align: left;
}
.inline-cta p.kicker {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.inline-cta h3 { margin-bottom: 8px; }
.inline-cta p.detail { color: var(--ink-soft); margin-bottom: 18px; }

.article-related {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 12px;
}

/* ============================================
   Pricing page
   ============================================ */
.price-note {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 12px;
}
.price-note p { margin: 0; color: var(--ink-soft); }
.price-note p + p { margin-top: 10px; }

.price-group { margin-top: 52px; }
.price-group:first-of-type { margin-top: 8px; }
.price-group-head { margin-bottom: 22px; }
.price-group-head h2 { font-size: 1.35rem; margin-bottom: 6px; }
.price-group-head p { color: var(--ink-soft); margin: 0; font-size: 0.96rem; }

.price-list { border-top: 1px solid var(--line); }
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.price-row-name {
  font-family: var(--heading);
  font-weight: 800;
  color: var(--ink);
  font-size: 1.05rem;
  margin: 0 0 5px;
}
.price-row-desc { color: var(--ink-soft); font-size: 0.94rem; margin: 0; max-width: 46ch; }
.price-row-amount {
  text-align: right;
  white-space: nowrap;
  font-family: var(--heading);
  font-weight: 800;
  color: var(--primary-dark);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.price-row-unit {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 0.82rem;
  margin-top: 3px;
}

.price-row.featured {
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 22px 22px;
  border-bottom: none;
  margin-bottom: 6px;
}
.price-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--white);
  background: var(--primary);
  border-radius: var(--radius-pill);
  padding: 4px 11px;
  margin-bottom: 9px;
}

.price-closing {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.price-closing p { color: var(--ink-soft); }

@media (max-width: 560px) {
  .price-row { flex-direction: column; gap: 4px; }
  .price-row-amount { text-align: left; }
}

/* Responsive */
@media (max-width: 820px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .split .split-photo { order: -1; }
  .reassure-strip { grid-template-columns: 1fr; }

  /* Video leads on mobile: show it before the headline, not after */
  .hero-media { order: -1; }

  /* The header row only has room for the logo + menu button on small screens;
     the "Безплатен разговор" pill moves into the dropdown instead of crowding it. */
  .nav-row { gap: 10px; }
  .brand { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .nav-right .nav-cta { display: none; }

  .nav-toggle { display: flex; }

  nav.primary {
    display: none;
    flex-direction: column;
    gap: 2px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 8px 28px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(38, 56, 50, 0.10);
  }
  nav.primary.open { display: flex; }
  nav.primary a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    border-bottom-width: 1px !important;
  }
  nav.primary a:last-child { border-bottom: none; }

  nav.primary a.nav-cta-mobile {
    display: block;
    margin-top: 12px;
    background: var(--primary);
    color: var(--white) !important;
    text-align: center;
    padding: 13px 0;
    border-radius: var(--radius-pill);
    border-bottom: none !important;
  }
}

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

a:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
