/*
Theme Name: AppealPath
Theme URI: https://ssihelp.online
Author: AppealPath
Description: Social Security Disability Appeals Help Website
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700&display=swap');

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

:root {
  --primary: #1e2d5a;
  --secondary: #2a8a7e;
  --secondary-light: #3ba898;
  --bg: #f8fafc;
  --bg-accent: #f1f5f9;
  --text: #1e2d5a;
  --muted: #64748b;
  --border: #e2e8f0;
  --white: #ffffff;
  --radius: 12px;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

.font-serif { font-family: 'Playfair Display', serif; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-decoration: none;
  font-family: inherit;
}
.btn-primary { background: var(--secondary); color: #fff; }
.btn-primary:hover { background: var(--secondary-light); color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: #f1f5f9; }
.btn-lg { padding: 16px 36px; font-size: 16px; height: 56px; }

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248,250,252,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
.header-nav { display: flex; align-items: center; gap: 28px; }
.header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
}
.header-nav a:hover, .header-nav a.active { color: var(--primary); }
.header-right { display: flex; align-items: center; gap: 16px; }
.header-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
}
.header-phone:hover { color: var(--primary); }
.header-phone svg { width: 14px; height: 14px; }
.btn-header { padding: 8px 20px; font-size: 14px; height: auto; }

/* ── HERO ── */
.hero {
  background: var(--primary);
  color: #fff;
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(42,138,126,.35) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: 740px; }
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  color: #fff;
}
.hero p {
  font-size: 18px;
  color: rgba(255,255,255,.85);
  max-width: 620px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  background: var(--secondary);
  border-radius: 16px;
  padding: 18px 32px;
  margin-bottom: 32px;
  transition: background .2s;
  text-decoration: none;
}
.hero-phone:hover { background: var(--secondary-light); }
.hero-phone-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-phone-icon svg { width: 24px; height: 24px; color: #fff; }
.hero-phone-label { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: 2px; }
.hero-phone-number { font-size: clamp(26px, 4vw, 36px); font-weight: 700; color: #fff; letter-spacing: -.01em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── STATS BAR ── */
.stats-bar {
  background: rgba(241,245,249,.8);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  divide: var(--border);
}
.stat-item { text-align: center; padding: 0 16px; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 12px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* ── SECTION ── */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-primary { background: var(--primary); color: #fff; }
.section-accent { background: var(--bg-accent); }
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 16px;
}
.section-title.white { color: #fff; }
.section-subtitle { font-size: 18px; color: var(--muted); max-width: 600px; line-height: 1.7; }
.section-subtitle.white { color: rgba(255,255,255,.8); }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 56px; }

/* ── CARDS ── */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: box-shadow .2s;
}
.card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(42,138,126,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.card-icon svg { width: 24px; height: 24px; color: var(--secondary); }
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.7; margin-bottom: 20px; }
.card-link { color: var(--secondary); font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.card-link:hover { text-decoration: underline; }

/* ── CTA SECTION ── */
.cta-section { padding: 96px 0; text-align: center; }
.cta-section h2 { font-family: 'Playfair Display', serif; font-size: clamp(28px,4vw,44px); font-weight: 700; color: #fff; margin-bottom: 20px; }
.cta-section p { font-size: 18px; color: rgba(255,255,255,.8); margin-bottom: 40px; max-width: 580px; margin-left: auto; margin-right: auto; }

/* ── PAGE HERO ── */
.page-hero { background: var(--primary); color: #fff; padding: 64px 0 80px; }
.page-badge {
  display: inline-block;
  border: 1px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.8);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
}
.page-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(32px,5vw,52px); font-weight: 700; color: #fff; max-width: 640px; margin-bottom: 20px; line-height: 1.15; }
.page-hero p { font-size: 17px; color: rgba(255,255,255,.8); max-width: 580px; line-height: 1.7; }

/* ── PROCESS STAGES ── */
.stages { padding: 64px 0 80px; }
.stage { display: flex; gap: 40px; margin-bottom: 64px; position: relative; }
.stage:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 31px;
  top: 64px;
  bottom: -64px;
  width: 1px;
  background: var(--border);
}
.stage-number {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  z-index: 1;
}
.stage-body { flex: 1; padding-bottom: 20px; }
.stage-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 12px; }
.stage-name { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700; }
.stage-duration { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.stage-desc { color: var(--muted); font-size: 16px; line-height: 1.75; margin-bottom: 24px; }
.stage-tips { border-radius: 12px; padding: 24px; }
.stage-tips-title { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.stage-tips ul { list-style: none; }
.stage-tips ul li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; margin-bottom: 10px; }
.stage-tips ul li::before { content: '✓'; font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.tips-blue { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.tips-teal { background: #f0fdfa; border: 1px solid #99f6e4; color: #0f766e; }
.tips-violet { background: #f5f3ff; border: 1px solid #ddd6fe; color: #6d28d9; }
.tips-amber { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }

/* ── RESOURCES ── */
.filter-bar { border-bottom: 1px solid var(--border); background: rgba(248,250,252,.95); padding: 16px 0; position: sticky; top: 64px; z-index: 50; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-pill {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  transition: all .15s;
}
.filter-pill.active, .filter-pill:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.resources-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 64px 0; }
.resource-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s;
  text-decoration: none;
  color: inherit;
}
.resource-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.resource-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.badge {
  display: inline-block;
  background: #f1f5f9;
  color: var(--primary);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
}
.read-time { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.resource-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.resource-card p { color: var(--muted); font-size: 14px; line-height: 1.6; flex: 1; }
.resource-link { margin-top: 16px; color: var(--secondary); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 4px; }

/* ── RESOURCE DETAIL ── */
.resource-content { max-width: 720px; margin: 0 auto; padding: 64px 0; }
.resource-content p { color: var(--muted); font-size: 16px; line-height: 1.85; margin-bottom: 20px; }
.resource-cta { background: rgba(42,138,126,.06); border: 1px solid rgba(42,138,126,.15); border-radius: 20px; padding: 40px; text-align: center; margin-top: 64px; }
.resource-cta h3 { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.resource-cta p { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

/* ── FAQ ── */
.faq-wrap { max-width: 720px; margin: 0 auto; padding: 64px 0; }
.search-wrap { position: relative; max-width: 500px; margin-bottom: 24px; }
.search-wrap input { width: 100%; padding: 12px 16px 12px 44px; border: 1px solid var(--border); border-radius: 40px; font-size: 15px; font-family: inherit; background: #fff; outline: none; }
.search-wrap input:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(42,138,126,.1); }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-icon svg { width: 18px; height: 18px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; background: #fff; }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background .15s;
}
.faq-question:hover { background: var(--bg-accent); }
.faq-question.open { background: rgba(241,245,249,.5); }
.faq-chevron { flex-shrink: 0; transition: transform .25s; color: var(--muted); }
.faq-chevron svg { width: 18px; height: 18px; }
.faq-question.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 24px 20px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.faq-answer.open { display: block; }
.still-questions { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; border: 1px solid var(--border); border-radius: 20px; padding: 32px; background: #fff; margin-top: 48px; }
@media (min-width: 640px) { .still-questions { flex-direction: row; align-items: center; justify-content: space-between; } }
.still-questions h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.still-questions p { font-size: 14px; color: var(--muted); }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 48px; max-width: 900px; margin: 0 auto; padding: 64px 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.form-group label span.req { color: #ef4444; }
.form-group label span.opt { color: var(--muted); font-size: 12px; font-weight: 400; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(42,138,126,.1);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-error { color: #ef4444; font-size: 13px; margin-top: 4px; display: none; }
.btn-submit { width: 100%; font-size: 16px; height: 50px; justify-content: center; }
.form-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; line-height: 1.6; }
.trust-box { background: rgba(241,245,249,.6); border: 1px solid var(--border); border-radius: 20px; padding: 28px; }
.trust-box h3 { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; margin-bottom: 24px; }
.trust-item { display: flex; gap: 14px; margin-bottom: 22px; }
.trust-icon { flex-shrink: 0; width: 36px; height: 36px; background: rgba(42,138,126,.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.trust-icon svg { width: 16px; height: 16px; color: var(--secondary); }
.trust-item h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.trust-item p { font-size: 13px; color: var(--muted); }
.testimonial-box { border: 1px solid var(--border); border-radius: 16px; padding: 24px; background: #fff; margin-top: 20px; }
.testimonial-box p { font-style: italic; color: var(--muted); font-size: 14px; line-height: 1.7; margin-bottom: 12px; }
.testimonial-box span { font-size: 14px; font-weight: 600; }
.success-msg { text-align: center; padding: 48px 24px; }
.success-icon { width: 64px; height: 64px; background: #dcfce7; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.success-icon svg { width: 32px; height: 32px; color: #16a34a; }
.success-msg h2 { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700; margin-bottom: 12px; }
.success-msg p { color: var(--muted); line-height: 1.7; }

/* ── FOOTER ── */
.site-footer { background: var(--primary); color: #fff; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-brand { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; margin-bottom: 16px; display: block; }
.footer-tagline { color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 600; margin-bottom: 20px; }
.footer-col nav { display: flex; flex-direction: column; gap: 10px; }
.footer-col nav a { color: rgba(255,255,255,.7); font-size: 14px; transition: color .2s; }
.footer-col nav a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 24px 0; display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.5); }

/* ── ADMIN ── */
.admin-page { min-height: 100vh; background: var(--bg); }
.admin-header { background: var(--primary); padding: 20px 0; }
.admin-header h1 { font-family: 'Playfair Display', serif; font-size: 22px; color: #fff; }
.admin-header p { color: rgba(255,255,255,.6); font-size: 14px; }
.admin-inner { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.admin-stat { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; display: flex; align-items: center; gap: 16px; }
.admin-stat-value { font-size: 28px; font-weight: 700; color: var(--primary); }
.admin-stat-label { font-size: 13px; color: var(--muted); }
.admin-filters { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-filters input, .admin-filters select { padding: 9px 14px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 14px; outline: none; background: #fff; }
.admin-filters input { flex: 1; min-width: 200px; }
.request-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px; margin-bottom: 12px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.request-info { flex: 1; }
.request-name { font-weight: 600; font-size: 16px; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.status-badge { padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.status-new { background: #dbeafe; color: #1d4ed8; }
.status-contacted { background: #fef3c7; color: #92400e; }
.status-resolved { background: #dcfce7; color: #166534; }
.request-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.request-meta a:hover { color: var(--primary); }
.request-message { font-size: 14px; color: var(--muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.request-actions form { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.request-actions select { padding: 7px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; font-family: inherit; }

/* ── BACK LINK ── */
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: rgba(255,255,255,.7); margin-bottom: 24px; transition: color .2s; }
.back-link:hover { color: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .cards-grid, .resources-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .header-nav, .header-phone { display: none; }
  .cards-grid, .resources-grid, .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stage { flex-direction: column; gap: 16px; }
  .stage::after { display: none; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .request-card { flex-direction: column; }
}
