/* =====================================================================
   Professional, mobile-first stylesheet — no external framework.
   ===================================================================== */

:root {
  --ink:        #0f172a;
  --muted:      #475569;
  --bg:         #f8fafc;
  --surface:    #ffffff;
  --line:       #e2e8f0;
  --primary:    #2563eb;
  --primary-dk: #1e40af;
  --accent:     #059669;
  --accent-dk:  #047857;
  --danger:     #dc2626;
  --radius:     12px;
  --shadow:     0 6px 18px rgba(15, 23, 42, .08);
  --maxw:       1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dk); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }

.container { width: 92%; max-width: var(--maxw); margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .7em 1.35em;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  text-align: center;
  transition: background .2s, transform .1s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dk); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dk); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-block { display: block; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.btn-sm { padding: .5em 1em; font-size: .85rem; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .8rem 0; gap: 1rem; }
.brand { font-size: 1.25rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; font-size: 1.3rem; padding: .25rem .6rem; cursor: pointer; color: var(--ink); }
.main-nav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.main-nav a:not(.btn) { color: var(--muted); font-weight: 500; }
.main-nav a:not(.btn):hover, .main-nav a.active:not(.btn) { color: var(--primary); }
.nav-cta { flex: none; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, #1e293b, #0f172a 70%); color: #fff; padding: 4.2rem 0; }
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin-bottom: .6rem; }
.hero p { max-width: 640px; color: #cbd5e1; font-size: 1.1rem; margin-bottom: 1.5rem; }
.hero .btn-primary { background: var(--primary); }
.hero .btn-accent { background: var(--accent); }
.hero .btn-outline { border-color: #94a3b8; color: #e2e8f0; }
.hero .btn-outline:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 3.4rem 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.section-head p { color: var(--muted); max-width: 640px; margin: 0; }

.page-hero { background: linear-gradient(135deg, #1e293b, #0f172a 70%); color: #fff; padding: 3rem 0; }
.page-hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: .4rem; }
.page-hero p { color: #cbd5e1; max-width: 660px; margin: 0; }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(15,23,42,.14); }
.card-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #e2e8f0; }
.card-body { padding: 1.3rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.15rem; }
.card-body p { color: var(--muted); font-size: .95rem; flex: 1; }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; }
.price { font-weight: 800; color: var(--primary); font-size: 1.15rem; }

/* ---------- Featured banner ---------- */
.offer-banner {
  background: linear-gradient(120deg, var(--accent), var(--accent-dk));
  color: #fff;
  padding: 2.6rem 0;
}
.offer-banner h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: .5rem; }
.offer-banner p { color: #ecfdf5; margin: 0 0 .4rem; max-width: 720px; }
.offer-banner .btn { background: #fff; color: var(--accent-dk); }
.offer-banner .btn:hover { background: #ecfdf5; }
/* ---------- Lists & content ---------- */
.service-item { padding: 1.8rem; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 1.1rem 1.1rem 1.1rem 3.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%);
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.steps h3 { margin-bottom: .2rem; font-size: 1.05rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
.form-row { display: flex; flex-direction: column; gap: .35rem; }
.form-row.full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: .92rem; }
label .req { color: var(--danger); }
input, select, textarea {
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: var(--surface);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
textarea { resize: vertical; min-height: 120px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.8rem; }

/* ---------- Messages ---------- */
.msg { padding: .85rem 1.1rem; border-radius: 8px; margin: 1rem 0; font-weight: 500; }
.msg-success { background: #ecfdf5; color: var(--accent-dk); border: 1px solid #10b981; }
.msg-error { background: #fef2f2; color: var(--danger); border: 1px solid #f87171; }
.alert { padding: .6rem .9rem; border-radius: 8px; margin-bottom: 1rem; font-weight: 500; }

/* ---------- Reference link box ---------- */
.referral-box { background: var(--surface); border: 2px dashed var(--accent); border-radius: var(--radius); padding: 1.6rem; text-align: center; }
.referral-box .btn { font-size: 1.05rem; padding: .85em 1.8em; }
.referral-hint { color: var(--muted); font-size: .85rem; margin-top: .6rem; }

/* ---------- About ---------- */
.about-who { display: grid; gap: 2rem; grid-template-columns: 1.2fr 1fr; align-items: start; }
.skill-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.skill { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .85rem; font-size: .85rem; color: var(--muted); }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; padding: 1.3rem; }
.stat strong { display: block; font-size: 1.6rem; color: var(--primary); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cbd5e1; padding: 2.2rem 0; margin-top: 3rem; }
.footer-inner { text-align: center; }
.footer-brand { font-weight: 800; color: #fff; font-size: 1.1rem; margin: 0 0 .4rem; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin: .8rem 0; }
.footer-nav a { color: #94a3b8; font-size: .9rem; }
.footer-nav a:hover { color: #fff; }
.copyright { font-size: .85rem; color: #64748b; margin: 0; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about-who { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; width: 100%; flex-direction: column; align-items: flex-start;
    gap: .6rem; padding: .6rem 0 1rem;
  }
  .main-nav.open { display: flex; }
  .nav-cta { width: 100%; }
  .header-inner { flex-wrap: wrap; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .section { padding: 2.6rem 0; }
}

/* ---------- Generic table (admin) ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table.data { width: 100%; border-collapse: collapse; min-width: 640px; }
table.data th, table.data td { padding: .8rem; text-align: left; border-bottom: 1px solid var(--line); font-size: .92rem; vertical-align: middle; }
table.data th { background: #f1f5f9; color: var(--ink); font-weight: 700; }
table.data tr:last-child td { border-bottom: none; }
.badge { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.badge-pending { background: #fef9c3; color: #854d0e; }
.badge-contacted { background: #dcfce7; color: #166534; }
.thumb { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; background: var(--line); }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.text-muted { color: var(--muted); }
.admin-shell { padding: 1.5rem 0; }