/*
Theme Name: Business ON Consult
Theme URI: https://example.bg
Author: Business ON Consult EOOD
Author URI: https://example.bg
Description: Делова тема за адвокатска кантора, специализирана в превалутиране на капитал. Многоезична (BG/EN/DE/RU), с минималистичен редакторски дизайн.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: business-on-consult
Tags: business, law, multilingual, minimal, custom-colors, custom-menu, translation-ready
*/

:root {
  --ink: #1a1d24;
  --ink-soft: #4a4f5a;
  --ink-light: #7a8090;
  --paper: #f7f5f0;
  --paper-warm: #efeae0;
  --rule: #d4ceba;
  --accent: #8b1a1a;
  --accent-soft: #b03838;
  --gold: #a68b3f;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 32px; }

/* ===== Top bar ===== */
.topbar {
  background: var(--ink);
  color: var(--paper-warm);
  font-size: 13px;
  padding: 10px 0;
  letter-spacing: 0.02em;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.topbar a { color: var(--paper-warm); }
.topbar a:hover { color: var(--gold); }

/* ===== Language switcher (Polylang) ===== */
.lang-switch { display: flex; gap: 4px; align-items: center; list-style: none; padding: 0; margin: 0; }
.lang-switch li { display: inline-block; }
.lang-switch a {
  background: transparent;
  border: 1px solid rgba(247, 245, 240, 0.25);
  color: var(--paper-warm);
  padding: 4px 10px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}
.lang-switch a:hover { border-color: var(--gold); color: var(--gold); }
.lang-switch .current-lang a,
.lang-switch li.current-lang a {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

/* ===== Header ===== */
.site-header { border-bottom: 1px solid var(--rule); padding: 28px 0; background: var(--paper); }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.site-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--ink);
}
.site-logo-sub {
  font-family: 'Inter Tight', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-top: 4px;
}
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 36px;
  font-size: 14px;
  letter-spacing: 0.02em;
  margin: 0;
  padding: 0;
}
.main-nav a {
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--accent); }

/* ===== Notice bar ===== */
.notice {
  background: var(--accent);
  color: var(--paper);
  padding: 14px 0;
  font-size: 14px;
  text-align: center;
  letter-spacing: 0.02em;
}
.notice strong { font-weight: 600; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-back {
  position: fixed;
  top: 50%;
  left: 2rem;
  transform: translateY(-50%);
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-size: .9rem;
  background: var(--paper, #f5f0e8) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

/* ===== Hero ===== */
.hero { padding: 100px 0 80px; position: relative; overflow: hidden; }
.hero::before {
  content: '';
  position: absolute;
  top: 60px; right: -120px;
  width: 380px; height: 380px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  opacity: 0.6;
}
.hero::after {
  content: '€';
  position: absolute;
  top: 50%; right: 60px;
  transform: translateY(-50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: 280px;
  font-weight: 400;
  color: var(--paper-warm);
  z-index: 0;
  line-height: 1;
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--accent); }
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 64px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  color: var(--ink);
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-lead { font-size: 19px; line-height: 1.55; color: var(--ink-soft); max-width: 580px; margin-bottom: 40px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 32px 0;
}
.stat { padding: 0 28px; border-right: 1px solid var(--rule); }
.stat:last-child { border-right: none; }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-light); }

/* ===== Sections ===== */
section { padding: 90px 0; }
.section-head { margin-bottom: 64px; max-width: 720px; }
.section-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 18px;
}
h2.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 46px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 20px;
}
.section-lead { font-size: 17px; line-height: 1.6; color: var(--ink-soft); }

