
/* FreelanceMart.com base styles - fast, clean, responsive */
:root {
  --primary: #0a5a78;
  --accent: #1fbf89;
  --dark: #0e2833;
  --light: #f6fbfd;
  --text: #102127;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  color: var(--text); background: white; line-height: 1.5;
}
.container { width: min(1100px, 92vw); margin: 0 auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.site-header { position: sticky; top:0; z-index:10; background: white; border-bottom: 1px solid #e8eef2; }
.site-header .nav { display:flex; align-items:center; justify-content:space-between; padding: 12px 0; gap: 12px; }
.brand .logo { font-weight: 800; letter-spacing: 0.3px; font-size: 1.2rem; color: var(--dark); }
.brand .logo span { color: var(--primary); }
.site-header nav a { margin: 0 10px; font-weight: 600; }
.btn { display:inline-block; background: var(--primary); color:white; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--primary); }
.btn.outline { background: transparent; color: var(--primary); }
.btn.small { padding: 8px 12px; font-size: .9rem; }
.btn.ghost { background: transparent; color: var(--dark); border-color:#c3d3dc; }
.hero {
  background: linear-gradient(135deg, rgba(15,98,131,.08), rgba(31,191,137,.06));
  padding: clamp(38px, 6vw, 72px) 0;
  border-bottom: 1px solid #e8eef2;
}
.hero .wrap { display:grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items:center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 10px; color: var(--dark); }
.hero p.lead { font-size: 1.1rem; color:#325463; }
.badges { display:flex; gap: 10px; flex-wrap:wrap; margin: 16px 0; }
.badge { background:#e9f5f0; color:#0f5f44; padding:6px 10px; border-radius:999px; font-weight:700; font-size:.8rem; }
.card { background:white; border: 1px solid #e8eef2; border-radius:14px; padding:18px; box-shadow: 0 1px 0 rgba(16,33,39,.03); }
.grid-3 { display:grid; grid-template-columns: repeat(3, 1fr); gap:18px; }
.grid-2 { display:grid; grid-template-columns: repeat(2, 1fr); gap:18px; }
.grid-auto { display:grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap:16px; }
.section { padding: 36px 0; }
.kpis { display:flex; gap: 18px; flex-wrap:wrap; }
.kpi { background:#f4fafc; border:1px solid #e1eef3; padding:14px 16px; border-radius:12px; min-width: 160px; }
.kpi b { display:block; font-size:1.4rem; color: var(--primary); }
.tag { font-size:.8rem; background:#eef6fa; padding: 4px 8px; border-radius: 999px; border: 1px solid #d7e6ee; }
.table { width:100%; border-collapse: collapse; }
.table th, .table td { padding: 10px; border-bottom: 1px solid #edf2f6; text-align:left; font-size:.95rem; }
.table th { background:#f8fbfd; }
.form { display:grid; gap: 12px; }
.form label { font-weight: 700; font-size: .95rem; }
.form input, .form select, .form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #dbe8ef; border-radius: 10px; font-size: 1rem; background: white;
}
.notice { background:#fff5d8; border:1px solid #ffe7a1; padding:12px; border-radius:10px; }
.site-footer { margin-top: 36px; background: #071a21; color:#cfe4ee; padding: 36px 0; }
.site-footer a { color:#cfe4ee; }
.logo-lg { font-weight: 800; font-size: 1.3rem; margin-bottom: 8px; }
.hero-card { border: 1px dashed #b7d7e4; background:#f1f9fc; }
.qr-demo { display:grid; grid-template-columns: 120px 1fr; gap:14px; align-items:center; }
/* responsive */
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .site-header nav { display:flex; flex-wrap:wrap; gap:8px; }
}

/* Balanced menu adjustments */

.brand .logo { font-size: 1.1rem; white-space: nowrap; }
.site-header .nav { flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-header nav { display:flex; flex-wrap:wrap; gap:12px; margin-left:auto; }


/* --- Balanced Header & Dropdown --- */
.site-header .nav { gap: 16px; }
.brand { flex: 1 1 auto; min-width: 180px; }
.brand .logo { font-weight: 900; font-size: 1.15rem; white-space: nowrap; }
.navlinks { flex: 2 1 0; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.navlinks a { font-weight: 600; }
.more { position: relative; }
.more summary { list-style: none; cursor: pointer; padding: 8px 10px; border-radius: 8px; border: 1px solid #d7e6ee; }
.more[open] summary { background: #f1f7fa; }
.more .dropdown { 
  position: absolute; right: 0; top: calc(100% + 6px);
  background: white; border: 1px solid #e8eef2; border-radius: 10px; 
  padding: 8px; display: grid; gap: 6px; min-width: 180px;
  box-shadow: 0 8px 24px rgba(16,33,39,.06);
  z-index: 20;
}
.more .dropdown a { padding: 6px 8px; border-radius: 8px; }
.more .dropdown a:hover { background: #f4fafc; text-decoration: none; }

/* Compact buttons in header */
.site-header .btn.small { padding: 8px 12px; }

/* Logo scaling on smaller widths */
@media (max-width: 1100px) {
  .brand .logo { font-size: 1.05rem; }
}
@media (max-width: 920px) {
  .brand .logo { font-size: 1rem; }
  .navlinks { justify-content: flex-start; }
}

/* Prevent header wrap jumpiness */
.site-header nav a, .site-header nav summary { line-height: 1; }
