/* ============================================================
   AI R Solutions Limited - recoverycrypto.ai
   Shared stylesheet for all pages. Plain CSS, no frameworks.
   ============================================================ */

:root {
  --color-primary: #1A365D;
  --color-background: #FFFFFF;
  --color-accent: #2B6CB0;
  --color-cta: #D69E2E;
  --color-cta-dark: #B7791F;
  --color-text-main: #2D3748;
  --color-text-muted: #718096;
  --color-light-gray: #F7FAFC;
  --color-border: #E2E8F0;
  --color-success-bg: #F0FFF4;
  --color-success-border: #9AE6B4;
  --color-success-text: #276749;
  --color-danger-bg: #FFF5F5;
  --color-danger-border: #FEB2B2;
  --color-danger-text: #9B2C2C;
  --radius: 12px;
  --radius-pill: 999px;
  --shadow-soft: 0 6px 24px rgba(26, 54, 93, 0.08);
  --font-main: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

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

html { font-size: 16px; }

body {
  font-family: var(--font-main);
  color: var(--color-text-main);
  background: var(--color-background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  color: var(--color-primary);
  line-height: 1.2;
  font-weight: 800;
}
h1 { font-size: clamp(1.85rem, 4.2vw, 2.5rem); margin-bottom: 1rem; }
h2 { font-size: 1.9rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
ul, ol { margin: 0 0 1rem 1.25rem; }
li { margin-bottom: 0.4rem; }
strong { color: var(--color-primary); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 4rem 0; }
.section-gray { background: var(--color-light-gray); }
.section-navy { background: var(--color-primary); color: #EDF2F7; }
.section-navy h1, .section-navy h2, .section-navy h3 { color: #FFFFFF; }
.section-navy a { color: #F6E05E; }

.section-head { max-width: 720px; margin-bottom: 2.25rem; }
.section-head .kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.lead { font-size: 1.15rem; color: var(--color-text-muted); }
.section-navy .lead { color: #CBD5E0; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand img { width: 42px; height: 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-weight: 800;
  color: var(--color-primary);
  font-size: 1.02rem;
}
.brand-domain {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
}
.main-nav a {
  color: var(--color-text-main);
  font-weight: 600;
  font-size: 0.95rem;
}
.main-nav a:hover { color: var(--color-accent); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.nav-mobile { display: none; }
.nav-mobile summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--color-primary);
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile[open] summary { background: var(--color-light-gray); }
.nav-mobile ul {
  list-style: none;
  margin: 0;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  position: fixed;
  top: 62px;
  right: 1rem;
  left: 1rem;
  z-index: 150;
  box-shadow: 0 18px 45px rgba(26, 54, 93, 0.18);
}
.nav-mobile li { margin: 0; }
.nav-mobile a {
  display: block;
  padding: 0.6rem 0.5rem;
  color: var(--color-text-main);
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
}
.nav-mobile li:last-child a { border-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-gold {
  background: var(--color-cta);
  color: #1A202C;
  box-shadow: 0 4px 14px rgba(214, 158, 46, 0.35);
}
.btn-gold:hover { background: var(--color-cta-dark); color: #fff; }

.btn-navy { background: var(--color-primary); color: #fff; }
.btn-navy:hover { background: #12294a; color: #fff; }

.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }

.btn-small { padding: 0.55rem 1.2rem; font-size: 0.9rem; }
.btn-block { display: block; width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: 4.5rem 0 3.5rem; background: linear-gradient(180deg, #FFFFFF 0%, var(--color-light-gray) 100%); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}
.hero .kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}
.hero p.lead { margin-bottom: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 0.9rem; }
.microcopy { font-size: 0.85rem; color: var(--color-text-muted); }
.hero-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  width: 100%;
  object-fit: cover;
}

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--color-light-gray);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 1.1rem 0;
}
.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 1.75rem;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-muted);
}
.trust-badge .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-cta);
  flex: 0 0 auto;
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--color-text-muted); font-size: 0.96rem; }
.card .card-link { margin-top: auto; font-weight: 700; }
.card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  margin-bottom: 0.9rem;
}
.card-flag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: #EBF4FF;
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.7rem;
  margin-bottom: 0.8rem;
  width: fit-content;
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); }
.step {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-soft);
}
.step .card-number { background: var(--color-accent); }

