/* css/components.css */

/* ===== BUTOANE ===== */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), opacity var(--transition);
  text-align: center;
  line-height: 1;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--dark); color: white; }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { opacity: 0.9; color: white; }
.btn-outline-white {
  background: transparent; color: white;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); color: white; }
.btn-hero {
  background: white; color: var(--primary);
  padding: 0.85rem 2.2rem; font-size: 1rem;
}
.btn-hero:hover { background: var(--bg); color: var(--dark); }
.btn-lg { padding: 0.9rem 2.4rem; font-size: 1rem; }
.btn-outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
  padding: calc(0.7rem - 2px) calc(1.5rem - 2px);
}
.btn-outline:hover { background: var(--primary); color: white; }

/* ===== LOGO ===== */
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-doc {
  font-family: 'BerlinSansFB', 'Segoe UI', sans-serif;
  font-size: 1.55rem; font-weight: 900;
  color: var(--text); letter-spacing: -0.03em;
}
.logo-ru {
  font-family: 'BerlinSansFB', 'Segoe UI', sans-serif;
  font-size: 1.55rem; font-weight: 900;
  color: white; background: var(--primary);
  padding: 0.04em 0.22em; border-radius: 5px;
  letter-spacing: -0.02em;
}

/* ===== HEADER / NAV ===== */
.site-header {
  background: white;
  height: var(--header-h);
  display: flex; align-items: center;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex; align-items: center;
  justify-content: space-between; width: 100%;
}
.nav-links {
  display: flex; align-items: center; gap: 1.25rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-sec); font-size: 0.9rem; font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.site-header .container { gap: 1rem; }
.nav-links a, .nav-cta { white-space: nowrap; }
.nav-cta { font-size: 0.88rem; padding: 0.6rem 1rem; margin-left: 0; }
.btn-outline.nav-cta { padding: calc(0.6rem - 2px) calc(1rem - 2px); }
@media (max-width: 1100px) {
  .site-header .nav-phone { display: none; }
}

.nav-phone {
  display: flex; align-items: center;
  white-space: nowrap; margin-right: 0.25rem;
}
.nav-phone a {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.5rem 1.1rem;
  background: var(--secondary); color: var(--secondary-text);
  border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 700;
  text-decoration: none; line-height: 1;
  transition: background-color var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 8px rgba(39,225,167,0.25);
}
.nav-phone a::before { content: "☎"; font-style: normal; }
.nav-phone a:hover {
  background: #1fc993; color: var(--secondary-text);
  box-shadow: 0 4px 14px rgba(39,225,167,0.40);
}
.mobile-nav .nav-phone { padding: 0.25rem 0; }
.mobile-nav .nav-phone a {
  width: 100%; justify-content: center;
  padding: 0.65rem 1rem; font-size: 1rem;
}