/* ===== Law section ===== */
.law-section { background: var(--paper-warm); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.law-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.law-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
  padding-left: 32px;
  border-left: 2px solid var(--accent);
  margin-bottom: 28px;
}
.law-cite { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-light); }
.law-text p { margin-bottom: 18px; color: var(--ink-soft); font-size: 16px; }
.law-text strong { color: var(--ink); font-weight: 500; }

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--rule);
  background: var(--paper);
}
.pkg { padding: 44px 36px; border-right: 1px solid var(--rule); background: var(--paper); transition: background 0.25s; }
.pkg:last-child { border-right: none; }
.pkg:hover { background: var(--paper-warm); }
.pkg-name { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 600; margin-bottom: 8px; }
.pkg-for { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-light); margin-bottom: 32px; }
.pkg-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--ink);
}
.pkg-price .cur { font-size: 26px; vertical-align: top; margin-right: 4px; }
.pkg-price-bgn { font-size: 16px; color: var(--ink-light); margin-bottom: 8px; letter-spacing: 0.02em; }
.pkg-vat { font-size: 12px; color: var(--ink-light); margin-bottom: 32px; letter-spacing: 0.05em; }
.modal-amount-bgn { color: var(--ink-light); font-size: 0.85em; }
.pkg-features { list-style: none; margin-bottom: 36px; padding-top: 24px; padding-left: 0; border-top: 1px solid var(--rule); }
.pkg-features li {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  padding: 10px 0 10px 24px;
  position: relative;
}
.pkg-features li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }
.pkg .btn { width: 100%; text-align: center; }

/* ===== Process ===== */
.process-section { background: var(--ink); color: var(--paper); }
.process-section h2.section-title { color: var(--paper); }
.process-section .section-eyebrow { color: var(--gold); }
.process-section .section-lead { color: rgba(247, 245, 240, 0.7); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 40px; }
.step { padding: 36px 28px 36px 0; border-right: 1px solid rgba(212, 206, 186, 0.2); }
.step:last-child { border-right: none; }
.step-num {
  font-family: 'Cormorant Garamond', serif;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1, "onum" 0;
  font-size: 56px;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 20px;
}
.step-title { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; margin-bottom: 12px; color: var(--paper); }
.step-desc { font-size: 14.5px; line-height: 1.55; color: rgba(247, 245, 240, 0.7); }

/* ===== FAQ ===== */
.faq-list { border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 0;
  cursor: pointer;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  user-select: none;
}
.faq-q:hover { color: var(--accent); }
.faq-toggle { font-family: 'Cormorant Garamond', serif; font-size: 24px; color: var(--ink-light); transition: transform 0.3s; flex-shrink: 0; margin-left: 24px; }
.faq-item.open .faq-toggle { transform: rotate(45deg); color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.open .faq-a { max-height: 500px; }
.faq-a-inner { padding: 0 0 28px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.65; max-width: 820px; }

/* ===== Contact / Order ===== */
.contact-section { background: var(--paper-warm); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.contact-info h3 { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 500; margin-bottom: 8px; }
.contact-info p { color: var(--ink-soft); margin-bottom: 28px; font-size: 16px; line-height: 1.6; }
.contact-row { padding: 18px 0; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 24px; }
.contact-row:last-child { border-bottom: none; }
.contact-label { font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-light); flex-shrink: 0; }
.contact-val { font-size: 15px; color: var(--ink); text-align: right; }

/* ===== Forms (CF7 compatible) ===== */
.order-form { display: flex; flex-direction: column; gap: 20px; }
.order-form label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 8px;
}
.order-form input,
.order-form select,
.order-form textarea,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 0;
  transition: border-color 0.2s;
}
.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus,
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  outline: none;
  border-color: var(--ink);
}
.order-form textarea, .wpcf7 textarea { resize: vertical; min-height: 120px; }

/* Native order form layout */
.order-form .form-field { display: flex; flex-direction: column; }
.order-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.order-form .btn { width: 100%; text-align: center; margin-top: 4px; }
.order-form .btn:disabled { opacity: 0.6; cursor: default; pointer-events: none; }

/* Honeypot — скрито от хора, видимо за ботове */
.boc-hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Form status messages */
.form-status { font-size: 14px; line-height: 1.5; }
.form-status:empty { display: none; }
.form-status--ok { color: #2e6b3e; }
.form-status--error { color: var(--accent); }

/* Hint under the submit button */
.order-form .form-hint { font-size: 13px; color: var(--ink-light); line-height: 1.5; margin-top: -4px; }

/* Consent */
.consent { display: flex; align-items: flex-start; gap: 12px; padding: 16px 0 4px; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }
.consent input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--accent); cursor: pointer; }
.consent label { font-size: 13.5px; letter-spacing: 0; text-transform: none; color: var(--ink-soft); margin: 0; cursor: pointer; }
.consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: var(--ink); }