/* ---------- Lawyer cards ---------- */
.lawyer-card {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-soft);
  height: 100%;
}
.avatar {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.avatar-gold { background: var(--color-cta); color: #1A202C; }
.lawyer-info h3 { margin-bottom: 0.15rem; font-size: 1.1rem; }
.lawyer-role { font-size: 0.85rem; font-weight: 700; color: var(--color-accent); margin-bottom: 0.35rem; }
.lawyer-meta { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 0.5rem; }
.lawyer-info .card-link { font-size: 0.9rem; font-weight: 700; }

.verify-box {
  background: var(--color-light-gray);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.verify-box strong { display: inline-block; min-width: 190px; }

/* ---------- Warning and commitment boxes ---------- */
.box-list { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.box-red {
  background: var(--color-danger-bg);
  border: 1px solid var(--color-danger-border);
  border-left: 5px solid #E53E3E;
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  color: var(--color-danger-text);
}
.box-green {
  background: var(--color-success-bg);
  border: 1px solid var(--color-success-border);
  border-left: 5px solid #38A169;
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  color: var(--color-success-text);
}
.box-red strong, .box-green strong { display: block; margin-bottom: 0.25rem; color: inherit; }
.box-red p, .box-green p { margin: 0; font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq details {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  margin-bottom: 0.8rem;
  padding: 1rem 1.25rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--color-primary);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  font-weight: 800;
  color: var(--color-accent);
}
.faq details[open] summary::after { content: "-"; }
.faq details p { margin: 0.75rem 0 0; color: var(--color-text-muted); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.price-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.price-card.featured { border: 2px solid var(--color-cta); }
.price-tag {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0.5rem 0 1rem;
}
.price-card ul { margin-bottom: 1.5rem; }
.price-card .btn { margin-top: auto; }

.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
th, td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}
th { background: var(--color-primary); color: #fff; font-weight: 700; }
tr:last-child td { border-bottom: 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1rem; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-primary);
  margin-bottom: 0.3rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--color-text-main);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--color-text-muted); }

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(26, 54, 93, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.modal[hidden] { display: none; }
.modal-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  max-width: 480px;
  width: 100%;
  padding: 2rem;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  border: 1px solid var(--color-border);
  background: var(--color-light-gray);
  color: var(--color-text-main);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.8rem;
  cursor: pointer;
}
.modal-close:hover { background: var(--color-border); }
body.modal-open { overflow: hidden; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding: 1rem 0 0;
}
.breadcrumbs ol {
  list-style: none;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.35rem;
  color: var(--color-border);
}
.breadcrumbs a { color: var(--color-accent); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 3rem 0 2.5rem; background: linear-gradient(180deg, #FFFFFF 0%, var(--color-light-gray) 100%); }
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}
.page-hero-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  width: 100%;
  object-fit: cover;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary);
  color: #CBD5E0;
  padding: 3.5rem 0 2rem;
  margin-top: 0;
}
.site-footer h3, .site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.9rem; letter-spacing: 0.03em; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.site-footer ul { list-style: none; margin: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: #CBD5E0; font-size: 0.9rem; }
.site-footer a:hover { color: #F6E05E; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.footer-brand img { width: 38px; height: 38px; }
.footer-brand span { color: #fff; font-weight: 800; }
.footer-about p { font-size: 0.88rem; }
.footer-legal {
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: #A0AEC0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
}

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; }
.final-cta .lead { max-width: 640px; margin-left: auto; margin-right: auto; margin-bottom: 1.75rem; }

/* ---------- Misc ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.two-col-text { columns: 2; column-gap: 2.5rem; }
.office-list { list-style: none; margin: 0; }
.office-list li {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}
.office-list li:last-child { border-bottom: 0; }
.pill-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0 0 1rem; }
.pill-list li {
  margin: 0;
  background: #EBF4FF;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.85rem;
}

/* ---------- Form submission states ---------- */
.form-success {
  background: var(--color-success-bg);
  border: 1px solid var(--color-success-border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-align: center;
}
.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #38A169;
  color: #fff;
  margin-bottom: 1rem;
}
.form-success h3 { margin-bottom: 0.5rem; }
.form-success p { color: var(--color-text-main); }
.case-id-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 1.25rem 0 0.35rem;
}
.case-id-value {
  display: inline-block;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #1A202C;
  background: var(--color-cta);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.4rem;
  margin-bottom: 1rem;
}
.form-error {
  background: var(--color-danger-bg);
  border: 1px solid var(--color-danger-border);
  border-left: 5px solid #E53E3E;
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  color: var(--color-danger-text);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.btn[disabled] { opacity: 0.65; cursor: wait; transform: none; }

/* ---------- Mobile menu polish ---------- */
.nav-mobile summary { user-select: none; }
.nav-mobile summary::after {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-left: 0.5rem;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s ease;
}
.nav-mobile[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.nav-mobile li a { padding: 0.85rem 0.5rem; font-size: 1.02rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .page-hero-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .steps, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; }
  .nav-mobile { display: block; }
}

@media (max-width: 640px) {
  h2 { font-size: 1.5rem; }
  .section { padding: 3rem 0; }
  .grid-2, .grid-3, .grid-4, .steps, .pricing-grid, .box-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .two-col-text { columns: 1; }
  .header-actions .btn { display: none; }
}
