/* Hiways Law Firm — Cross-Border Debt Recovery
   Shared stylesheet for all pages. */

:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #b45309;
  --accent-hover: #92400e;
  --accent-light: #fbbf24;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --text: #1e293b;
  --text-muted: #475569;
  --text-faint: #64748b;
  --border: #e2e8f0;
  --max: 1120px;
  --read: 760px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.read { max-width: var(--read); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  flex-wrap: wrap;
}

.brand {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.brand span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.brand:hover { text-decoration: none; }

.site-nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }

.site-nav a {
  font-size: 14.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.site-nav a:hover { color: var(--primary); text-decoration: none; }

.site-nav a.nav-cta {
  background: var(--primary);
  color: #fff;
  padding: 9px 18px;
  border-radius: 6px;
  font-weight: 600;
}

.site-nav a.nav-cta:hover { background: var(--primary-light); }

/* ---------- Hero ---------- */

.hero { background: var(--primary); color: #fff; padding: 76px 0 68px; }

.hero-eyebrow {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 880px;
  margin-bottom: 22px;
}

.hero p.lead {
  font-size: 18px;
  color: #cbd5e1;
  max-width: 760px;
  line-height: 1.8;
}

.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.15s ease;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #e2e8f0;
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.55); color: #fff; text-decoration: none; }

/* ---------- Sections ---------- */

section { padding: 64px 0; }
section.alt { background: var(--bg-alt); }

.section-head { margin-bottom: 40px; max-width: var(--read); }

.section-head h2 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin-bottom: 14px;
  color: var(--primary);
}

.section-head p { font-size: 16.5px; color: var(--text-muted); }

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 26px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card:hover { border-color: #cbd5e1; box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05); }

.card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary);
  line-height: 1.4;
}

.card p { font-size: 15px; color: var(--text-muted); line-height: 1.7; }

.card a.card-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Stat strip ---------- */

.stat-strip { background: var(--primary); color: #fff; padding: 52px 0; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
}

.stat-num {
  font-size: 34px;
  font-weight: 700;
  color: var(--accent-light);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat-label { font-size: 13px; color: #94a3b8; line-height: 1.6; margin-top: 8px; }

/* ---------- Article / prose ---------- */

.prose { max-width: var(--read); }

.prose h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.015em;
  line-height: 1.35;
  margin: 44px 0 16px;
}

.prose h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.4;
  margin: 32px 0 12px;
}

.prose p { margin-bottom: 18px; }

.prose ul, .prose ol { margin: 0 0 20px 22px; }
.prose li { margin-bottom: 10px; }

.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 20px;
  margin: 24px 0;
  color: var(--text-muted);
  font-style: italic;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}

.prose th, .prose td {
  border: 1px solid var(--border);
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
}

.prose th { background: var(--bg-alt); font-weight: 600; }

.prose code {
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 52px 0 44px;
}

.page-hero h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--primary);
  max-width: 820px;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 17.5px;
  color: var(--text-muted);
  max-width: var(--read);
}

/* ---------- Breadcrumb ---------- */

.crumbs {
  font-size: 13px;
  color: var(--text-faint);
  padding: 16px 0 0;
}

.crumbs a { color: var(--text-faint); }
.crumbs span { margin: 0 7px; color: #cbd5e1; }

/* ---------- FAQ ---------- */

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 26px 0;
}

.faq-item:first-of-type { border-top: 1px solid var(--border); }

.faq-item h2, .faq-item h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.45;
  margin-bottom: 10px;
}

.faq-item p { font-size: 16px; color: var(--text-muted); margin-bottom: 0; }
.faq-item p + p { margin-top: 12px; }

/* ---------- Article list ---------- */

.article-list { display: grid; gap: 0; }

.article-row {
  display: block;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
  color: inherit;
}

.article-row:first-child { border-top: 1px solid var(--border); }
.article-row:hover { text-decoration: none; }
.article-row:hover h3 { color: var(--accent); }

.article-row h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.4;
  margin-bottom: 8px;
  transition: color 0.15s ease;
}

.article-row p { font-size: 15.5px; color: var(--text-muted); margin-bottom: 8px; }

.article-row .meta { font-size: 13px; color: var(--text-faint); }

/* ---------- Contact ---------- */

.contact-block {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  margin-top: 12px;
}

.contact-label {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
  margin-bottom: 10px;
}

.contact-value {
  font-size: 19px;
  font-weight: 600;
  color: var(--primary);
  word-break: break-all;
}

button.mailto-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 19px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  text-align: left;
  word-break: break-all;
}

button.mailto-btn:hover { text-decoration: underline; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--primary);
  color: #94a3b8;
  padding: 56px 0 32px;
  font-size: 14px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.site-footer h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.site-footer p { line-height: 1.75; margin-bottom: 6px; }

.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }

.footer-links { display: grid; gap: 8px; }

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.7;
}

/* ---------- Utility ---------- */

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--text-muted); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero { padding: 56px 0 52px; }
  .hero h1 { font-size: 32px; }
  .page-hero h1 { font-size: 28px; }
  .section-head h2 { font-size: 25px; }
  .prose h2 { font-size: 23px; }
  section { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .container { padding: 0 20px; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 14px; }
  body { font-size: 16.5px; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 27px; }
  .header-inner { min-height: auto; padding: 14px 0; }
  .brand { font-size: 15.5px; }
  .site-nav { width: 100%; gap: 14px; }
  .site-nav a.nav-cta { padding: 8px 14px; }
}
