@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=Playfair+Display:wght@600;700&display=swap");

:root {
  --forest: #0f3d2e;
  --forest-2: #164a38;
  --ink: #122018;
  --muted: #5c6f66;
  --cream: #f6f1e6;
  --paper: #fffdf8;
  --line: #d9cbb0;
  --gold: #c9a24a;
  --gold-2: #e8d08a;
  --leaf: #2f8f63;
  --danger: #b5473a;
  --shadow: 0 18px 50px rgba(15, 61, 46, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: Cairo, Tahoma, "Segoe UI", Arial, sans-serif;
  background: var(--cream);
}
body {
  background:
    radial-gradient(900px 420px at 110% -8%, rgba(201,162,74,.18), transparent 50%),
    radial-gradient(700px 380px at -18% 110%, rgba(47,143,99,.12), transparent 46%),
    linear-gradient(180deg, #f8f3e8 0%, #f3eee1 100%);
}
a { color: inherit; }
img { max-width: 100%; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(246,241,230,.88);
  border-bottom: 1px solid rgba(217,203,176,.7);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo {
  width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(160deg, var(--gold-2), var(--gold));
  color: #1a1406; display: grid; place-items: center;
  font-weight: 800; font-size: 20px;
  box-shadow: 0 8px 20px rgba(201,162,74,.28);
}
.brand b { display: block; font-size: 16px; line-height: 1.1; }
.brand small { color: var(--muted); font-size: 12px; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.nav-links a {
  text-decoration: none; font-weight: 700; font-size: 14px;
  padding: 8px 12px; border-radius: 999px; color: var(--forest);
}
.nav-links a:hover, .nav-links a.active { background: #efe6d2; }
.nav-links .cta {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1a1406;
}

.hero {
  padding: 54px 0 28px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: center;
}
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: #efe6d2; color: var(--forest); font-weight: 800;
  font-size: 13px; padding: 6px 12px; border-radius: 999px;
}
h1, h2, h3 { font-family: "Playfair Display", Cairo, serif; letter-spacing: -.3px; }
h1 { font-size: clamp(32px, 5vw, 54px); margin: 14px 0 10px; line-height: 1.15; color: var(--forest); }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 560px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; text-decoration: none; font-family: inherit;
  font-weight: 800; border-radius: 14px; padding: 13px 18px; font-size: 15px;
}
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1a1406; box-shadow: 0 10px 24px rgba(201,162,74,.28); }
.btn-dark { background: var(--forest); color: #f6f1e6; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--forest); }
.btn-lg { padding: 16px 22px; font-size: 16px; border-radius: 16px; }

.hero-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 28px;
  padding: 22px; box-shadow: var(--shadow);
}
.hero-card h3 { margin: 0 0 8px; color: var(--forest); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.stat { background: #f7f0e2; border-radius: 16px; padding: 12px; text-align: center; }
.stat b { display: block; font-size: 22px; color: var(--forest); }
.stat span { font-size: 12px; color: var(--muted); }

.section { padding: 28px 0 12px; }
.section h2 { margin: 0 0 8px; font-size: 32px; color: var(--forest); }
.section .sub { color: var(--muted); margin: 0 0 18px; }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.door {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); text-decoration: none; display: block;
  transition: transform .15s ease, border-color .15s ease;
}
.door:hover { transform: translateY(-3px); border-color: var(--gold); }
.door .ico { font-size: 32px; }
.door h3 { margin: 8px 0 6px; }
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.prod {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 16px;
}
.prod b { display: block; color: var(--forest); }
.prod span { color: var(--muted); font-size: 13px; }

.cta-band {
  margin: 28px 0;
  background: linear-gradient(135deg, var(--forest), var(--forest-2));
  color: #f6f1e6; border-radius: 28px; padding: 28px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.cta-band h2 { margin: 0 0 6px; color: #fff; }
.cta-band p { margin: 0; color: #d7e8de; }

.note {
  background: #fff8e6; border: 1px solid #ecd9a2; border-radius: 16px;
  padding: 14px 16px; color: #5c4a1a; margin: 14px 0;
}
.filters {
  display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0;
}
.search {
  flex: 1; min-width: 220px;
  border: 1px solid var(--line); border-radius: 14px; padding: 11px 14px;
  font-family: inherit; font-size: 15px; background: var(--paper);
}
.chip {
  border: 1px solid var(--line); background: var(--paper); border-radius: 999px;
  padding: 8px 14px; font-weight: 800; font-family: inherit; cursor: pointer;
}
.chip.on { background: var(--forest); color: #f6f1e6; border-color: var(--forest); }

.table-wrap {
  overflow: auto; background: var(--paper); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow);
}
table { width: 100%; border-collapse: collapse; min-width: 780px; }
th, td { text-align: right; padding: 13px 14px; border-bottom: 1px solid #efe6d2; vertical-align: top; }
th { background: #f4ead4; color: var(--forest); font-size: 13px; position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
.prio { font-weight: 800; }
.prio.hi { color: #9a6b12; }
.prio.mid { color: var(--leaf); }
.prio.lo { color: var(--muted); }
.badge {
  display: inline-block; border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 800;
}
.badge.A { background: #efe0b4; color: #6d4e08; }
.badge.B { background: #d8eee3; color: #1d5c40; }
.badge.C { background: #ece7dc; color: #5c6f66; }
.hall { font-family: ui-monospace, Consolas, monospace; font-weight: 700; }

.cards { display: grid; gap: 14px; }
.company {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px;
}
.company header { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.company h3 { margin: 0; font-size: 20px; }
.meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.reason { margin: 10px 0 0; }
.view-toggle { display: flex; gap: 8px; margin-bottom: 12px; }
.contact-grid, .contact-inline {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid #efe6d2;
}
.contact-inline { grid-template-columns: 1fr; margin-top: 10px; padding-top: 10px; }
.cinfo {
  background: #f7f0e2; border-radius: 12px; padding: 10px 12px;
  font-size: 13px; font-weight: 700; text-decoration: none; color: var(--forest);
  display: block; line-height: 1.45; word-break: break-word;
}
.cinfo .lbl {
  display: block; font-size: 11px; color: var(--muted); font-weight: 800;
  margin-bottom: 2px; letter-spacing: .2px;
}
.ltr-num, .cinfo.phone {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: right;
}
.ltr-num {
  display: block;
  font-weight: 700;
}

.timeline { display: flex; flex-wrap: wrap; gap: 8px; }
.step {
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 12px; font-weight: 700; font-size: 13px;
}
.goals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.goal { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.sources { display: flex; flex-wrap: wrap; gap: 8px; }
.sources a {
  background: #efe6d2; text-decoration: none; border-radius: 999px; padding: 8px 12px; font-weight: 700; font-size: 13px;
}

.disclaimer {
  background: #f3eee4; border-radius: 16px; padding: 14px 16px; color: var(--muted); font-size: 13px;
}
footer {
  margin-top: 48px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.login-box { max-width: 460px; padding: 48px 0 80px; }
.login-box h1 { font-size: 32px; }
.login-box label { display: block; font-weight: 700; margin: 12px 0 6px; }
.login-box input {
  width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
  font-family: inherit; font-size: 16px; background: #fff;
}
.login-box .btn { width: 100%; margin-top: 18px; }
.err { background: #fde8e4; color: var(--danger); border-radius: 12px; padding: 10px 12px; font-weight: 700; }

@media (max-width: 860px) {
  .hero-grid, .doors, .products, .goals, .contact-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .nav-links a:not(.cta):not(.btn) { display: none; }
  h1 { font-size: 34px; }
}
@page { margin: 12mm; }
@media print {
  .nav, .filters, .view-toggle, .cta-band .btn, footer { display: none !important; }
  body { background: #fff; }
  .table-wrap, .company { box-shadow: none; }
}
