/* style.css — TabuCount | בדיקת בעלים בטאבו | lendover.co.il */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --copper:      #B8743D;
  --copper-dark: #9A5F2E;
  --copper-light:#F5E9DC;
  --teal:        #5BC8C4;
  --charcoal:    #3C3C3C;
  --text:        #2C2C2C;
  --text-muted:  #777777;
  --bg:          #F0EDE6;
  --bg-white:    #FFFFFF;
  --border:      #E2DDD6;
  --red:         #C0392B;
  --green:       #2E7D52;
  --radius:      4px;
  --shadow:      0 2px 12px rgba(0,0,0,0.08);
}

html { font-size: 16px; }

body {
  font-family: 'Heebo', 'Arial Hebrew', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  min-height: 100vh;
  padding-bottom: 48px;
}

/* ── Navbar ──────────────────────────────── */
nav {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 10px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-app-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.nav-app-logo {
  height: 100px;
  width: auto;
}
.nav-site-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.nav-site-brand:hover { opacity: 1; }
.nav-site-logo {
  height: 40px;
  width: auto;
}
/* ── Hero banner ─────────────────────────── */
.hero {
  background: var(--charcoal);
  color: #fff;
  text-align: center;
  padding: 28px 24px 24px;
}
.hero h1 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  font-weight: 300;
}

/* ── Container ───────────────────────────── */
.container {
  max-width: 680px;
  margin: 36px auto 0;
  padding: 0 16px;
}

/* ── Section heading ─────────────────────── */
.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 20px;
  padding-bottom: 10px;
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 2px;
  background: var(--copper);
}

/* ── Card ────────────────────────────────── */
.card {
  background: var(--bg-white);
  border-top: 3px solid var(--copper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  margin-bottom: 20px;
}

/* ── Lookup form ─────────────────────────── */
.field-row {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}
.field-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
}
.field-group input[type="text"] {
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Heebo', sans-serif;
  font-size: 1.05rem;
  color: var(--text);
  background: var(--bg-white);
  transition: border-color 0.2s;
  text-align: right;
}
.field-group input[type="text"]:focus {
  outline: none;
  border-color: var(--copper);
}

/* ── Lookup button ───────────────────────── */
#lookup-btn {
  display: block;
  width: 100%;
  padding: 13px;
  background: var(--copper);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: 'Heebo', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  letter-spacing: 0.02em;
}
#lookup-btn:hover:not(:disabled) { background: var(--copper-dark); }
#lookup-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ── Spinner ─────────────────────────────── */
#spinner {
  display: none;
  text-align: center;
  padding: 18px 0 4px;
}
#spinner .spin {
  display: inline-block;
  width: 36px; height: 36px;
  border: 3px solid var(--copper-light);
  border-top-color: var(--copper);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
#spinner p {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Error box (technical) ───────────────── */
#error-box {
  display: none;
  background: #FEF0F0;
  border: 1px solid #F5BCBC;
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--red);
  font-size: 0.88rem;
  margin-top: 16px;
  font-weight: 600;
}

/* ── Not-found card (neutral) ────────────── */
#not-found-card { display: none; }

.not-found-msg {
  text-align: center;
  padding: 10px 0 16px;
}
.not-found-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 10px;
}
.not-found-msg p {
  color: var(--text-muted);
  font-size: 0.97rem;
}

/* ── Result card ─────────────────────────── */
#result-card { display: none; }

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  margin-bottom: 4px;
}
.info-item label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 2px;
  font-weight: 400;
}
.info-item span {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--charcoal);
}
.info-item.wide { grid-column: 1 / -1; }

/* ── Breakdown list ──────────────────────── */
#breakdown-section { display: none; }

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
}
.breakdown-row:last-child { border-bottom: none; }
.breakdown-label {
  color: var(--charcoal);
  font-weight: 500;
}
.breakdown-count {
  background: var(--copper-light);
  color: var(--copper-dark);
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 20px;
  font-size: 0.88rem;
}

/* ── Total summary bar ───────────────────── */
.total-summary {
  background: var(--copper-light);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 0.88rem;
  color: var(--copper-dark);
  margin: 16px 0;
  text-align: center;
  font-weight: 500;
}

/* ── Reset button ────────────────────────── */
#reset-btn,
#reset-btn-2 {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  background: transparent;
  color: var(--copper);
  border: 1.5px solid var(--copper);
  border-radius: var(--radius);
  font-family: 'Heebo', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
#reset-btn:hover,
#reset-btn-2:hover { background: var(--copper-light); }

/* ── Privacy note ────────────────────────── */
.privacy-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 520px) {
  nav { padding: 4px 12px; }
  .nav-app-logo { height: 52px; }
  .nav-site-logo { height: 30px; }
  .hero { padding: 32px 16px 28px; }
  .hero h1 { font-size: 1.35rem; }
  .card { padding: 20px 16px; }
  .field-row { flex-direction: column; gap: 12px; }
  .info-grid { grid-template-columns: 1fr; }
  .info-item.wide { grid-column: 1; }
}