/* ===== Modal ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(26, 29, 36, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--paper);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 48px 48px 40px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-close {
  position: absolute; top: 18px; right: 22px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-light);
  line-height: 1;
}
.modal-close:hover { color: var(--accent); }
.modal-eyebrow { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.modal h3 { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 500; margin-bottom: 12px; line-height: 1.15; }
.modal-summary { color: var(--ink-soft); margin-bottom: 28px; font-size: 15.5px; line-height: 1.6; padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.modal-amount { font-family: 'Cormorant Garamond', serif; font-size: 36px; color: var(--ink); display: inline; }
.modal-amount .cur { font-size: 22px; vertical-align: top; margin-right: 4px; }

.pay-methods { display: flex; flex-direction: column; gap: 14px; }
.pay-method { border: 1px solid var(--rule); padding: 0; background: var(--paper); transition: border-color 0.2s; }
.pay-method:hover { border-color: var(--ink); }
.pay-method-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; cursor: pointer; }
.pay-method-label { display: flex; align-items: center; gap: 14px; font-weight: 500; font-size: 16px; }
.pay-method-icon {
  width: 38px; height: 28px;
  background: var(--paper-warm);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600; font-size: 13px;
  color: var(--ink);
  border: 1px solid var(--rule);
}
.pay-method-toggle { font-family: 'Cormorant Garamond', serif; font-size: 22px; color: var(--ink-light); transition: transform 0.25s; }
.pay-method.open .pay-method-toggle { transform: rotate(45deg); color: var(--accent); }
.pay-method-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.pay-method.open .pay-method-body { max-height: 400px; }
.pay-method-body-inner { padding: 0 22px 22px; }
.pay-method-body-inner p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 14px; }
.pay-detail { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--rule); font-size: 14px; }
.pay-detail:last-of-type { border-bottom: none; }
.pay-detail-label { color: var(--ink-light); }
.pay-detail-val { color: var(--ink); font-family: monospace; font-size: 13px; }
.pay-note { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-light); line-height: 1.6; }
.modal-legal { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--rule); font-size: 12.5px; color: var(--ink-light); line-height: 1.55; }
.modal-legal a { color: var(--ink-soft); text-decoration: underline; }

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: rgba(247, 245, 240, 0.7);
  padding: 64px 0 32px;
  font-size: 14px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.site-footer h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--paper);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: rgba(247, 245, 240, 0.7); }
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(212, 206, 186, 0.15);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(247, 245, 240, 0.5);
  letter-spacing: 0.05em;
}

/* ===== Legal pages ===== */
.legal-page .page-header { padding: 80px 0 50px; border-bottom: 1px solid var(--rule); }
.legal-page h1.page-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.legal-page .page-meta { font-size: 13px; color: var(--ink-light); letter-spacing: 0.05em; }
.legal-content { padding: 60px 0 100px; }
.legal-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  margin: 56px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.legal-content h3 { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; color: var(--ink); margin: 32px 0 12px; }
.legal-content p { margin-bottom: 16px; color: var(--ink-soft); }
.legal-content strong { color: var(--ink); font-weight: 500; }
.legal-content ul, .legal-content ol { margin: 12px 0 20px 24px; }
.legal-content li { margin-bottom: 8px; color: var(--ink-soft); }
.legal-content li::marker { color: var(--accent); }
.legal-content a { color: var(--accent); text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }

.callout { background: var(--paper-warm); border-left: 3px solid var(--accent); padding: 20px 24px; margin: 24px 0; font-size: 15px; color: var(--ink-soft); }
.callout strong { color: var(--ink); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .hero-title { font-size: 42px; }
  h2.section-title, .legal-page h1.page-title { font-size: 34px; }
  .hero { padding: 60px 0 50px; }
  .hero::after { font-size: 180px; right: -20px; }
  .hero-stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--rule); padding: 20px 0; }
  .stat:last-child { border-bottom: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pkg { border-right: none; border-bottom: 1px solid var(--rule); }
  .pkg:last-child { border-bottom: none; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid rgba(212, 206, 186, 0.2); padding: 28px 0; }
  .step:last-child { border-bottom: none; }
  .law-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .order-form .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .main-nav ul { display: none; }
  section { padding: 60px 0; }
  .modal { padding: 36px 28px 28px; }
  .topbar-inner { flex-direction: column; gap: 8px; align-items: flex-start; }
}