/* Hamburger (mobil) */
.hamburger {
  display: none; flex-direction: column;
  gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.hamburger span {
  width: 24px; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; position: fixed;
  top: var(--header-h); left: 0; right: 0;
  background: white; border-bottom: 1px solid var(--border);
  padding: 1.5rem; z-index: 99;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.mobile-nav a {
  color: var(--text); font-size: 1rem; font-weight: 500;
  display: block; padding: 0.25rem 0;
}
.mobile-nav .btn { width: 100%; margin-top: 1rem; text-align: center; }

@media (max-width: 900px) {
  .nav-links, .nav-cta, .site-header .nav-phone { display: none; }
  .hamburger { display: flex; }
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--text); color: var(--footer-muted);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 1.5rem;
}
.site-footer .logo-doc { color: white; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-links a { color: var(--footer-muted); font-size: 0.85rem; transition: color var(--transition); }
.footer-links a:hover { color: white; }
.footer-copy { font-size: 0.82rem; }

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ===== CARDURI ===== */
.card {
  background: white; border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.card:hover { box-shadow: var(--shadow); border-color: var(--light); }

.card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 1rem;
}
.icon-blue { background: #EAF6FD; }
.icon-green { background: #E6FDF6; }
.icon-orange { background: #FEF0EA; }

.card h3 { margin-bottom: 0.4rem; }
.card p { font-size: 0.88rem; }

/* ===== BADGE ===== */
.badge {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  background: var(--secondary); color: var(--secondary-text);
  padding: 0.15em 0.6em; border-radius: 20px;
  margin-left: 0.4rem; vertical-align: middle;
}
.badge--new { background: var(--accent); color: var(--white); }

/* ===== CHECK LIST ===== */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.check-list li {
  display: flex; align-items: flex-start; gap: 0.65rem;
  font-size: 0.92rem; color: var(--text);
}
.check-list li::before {
  content: "✓";
  background: var(--secondary); color: var(--secondary-text);
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem; font-weight: 900; flex-shrink: 0; margin-top: 2px;
}

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--bg); padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  text-align: center; font-size: 0.85rem; color: var(--text-sec);
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  padding: 4.5rem 0; text-align: center; color: white;
}
.cta-section h2 { color: white; margin-bottom: 0.75rem; }
.cta-section p { color: rgba(255,255,255,0.88); max-width: 500px; margin: 0 auto 2rem; }

/* ===== PAGE HERO ===== */
.page-hero {
  background: var(--bg); padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}
.page-hero .section-label { margin-bottom: 0.4rem; }
.page-hero h1 { margin-bottom: 0.75rem; color: var(--text); }
.page-hero p { max-width: 620px; font-size: 1.05rem; }

/* ===== STEPS ===== */
.steps { display: flex; flex-direction: column; gap: 1.5rem; }
.step { display: flex; gap: 1.25rem; align-items: flex-start; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: white;
  font-weight: 800; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-body h3 { margin-bottom: 0.25rem; color: var(--text); }
.step-body p { font-size: 0.9rem; }

/* ===== TABELE ===== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th {
  background: var(--bg); color: var(--text);
  font-weight: 700; text-align: left;
  padding: 0.75rem 1rem; border-bottom: 2px solid var(--border);
}
td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); color: var(--text-sec); }
td:first-child { color: var(--text); font-weight: 500; }
tr:last-child td { border-bottom: none; }

/* ===== MODAL CONTACT ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(43, 45, 66, 0.55);
  display: none; align-items: center; justify-content: center;
  z-index: 200; padding: 16px;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  width: 100%; max-width: 480px;
  max-height: calc(100vh - 32px); overflow-y: auto;
  padding: 1.75rem; position: relative;
}
.modal h2 { font-size: 1.35rem; color: var(--text); margin-bottom: 0.35rem; }
.modal-sub { color: var(--text-sec); font-size: 0.9rem; margin-bottom: 1.25rem; }

.modal-close {
  position: absolute; top: 0.6rem; right: 0.75rem;
  background: none; border: none; cursor: pointer;
  font-size: 1.6rem; line-height: 1; color: var(--text-sec);
  transition: color var(--transition);
}
.modal-close:hover { color: var(--text); }

.contact-pref { display: flex; gap: 0.75rem; }
.modal .contact-pref label {
  flex: 1; display: flex; align-items: center; justify-content: center;
  text-align: center; cursor: pointer; margin-bottom: 0;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 0.6rem 1rem; font-size: 0.92rem; font-weight: 600;
  color: var(--text-sec); transition: border-color var(--transition), color var(--transition), background-color var(--transition);
}
.modal .contact-pref label:hover { border-color: var(--light); }
.contact-pref input { position: absolute; opacity: 0; pointer-events: none; }
.modal .contact-pref input:checked + label,
.modal .contact-pref label:has(input:checked) {
  border-color: var(--primary); color: var(--primary); background: #EAF7FD;
}
.modal .contact-pref input:checked + label:hover,
.modal .contact-pref label:has(input:checked):hover { border-color: var(--primary); }
.contact-pref input:focus-visible + label { outline: 2px solid var(--primary); outline-offset: 2px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

body.modal-open { overflow: hidden; }

/* ===== TURNSTILE (ANTI-ROBOT) ===== */
.ts-box { margin: 0.25rem 0 1rem; min-height: 65px; }
