/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 50px;
  padding: 0.75rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 640;
  letter-spacing: -0.01em;
  line-height: 1;
  text-align: center;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: var(--on-dark);
}

.btn-primary:hover {
  background: var(--brand-2);
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}

.btn-gold:hover {
  background: #e6b458;
}

.btn-ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--surface);
}

.btn-on-dark {
  background: var(--on-dark);
  color: var(--brand);
}

.btn-on-dark:hover {
  background: #ffffff;
}

.btn-sm {
  min-height: 42px;
  padding: 0.6rem 1.1rem;
  font-size: var(--text-sm);
}

.btn .arrow {
  transition: transform var(--transition);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--text-sm);
  font-weight: 640;
  color: var(--brand-2);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), gap var(--transition);
}

.link-arrow:hover {
  border-color: currentColor;
  gap: 0.7rem;
}

.section-dark .link-arrow {
  color: var(--gold);
}

/* Badges & pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-gold {
  border-color: transparent;
  background: var(--gold-soft);
  color: #6c4d0e;
}

.badge-dark {
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, 0.06);
  color: var(--on-dark-muted);
}

.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  background: rgba(245, 243, 238, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(245, 243, 238, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.08rem;
  font-weight: 720;
  letter-spacing: -0.03em;
}

.brand img {
  width: 30px;
  height: 30px;
}

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

.nav a {
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  font-size: var(--text-sm);
  font-weight: 540;
  transition: color var(--transition), background var(--transition);
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: rgba(11, 59, 46, 0.07);
  color: var(--brand);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 650;
}

.lang-switch a {
  padding: 0.28rem 0.52rem;
  border-radius: var(--radius-pill);
  color: var(--muted);
  line-height: 1;
}

.lang-switch a[aria-current="true"] {
  background: var(--brand);
  color: var(--on-dark);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 17px;
  height: 1.6px;
  background: var(--ink);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle {
  flex-direction: column;
  gap: 4px;
}

.site-header.is-open .nav-toggle span {
  opacity: 0;
}

.site-header.is-open .nav-toggle::before {
  transform: translateY(5.6px) rotate(45deg);
}

.site-header.is-open .nav-toggle::after {
  transform: translateY(-5.6px) rotate(-45deg);
}

/* Cards */
.card {
  position: relative;
  padding: clamp(1.4rem, 2.5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.card-soft {
  background: var(--surface-2);
  box-shadow: none;
}

.card h3 + p {
  margin-top: var(--space-3);
}

.card p {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.62;
}

.card-number {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--gold-strong);
  letter-spacing: 0.08em;
}

/* Stat */
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: var(--text-metric);
  font-weight: 620;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-label {
  color: var(--muted);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-dark .stat-label {
  color: var(--on-dark-muted);
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-size: var(--text-sm);
  font-weight: 580;
}

.field .hint {
  color: var(--muted);
  font-size: var(--text-xs);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: var(--text-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand-3);
  box-shadow: 0 0 0 3px rgba(26, 107, 81, 0.14);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.5;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--brand);
}

.form-note {
  color: var(--muted);
  font-size: var(--text-xs);
}

.form-status {
  display: none;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}

.form-status.is-success {
  display: block;
  background: #e7f3ed;
  color: #12533f;
  border: 1px solid #bfdecb;
}

.form-status.is-error {
  display: block;
  background: #fbeae5;
  color: #8a3320;
  border: 1px solid #efc4b8;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* FAQ */
.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 1.15rem 0;
  cursor: pointer;
  font-size: var(--text-base);
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--brand-2);
  transition: transform var(--transition);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 0 1.25rem;
  max-width: 68ch;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--brand);
  color: var(--on-dark);
  padding-top: clamp(3rem, 6vw, 5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-7);
}

.footer-brand p {
  margin-top: var(--space-4);
  max-width: 34ch;
  color: var(--on-dark-muted);
  font-size: var(--text-sm);
}

.footer-col h4 {
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-col a {
  display: block;
  padding-block: 0.28rem;
  color: var(--on-dark-muted);
  font-size: var(--text-sm);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--on-dark);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-5);
  border-top: 1px solid var(--line-dark);
  color: var(--on-dark-muted);
  font-size: var(--text-xs);
}

.footer-bottom .legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 980px) {
  .nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: var(--space-4) clamp(1.15rem, 4vw, 2.5rem) var(--space-5);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(11, 59, 46, 0.08);
  }

  .site-header.is-open .nav {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0.75rem;
    font-size: var(--text-base);
  }

  .nav-toggle {
    display: flex;
  }

  .header-actions .btn-sm {
    display: none;
  }

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

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
}

/* ---------- UI v2 : finitions ---------- */
html {
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

.btn-primary {
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
  box-shadow: 0 16px 30px -12px rgba(11, 59, 46, 0.6);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.btn-gold {
  box-shadow: 0 10px 24px -12px rgba(185, 134, 42, 0.7);
}

.brand span {
  font-size: 1.14rem;
  letter-spacing: -0.04em;
}

.nav a {
  position: relative;
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.2rem;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-strong));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

.card {
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:has(.link-arrow):hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.lead-card,
.feature,
.contact-card {
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.lead-card:hover,
.feature:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.faq summary {
  transition: color var(--transition);
}

.faq summary:hover {
  color: var(--brand-2);
}

mark.todo {
  padding: 0.05em 0.35em;
  border-radius: 4px;
  background: #fff0c2;
  color: #6c4d0e;
  font-weight: 600;
}

.footer-brand .brand span {
  color: var(--on-dark);
}

.footer-disclaimer {
  padding-block: var(--space-4);
  border-top: 1px solid var(--line-dark);
  color: var(--on-dark-muted);
  font-size: var(--text-xs);
  line-height: 1.65;
  opacity: 0.88;
}

.mobile-cta {
  position: fixed;
  inset: auto 0 0;
  z-index: 45;
  display: none;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(245, 243, 238, 0.94);
  backdrop-filter: blur(12px);
  transform: translateY(110%);
  transition: transform var(--transition);
}

.mobile-cta.is-visible {
  transform: none;
}

.mobile-cta .btn {
  width: 100%;
}

@media (max-width: 700px) {
  .mobile-cta {
    display: block;
  }
}

@media print {
  .site-header,
  .site-footer,
  .mobile-cta,
  .scroll-progress,
  .hero-bg {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
