/* GASC Verify — consumer portal. Clean, trustworthy, professional (Global Anti-Scam Centre brand). */
:root {
  --ink: #1d2122;        /* headings */
  --ink-soft: #444;      /* body text */
  --muted: #6b7a7f;
  --line: #e2e8f0;
  --bg: #f7f9fa;
  --card: #ffffff;
  --brand: #3f7c8f;      /* GASC teal */
  --brand-2: #2f6475;    /* darker teal for hover / gradients */
  --accent: #3f7c8f;
  --accent-soft: #e3eef1;
  --warn: #b45309;
  --warn-bg: #fffbeb;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --ok: #047857;
  --ok-bg: #ecfdf5;
  --shadow: 0 1px 2px rgba(29,33,34,.06), 0 8px 24px rgba(29,33,34,.06);
  --radius: 14px;
  --max: 1080px;
  --font: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink-soft);
  background: var(--bg); line-height: 1.7; min-height: 100vh;
  display: flex; flex-direction: column;
}
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 600; line-height: 1.28; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.site-header {
  background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .9rem 0; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .75rem; color: inherit; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; display: grid; place-items: center; font-weight: 700; letter-spacing: .02em;
  box-shadow: 0 4px 12px rgba(63,124,143,.25);
}
.brand-text strong { display: block; font-size: 1.05rem; letter-spacing: .01em; }
.brand-text span { display: block; font-size: .72rem; color: var(--muted); max-width: 260px; }
.nav { display: flex; gap: .25rem; flex-wrap: wrap; align-items: center; }
.nav a {
  color: var(--ink-soft); padding: .45rem .7rem; border-radius: 999px;
  font-size: .92rem; font-weight: 500; text-decoration: none;
}
.nav a:hover, .nav a.active { background: #eef5f7; color: var(--brand); }
/* CTA button in the nav must keep its own button colors, not the nav link color */
.nav a.btn-primary, .nav a.btn-primary:hover, .nav a.btn-primary.active { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.nav a.btn-secondary { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: 1px solid transparent; border-radius: 999px; padding: .7rem 1.15rem;
  font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none;
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  box-shadow: 0 6px 16px rgba(63,124,143,.22);
}
.btn-primary:hover { color: #fff; }
.btn-secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-secondary:hover { border-color: #cbd5e1; color: var(--brand); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: .4rem .8rem; font-size: .85rem; }
.btn-block { width: 100%; }

.hero {
  background:
    radial-gradient(900px 320px at 10% -10%, rgba(63,124,143,.16), transparent 60%),
    radial-gradient(700px 280px at 90% 0%, rgba(47,100,117,.12), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  padding: 3.2rem 0 2.4rem; border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center;
}
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow {
  display: block; color: var(--brand); font-weight: 600;
  font-size: 14px; line-height: 1.3; letter-spacing: 1.3px; text-transform: uppercase;
  margin-bottom: .9rem;
}
.hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.55rem); line-height: 1.15; margin: 0 0 .8rem; }
.hero .lede { font-size: 1.08rem; color: var(--ink-soft); margin: 0 0 1.4rem; max-width: 38rem; }
.hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-bottom: 1rem; }
.hero-note { font-size: .85rem; color: var(--muted); }
.hero-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.25rem 1.35rem;
}
.hero-card h2 { margin: 0 0 .8rem; font-size: 1rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.step-list li { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; }
.step-num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: .82rem; font-weight: 700;
}
.step-list strong { display: block; }
.step-list span { color: var(--ink-soft); font-size: .92rem; }
.step-list .step-num { color: #fff; }

section.block { padding: 2.6rem 0; }
section.block h2 { margin: 0 0 .35rem; font-size: 1.55rem; }
.section-lead { color: var(--ink-soft); margin: 0 0 1.4rem; max-width: 40rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 .45rem; font-size: 1.05rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.icon-pill {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: #e0f2fe; color: var(--brand); font-weight: 700; margin-bottom: .7rem;
}

.pricing-box {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.6rem; display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.5rem;
}
@media (max-width: 720px) { .pricing-box { grid-template-columns: 1fr; } }
.price-tag {
  font-size: 2.4rem; font-weight: 700; color: var(--brand); letter-spacing: -.02em;
}
.price-tag small { display: block; font-size: .85rem; font-weight: 600; color: var(--warn); letter-spacing: 0; }
.badge {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; padding: .2rem .5rem; border-radius: 6px;
}
.badge-placeholder { background: #fef3c7; color: #92400e; }
.badge-sample { background: #e0e7ff; color: #3730a3; }
.badge-status { background: #e2e8f0; color: #334155; }
.badge-paid { background: var(--ok-bg); color: var(--ok); }
.badge-pending { background: var(--warn-bg); color: var(--warn); }
.badge-completed { background: var(--ok-bg); color: var(--ok); }
.badge-in_review { background: #e0f2fe; color: #075985; }
.badge-submitted { background: #f1f5f9; color: #475569; }
.badge-cancelled { background: var(--danger-bg); color: var(--danger); }
.badge-match { background: var(--ok-bg); color: var(--ok); }
.badge-mismatch { background: var(--danger-bg); color: var(--danger); }
.badge-inconclusive { background: var(--warn-bg); color: var(--warn); }

.callout {
  border-radius: var(--radius); padding: 1rem 1.15rem; border: 1px solid;
  margin: 1rem 0;
}
.callout-warn { background: var(--warn-bg); border-color: #fcd34d; color: #78350f; }
.callout-info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.callout-danger { background: var(--danger-bg); border-color: #fecaca; color: #7f1d1d; }
.callout-ok { background: var(--ok-bg); border-color: #a7f3d0; color: #065f46; }
.callout > strong:first-child { display: block; margin-bottom: .25rem; }

.site-footer {
  margin-top: auto; background: var(--ink); color: #cbd5e1; padding: 2rem 0 1.4rem;
}
.site-footer a { color: #e2e8f0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 1.5rem; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { margin: 0 0 .5rem; color: #fff; font-size: .9rem; }
.site-footer p, .site-footer li { font-size: .88rem; color: #94a3b8; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .3rem 0; }
.footer-bottom { border-top: 1px solid #1e293b; margin-top: 1.4rem; padding-top: 1rem; font-size: .8rem; color: #64748b; }

/* Forms */
.page-narrow { width: min(100% - 2rem, 720px); margin: 2rem auto; }
.page-wide { width: min(100% - 2rem, var(--max)); margin: 2rem auto; }
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.5rem;
}
.panel h1 { margin: 0 0 .4rem; font-size: 1.55rem; }
.panel .sub { color: var(--muted); margin: 0 0 1.2rem; }
.form-grid { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
label .hint { font-weight: 400; color: var(--muted); }
input:not([type]),
input[type=text], input[type=email], input[type=password], input[type=url],
input[type=tel], input[type=search], select, textarea {
  width: 100%; padding: .7rem .8rem; border: 1px solid #cbd5e1; border-radius: 10px;
  font: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(63,124,143,.35); border-color: var(--brand-2);
}
textarea { min-height: 110px; resize: vertical; }
.field-error { color: var(--danger); font-size: .85rem; margin-top: .3rem; }
.field-invalid input, .field-invalid select, .field-invalid textarea { border-color: #f87171; }
.check { display: flex; gap: .55rem; align-items: flex-start; font-weight: 400; }
.check input { margin-top: .3rem; }
.flash { list-style: none; padding: 0; margin: 0 0 1rem; }
.flash li { padding: .7rem .9rem; border-radius: 10px; margin-bottom: .4rem; font-size: .92rem; }
.flash .ok { background: var(--ok-bg); color: var(--ok); }
.flash .error { background: var(--danger-bg); color: var(--danger); }

.meta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem 1.2rem; }
@media (max-width: 640px) { .meta-grid { grid-template-columns: 1fr; } }
.meta-grid dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0; }
.meta-grid dd { margin: .1rem 0 .5rem; font-weight: 600; word-break: break-word; }

.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { padding: 0 0 1rem 1rem; position: relative; }
.timeline li::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-2);
  position: absolute; left: -6px; top: .35rem;
}
.timeline time { display: block; font-size: .78rem; color: var(--muted); }
.report-body { white-space: pre-wrap; background: #f8fafc; border: 1px solid var(--line);
  border-radius: 10px; padding: 1rem; }

/* Admin */
.admin-bar {
  background: #0f172a; color: #e2e8f0; padding: .55rem 0; font-size: .85rem;
}
.admin-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.admin-bar a { color: #93c5fd; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td {
  text-align: left; padding: .7rem .55rem; border-bottom: 1px solid var(--line); vertical-align: top;
}
table.data th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
table.data tr:hover td { background: #f8fafc; }
.filters { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filters a {
  padding: .35rem .7rem; border-radius: 999px; border: 1px solid var(--line);
  color: var(--ink-soft); font-size: .85rem; text-decoration: none; background: #fff;
}
.filters a.active, .filters a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.admin-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.2rem; }
@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; } }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.stack-gap > * + * { margin-top: 1rem; }
