/* ============================================================
   LEGALRAHO — Inner Page Material Design System
   Shared styles for service, article, category, static pages
   ============================================================ */

:root {
    --lp-navy: #0f172a;
    --lp-navy-2: #1e293b;
    --lp-muted: #64748b;
    --lp-muted-light: #94a3b8;
    --lp-accent: #fb6b00;
    --lp-accent-dark: #d45500;
    --lp-accent-light: #fff0e6;
    --lp-accent-soft: #fff7f0;
    --lp-green: #55c53c;
    --lp-green-dark: #1ea028;
    --lp-green-light: #dcfce7;
    --lp-green-soft: #f0fdf4;
    --lp-blue: #007bff;
    --lp-blue-light: #dbeafe;
    --lp-blue-soft: #eff6ff;
    --lp-bg: #f8fafc;
    --lp-surface: #ffffff;
    --lp-border: #e2e8f0;
    --lp-border-light: #f1f5f9;
    --lp-radius: 12px;
    --lp-radius-lg: 16px;
    --lp-radius-xl: 24px;
    --lp-shadow-1: 0 1px 3px rgba(15,23,42,0.06);
    --lp-shadow-2: 0 4px 12px rgba(15,23,42,0.08);
    --lp-shadow-3: 0 8px 24px rgba(15,23,42,0.12);
    --lp-transition: 200ms cubic-bezier(0.4,0,0.2,1);
}

.lp-page * { box-sizing: border-box; }
.lp-page { font-family: 'Inter', 'Plus Jakarta Sans', system-ui, sans-serif; }

/* Body copy renders at regular weight; headings keep their bold weights. */
.lp-page p { font-weight: 400; }

