/* ================================================================
   CRIMINAL-LAW.CSS — Medhas Law USA Criminal Law Service Page
   Scope: sp- prefix (service page). Loaded after styles.css.
================================================================ */

/* ── REVEAL ANIMATION ──────────────────────────────────────────── */
.sp-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease calc(var(--d, 0s)), transform .6s ease calc(var(--d, 0s));
}
.sp-reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ── HERO ───────────────────────────────────────────────────────── */
.sp-hero {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height, 80px) + 72px) 0 88px;
  background: var(--navy, #102B50);
  overflow: hidden;
}
.sp-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.sp-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.40) saturate(1.1);
}
.sp-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(8, 15, 29, 0.94) 0%,
    rgba(16, 43, 80, 0.88) 50%,
    rgba(16, 43, 80, 0.72) 100%
  );
  pointer-events: none;
}
.sp-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196,154,82,.35), transparent);
  z-index: 1;
}
.sp-hero-inner {
  position: relative;
  z-index: 1;
}

/* Breadcrumb */
.sp-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 24px;
}
.sp-breadcrumb a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .2s;
}
.sp-breadcrumb a:hover { color: var(--gold, #C49A52); }
.sp-breadcrumb [aria-current="page"] { color: var(--gold, #C49A52); font-weight: 500; }

.sp-hero-content { max-width: 680px; }
.sp-hero-heading {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.18;
  margin: 14px 0 20px;
}
.sp-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.76);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 34px;
}
.sp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ── TWO-COLUMN LAYOUT ──────────────────────────────────────────── */
.sp-layout {
  background: var(--ivory, #F8F6F0);
}
.sp-layout-inner {
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 80px;
  align-items: start;
}

/* ── SIDEBAR ────────────────────────────────────────────────────── */
.sp-sidebar {
  position: sticky;
  top: calc(var(--header-height, 80px) + 20px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Sidebar white card */
.sp-sidebar-card {
  background: #fff;
  border: 1px solid #e4ddd0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(16,43,80,.06);
}
.sp-sidebar-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--white, #fff);
  background: var(--navy, #102B50);
  padding: 16px 20px;
}

/* Service list */
.sp-service-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
.sp-service-item { border-bottom: 1px solid #f0ece4; }
.sp-service-item:last-child { border-bottom: none; }
.sp-service-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-dark, #1a202c);
  text-decoration: none;
  transition: background .18s, color .18s;
}
.sp-service-link:hover {
  background: var(--ivory, #F8F6F0);
  color: var(--navy, #102B50);
}
.sp-service-link--active {
  background: rgba(16,43,80,.06);
  color: var(--navy, #102B50);
  font-weight: 600;
}
.sp-service-icon {
  color: var(--gold, #C49A52);
  flex-shrink: 0;
}
.sp-service-link--active .sp-service-icon { color: var(--gold, #C49A52); }
.sp-service-arrow {
  margin-left: auto;
  color: #c5c5c5;
  flex-shrink: 0;
  transition: transform .18s, color .18s;
}
.sp-service-link:hover .sp-service-arrow,
.sp-service-link--active .sp-service-arrow {
  transform: translateX(3px);
  color: var(--gold, #C49A52);
}

/* Contact Card */
.sp-contact-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 300px;
  background: var(--navy, #102B50);
}
.sp-contact-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(8,15,29,.82) 0%, rgba(16,43,80,.92) 100%);
  z-index: 0;
}
.sp-contact-card-content {
  position: relative;
  z-index: 1;
  padding: 32px 28px;
}
.sp-contact-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: rgba(196,154,82,.20);
  border: 1px solid rgba(196,154,82,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold, #C49A52);
  margin-bottom: 18px;
}
.sp-contact-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
}
.sp-contact-card-text {
  font-size: .87rem;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  margin-bottom: 22px;
}
.sp-contact-card-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sp-contact-card-link {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .87rem;
  font-weight: 500;
  color: var(--gold, #C49A52);
  text-decoration: none;
  transition: color .18s;
}
.sp-contact-card-link:hover { color: #e0bc78; }
.sp-contact-card-link svg { flex-shrink: 0; }

/* Sidebar appointment button */
.sp-sidebar-apt-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  font-size: .92rem;
}

/* ── MAIN CONTENT ───────────────────────────────────────────────── */
.sp-content {
  min-width: 0;
}
.sp-section {
  margin-bottom: 72px;
}
.sp-section:last-child { margin-bottom: 0; }

/* Section headers */
.sp-section-header {
  margin-bottom: 40px;
}
.sp-section-heading {
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--navy, #102B50);
  margin: 10px 0 12px;
  line-height: 1.22;
}
.sp-section-sub {
  font-size: .97rem;
  color: var(--text-mid, #4a5568);
  line-height: 1.75;
  max-width: 640px;
}
.sp-body {
  font-size: .97rem;
  color: var(--text-mid, #4a5568);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ── INTRO SECTION ──────────────────────────────────────────────── */
.sp-intro-content {
  width: 100%;
}
.sp-intro-content .sp-section-heading {
  margin: 10px 0 20px;
}
.sp-intro-content .sp-body {
  max-width: 100%;
  font-size: 1.02rem;
  line-height: 1.85;
}

/* ── SERVICES GRID ──────────────────────────────────────────────── */
.sp-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.sp-service-card {
  background: #fff;
  border: 1px solid #e4ddd0;
  border-radius: 10px;
  padding: 26px 24px;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.sp-service-card:hover {
  box-shadow: 0 10px 32px rgba(16,43,80,.09);
  transform: translateY(-3px);
  border-color: var(--gold, #C49A52);
}
.sp-service-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(16,43,80,.06);
  color: var(--gold, #C49A52);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: background .2s;
}
.sp-service-card:hover .sp-service-card-icon {
  background: var(--navy, #102B50);
}
.sp-service-card-title {
  font-size: .97rem;
  font-weight: 700;
  color: var(--navy, #102B50);
  margin: 0 0 8px;
  line-height: 1.3;
}
.sp-service-card-desc {
  font-size: .86rem;
  color: var(--text-mid, #4a5568);
  line-height: 1.7;
  margin: 0;
}

/* ── APPROACH STEPS ─────────────────────────────────────────────── */
.sp-approach-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sp-step {
  display: flex;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid #e8e2d6;
  align-items: flex-start;
}
.sp-step:first-child { padding-top: 0; }
.sp-step:last-child { border-bottom: none; padding-bottom: 0; }
.sp-step-num {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy, #102B50);
  color: var(--gold, #C49A52);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: .02em;
}
.sp-step-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy, #102B50);
  margin: 0 0 8px;
}
.sp-step-desc {
  font-size: .92rem;
  color: var(--text-mid, #4a5568);
  line-height: 1.75;
  margin: 0;
}

/* ── WHY CARDS ──────────────────────────────────────────────────── */
.sp-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.sp-why-card {
  background: #fff;
  border: 1px solid #e4ddd0;
  border-top: 3px solid var(--gold, #C49A52);
  border-radius: 10px;
  padding: 28px 24px;
  transition: box-shadow .25s, transform .25s;
}
.sp-why-card:hover {
  box-shadow: 0 10px 32px rgba(16,43,80,.09);
  transform: translateY(-3px);
}
.sp-why-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: rgba(196,154,82,.10);
  color: var(--gold, #C49A52);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.sp-why-card-title {
  font-size: .97rem;
  font-weight: 700;
  color: var(--navy, #102B50);
  margin: 0 0 8px;
}
.sp-why-card-desc {
  font-size: .87rem;
  color: var(--text-mid, #4a5568);
  line-height: 1.7;
  margin: 0;
}

/* ── FAQ ACCORDION ──────────────────────────────────────────────── */
.sp-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #e4ddd0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.sp-faq-item { border-bottom: 1px solid #e8e2d6; }
.sp-faq-item:last-child { border-bottom: none; }
.sp-faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Poppins', sans-serif;
  font-size: .94rem;
  font-weight: 600;
  color: var(--navy, #102B50);
  transition: background .18s, color .18s;
}
.sp-faq-btn:hover { background: var(--ivory, #F8F6F0); }
.sp-faq-btn[aria-expanded="true"] {
  background: var(--navy, #102B50);
  color: #fff;
}
.sp-faq-chevron {
  flex-shrink: 0;
  transition: transform .3s ease;
  color: var(--gold, #C49A52);
}
.sp-faq-btn[aria-expanded="true"] .sp-faq-chevron {
  transform: rotate(180deg);
  color: var(--gold, #C49A52);
}
.sp-faq-answer {
  padding: 0 24px 22px;
  background: var(--ivory, #F8F6F0);
}
.sp-faq-answer p {
  font-size: .9rem;
  color: var(--text-mid, #4a5568);
  line-height: 1.8;
  margin: 0;
  padding-top: 16px;
}

/* ── CLOSING CTA ────────────────────────────────────────────────── */
.sp-cta {
  background: none;
  padding: 0;
  margin-bottom: 0;
}
.sp-cta-inner {
  position: relative;
  background: var(--navy, #102B50);
  border-radius: 14px;
  padding: 56px 52px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.sp-cta-glow {
  position: absolute;
  top: -80px; right: -80px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,154,82,.15) 0%, transparent 65%);
  pointer-events: none;
}
.sp-cta-text { flex: 1; max-width: 500px; }
.sp-cta-heading {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin: 10px 0 14px;
  line-height: 1.22;
}
.sp-cta-sub {
  font-size: .95rem;
  color: rgba(255,255,255,.72);
  line-height: 1.75;
  margin: 0;
}
.sp-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}
.sp-cta-actions .btn { min-width: 210px; justify-content: center; }

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .sp-layout-inner {
    grid-template-columns: 40% 1fr;
    gap: 36px;
  }
}

@media (max-width: 900px) {
  .sp-layout-inner {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }
  .sp-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .sp-sidebar-card { grid-column: 1 / -1; }
  .sp-services-grid { grid-template-columns: 1fr; }
  .sp-why-grid { grid-template-columns: 1fr; }
  .sp-cta-inner {
    flex-direction: column;
    text-align: center;
    padding: 44px 32px;
  }
  .sp-cta-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 640px) {
  .sp-hero-heading { font-size: 1.85rem; }
  .sp-hero-actions { flex-direction: column; }
  .sp-hero-actions .btn { width: 100%; justify-content: center; }
  .sp-sidebar { grid-template-columns: 1fr; }
  .sp-step { gap: 18px; }
  .sp-step-num { width: 46px; height: 46px; font-size: .88rem; }
  .sp-cta-inner { padding: 36px 24px; }
  .sp-cta-actions { flex-direction: column; width: 100%; }
  .sp-cta-actions .btn { width: 100%; }
  .sp-layout-inner { gap: 28px; }
}