/* ---------- Page Hero ---------- */
.lp-hero {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #f5f8fa 0%, #ffffff 50%, #fff7f0 100%);
    padding: 2.5rem 1.5rem 2rem;
}
.lp-hero__bg { position: absolute; top: -10%; right: -5%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(251,107,0,0.05), transparent 70%); border-radius: 50%; filter: blur(60px); pointer-events: none; }
.lp-hero__inner { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; }
.lp-breadcrumb { font-size: 0.82rem; color: var(--lp-muted-light); margin-bottom: 0.75rem; }
.lp-breadcrumb a { color: var(--lp-blue); text-decoration: none; }
.lp-breadcrumb a:hover { text-decoration: underline; }
.lp-breadcrumb span { margin: 0 6px; color: var(--lp-muted-light); }
.lp-hero__title { font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 800; color: var(--lp-navy); line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
.lp-hero__desc { font-size: 1.05rem; color: var(--lp-muted); line-height: 1.65; margin-top: 0.75rem; max-width: 700px; font-weight: 400; }
.lp-hero__actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; border-radius: var(--lp-radius); font-size: 0.95rem; font-weight: 700; border: none; cursor: pointer; text-decoration: none; transition: all var(--lp-transition); font-family: inherit; min-height: 48px; }
.lp-btn--primary { background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent-dark)); color: #fff; box-shadow: 0 4px 14px rgba(251,107,0,0.25); }
.lp-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(251,107,0,0.35); text-decoration: none; }
.lp-btn--outline { background: #fff; color: var(--lp-navy); border: 1.5px solid var(--lp-border); }
.lp-btn--outline:hover { border-color: var(--lp-accent); color: var(--lp-accent); text-decoration: none; }

/* ---------- Section ---------- */
.lp-section { padding: 2.5rem 1.5rem; }
.lp-section--gray { background: var(--lp-bg); }
.lp-section__inner { max-width: 1100px; margin: 0 auto; }
.lp-section__header { margin-bottom: 2rem; }
.lp-section__eyebrow { font-size: 0.78rem; font-weight: 600; color: var(--lp-accent); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; display: inline-block; }
.lp-section__title { font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 800; color: var(--lp-navy); margin: 0; }
.lp-section__desc { font-size: 0.95rem; color: var(--lp-muted); line-height: 1.6; margin-top: 0.5rem; font-weight: 400; }

/* ---------- Content layout ---------- */
.lp-content { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem; }
.lp-content__main { min-width: 0; }
.lp-content__sidebar { min-width: 0; }

/* ---------- Cards ---------- */
.lp-card { background: #fff; border: 1px solid var(--lp-border); border-radius: var(--lp-radius-lg); padding: 1.5rem; transition: all var(--lp-transition); }
.lp-card--hover:hover { border-color: var(--lp-accent-light); box-shadow: var(--lp-shadow-2); transform: translateY(-2px); }

/* ---------- Benefits grid ---------- */
.lp-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.lp-benefit { background: #fff; border: 1px solid var(--lp-border); border-radius: var(--lp-radius); padding: 1.25rem; }
.lp-benefit__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--lp-accent-soft); color: var(--lp-accent); display: flex; align-items: center; justify-content: center; margin-bottom: 0.75rem; }
.lp-benefit__title { font-size: 0.95rem; font-weight: 700; color: var(--lp-navy); margin: 0 0 0.35rem; }
.lp-benefit__desc { font-size: 0.82rem; color: var(--lp-muted); line-height: 1.5; margin: 0; font-weight: 400; }

/* ---------- Process steps ---------- */
.lp-process { display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0; }
.lp-process__step { display: flex; gap: 1rem; align-items: flex-start; }
.lp-process__num { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; flex-shrink: 0; font-size: 1rem; }
.lp-process__num--1 { background: var(--lp-accent); }
.lp-process__num--2 { background: var(--lp-green); }
.lp-process__num--3 { background: var(--lp-blue); }
.lp-process__title { font-weight: 700; color: var(--lp-navy); font-size: 0.95rem; margin: 0 0 0.25rem; }
.lp-process__desc { color: var(--lp-muted); font-size: 0.88rem; line-height: 1.5; margin: 0; font-weight: 400; }

/* ---------- FAQ ---------- */
.lp-faq { display: flex; flex-direction: column; gap: 0.75rem; margin: 1.5rem 0; }
.lp-faq__item { background: #fff; border: 1px solid var(--lp-border); border-radius: var(--lp-radius); overflow: hidden; }
.lp-faq__q { width: 100%; text-align: left; padding: 1rem 1.25rem; border: none; background: none; font-weight: 600; color: var(--lp-navy); font-size: 0.92rem; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-family: inherit; }
.lp-faq__q:hover { color: var(--lp-accent); }
.lp-faq__icon { font-size: 1.2rem; color: var(--lp-accent); flex-shrink: 0; }
.lp-faq__a { padding: 0 1.25rem 1rem; color: var(--lp-muted); font-size: 0.88rem; line-height: 1.6; display: none; }
.lp-faq__a--open { display: block; }

/* ---------- Sidebar CTA ---------- */
.lp-cta { background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent-dark)); border-radius: var(--lp-radius-lg); padding: 1.75rem; color: #fff; }
.lp-cta__title { color: #fff; font-size: 1.1rem; font-weight: 700; margin: 0; }
.lp-cta__desc { color: rgba(255,255,255,0.9); font-size: 0.88rem; margin-top: 0.5rem; line-height: 1.5; font-weight: 400; }
.lp-cta__btn { display: block; text-align: center; background: #fff; color: var(--lp-accent-dark); padding: 12px; border-radius: var(--lp-radius); font-weight: 700; text-decoration: none; margin-top: 1rem; transition: all var(--lp-transition); }
.lp-cta__btn:hover { background: rgba(255,255,255,0.92); text-decoration: none; }
.lp-cta__btn--outline { background: transparent; border: 1.5px solid rgba(255,255,255,0.4); color: #fff; }
.lp-cta__btn--outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.lp-cta__trust { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.2); }
.lp-cta__trust-item { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; font-size: 0.82rem; }
.lp-cta__trust-item span:first-child { color: rgba(255,255,255,0.8); }

/* ---------- Service grid (for category pages) ---------- */
.lp-svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.lp-svc-card { background: #fff; border: 1px solid var(--lp-border); border-radius: var(--lp-radius); padding: 1.25rem; text-decoration: none; color: inherit; transition: all var(--lp-transition); display: flex; flex-direction: column; gap: 0.5rem; }
.lp-svc-card:hover { border-color: var(--lp-accent-light); box-shadow: var(--lp-shadow-2); transform: translateY(-2px); text-decoration: none; }
.lp-svc-card__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--lp-accent-soft); color: var(--lp-accent); display: flex; align-items: center; justify-content: center; }
.lp-svc-card__title { font-size: 0.92rem; font-weight: 700; color: var(--lp-navy); margin: 0; }
.lp-svc-card__desc { font-size: 0.8rem; color: var(--lp-muted); line-height: 1.4; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 400; }
.lp-svc-card__link { font-size: 0.8rem; font-weight: 600; color: var(--lp-blue); margin-top: auto; }

/* ---------- Article content ---------- */
.lp-article { max-width: 800px; margin: 0 auto; padding: 2rem 1.5rem; }
.lp-article__cat { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 8px; background: var(--lp-accent-soft); color: var(--lp-accent); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.75rem; }
.lp-article__title { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 800; color: var(--lp-navy); line-height: 1.25; margin: 0 0 0.75rem; }
.lp-article__meta { font-size: 0.82rem; color: var(--lp-muted-light); margin-bottom: 1.5rem; font-weight: 400; }
.lp-article__body { font-size: 1rem; line-height: 1.75; color: var(--lp-navy-2); font-weight: 400; }
.lp-article__body p { margin-bottom: 1rem; font-weight: 400; }
.lp-article__body h2 { font-size: 1.3rem; font-weight: 700; color: var(--lp-navy); margin: 2rem 0 0.75rem; }
.lp-article__body h3 { font-size: 1.1rem; font-weight: 600; color: var(--lp-navy); margin: 1.5rem 0 0.5rem; }
.lp-article__body ul, .lp-article__body ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.lp-article__body li { margin-bottom: 0.5rem; font-weight: 400; }

/* ---------- 404 ---------- */
.lp-404 { text-align: center; padding: 4rem 1.5rem; max-width: 600px; margin: 0 auto; }
.lp-404__code { font-size: 5rem; font-weight: 800; color: var(--lp-accent); line-height: 1; }
.lp-404__title { font-size: 1.5rem; font-weight: 700; color: var(--lp-navy); margin: 1rem 0 0.5rem; }
.lp-404__desc { color: var(--lp-muted); font-size: 1rem; line-height: 1.6; margin-bottom: 2rem; font-weight: 400; }

/* ---------- Stats strip ---------- */
.lp-stats { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-top: 1.5rem; }
.lp-stats__item { text-align: center; }
.lp-stats__value { font-size: 1.5rem; font-weight: 800; color: var(--lp-accent); line-height: 1; }
.lp-stats__label { font-size: 0.78rem; color: var(--lp-muted); margin-top: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .lp-content { grid-template-columns: 1fr; }
    .lp-svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .lp-svc-grid { grid-template-columns: 1fr; }
    .lp-benefits { grid-template-columns: 1fr; }
    .lp-hero { padding: 2rem 1rem 1.5rem; }
    .lp-section { padding: 2rem 1rem; }
    .lp-content { padding: 1.5rem 1rem; }
    .lp-article { padding: 1.5rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
