/**
 * ApexTrial Advocates - Criminal Defense & Civil Rights Stylesheet
 * Prepared for Royal Addons for Elementor Integration
 */

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

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

body {
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #334155;
  background-color: #fafbfc;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', serif;
  color: #090d16;
  margin-top: 0;
  line-height: 1.25;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 85px 0;
  position: relative;
}

.section-bg-light {
  background-color: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 55px auto;
}

.section-subtitle {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  padding: 6px 18px;
  border-radius: 9999px;
  margin-bottom: 14px;
}

.section-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.section-title span {
  color: #dc2626;
}

.section-desc {
  font-size: 16px;
  color: #64748b;
  margin-bottom: 0;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-defense {
  padding: 80px 0 100px 0;
  background: radial-gradient(circle at top right, rgba(220, 38, 38, 0.12) 0%, rgba(9, 13, 22, 0) 65%),
              linear-gradient(180deg, #090d16 0%, #030712 100%);
  color: #ffffff;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 60px;
}

.hero-pill-red {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: #fca5a5;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 9999px;
  margin-bottom: 22px;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  color: #ffffff;
}

.hero-title span {
  color: #dc2626;
}

.hero-desc {
  font-size: 17.5px;
  color: #cbd5e1;
  margin-bottom: 34px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 45px;
}

.btn-crimson {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #dc2626;
  color: #ffffff;
  font-weight: 700;
  font-size: 14.5px;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(220, 38, 38, 0.4);
  transition: all 0.3s ease;
}

.btn-crimson:hover {
  background: #b91c1c;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.5);
}

.btn-outline-red {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: #ffffff;
  font-weight: 700;
  font-size: 14.5px;
  padding: 14px 26px;
  border-radius: 6px;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline-red:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.h-stat-num {
  font-family: 'Cinzel', serif;
  font-size: 32px;
  font-weight: 700;
  color: #ef4444;
  line-height: 1;
}

.h-stat-label {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 4px;
  font-weight: 600;
}

.hero-img-box {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  border: 4px solid rgba(220, 38, 38, 0.4);
}

.hero-img-box img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   Quick Defense Highlights (Royal Addons: royalfeatures)
   ========================================================================== */
.features-strip {
  padding: 0;
  margin-top: -35px;
  position: relative;
  z-index: 10;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-box {
  background: #ffffff;
  padding: 26px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(9, 13, 22, 0.08);
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(220, 38, 38, 0.12);
  border-color: #fca5a5;
}

.f-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: #fef2f2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.feature-box h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-box p {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* ==========================================================================
   Defense Practice Areas (Royal Addons: royalservices)
   ========================================================================== */
.defense-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.defense-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 36px 30px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px rgba(9, 13, 22, 0.04);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}

.defense-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(220, 38, 38, 0.12);
  border-color: #fca5a5;
}

.d-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: #fef2f2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 22px;
  transition: all 0.3s ease;
}

.defense-card:hover .d-icon-box {
  background: #090d16;
  color: #ffffff;
}

.defense-card h3 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 12px;
}

.defense-card p {
  font-size: 14.5px;
  color: #64748b;
  margin-bottom: 20px;
  flex-grow: 1;
}

.defense-link {
  font-size: 13.5px;
  font-weight: 700;
  color: #dc2626;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.defense-link:hover {
  gap: 10px;
  color: #090d16;
}

/* ==========================================================================
   4-Step Defense Strategy (Royal Addons: royaltimeline)
   ========================================================================== */
.strategy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.strategy-step {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px 24px;
  border: 1px solid #e2e8f0;
  text-align: center;
  transition: all 0.3s ease;
}

.strategy-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(220, 38, 38, 0.1);
  border-color: #fca5a5;
}

.step-number {
  font-family: 'Cinzel', serif;
  font-size: 36px;
  font-weight: 700;
  color: #dc2626;
  opacity: 0.35;
  margin-bottom: 10px;
  line-height: 1;
}

.strategy-step h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.strategy-step p {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
}

/* ==========================================================================
   Trial Attorneys (Royal Addons: royalteam)
   ========================================================================== */
.attorneys-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.attorney-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(9, 13, 22, 0.04);
  transition: all 0.3s ease;
}

.attorney-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(220, 38, 38, 0.12);
}

.attorney-img {
  height: 320px;
  overflow: hidden;
  background: #090d16;
}

.attorney-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.attorney-card:hover .attorney-img img {
  transform: scale(1.05);
}

.attorney-body {
  padding: 24px;
  text-align: center;
}

.attorney-body h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.attorney-title {
  font-size: 12.5px;
  color: #dc2626;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.attorney-body p {
  font-size: 13.5px;
  color: #64748b;
  margin-bottom: 16px;
}

/* ==========================================================================
   Urgent Case Defense Form (Royal Addons: royalform)
   ========================================================================== */
.defense-form-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
}

.defense-form-card {
  background: #ffffff;
  padding: 44px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 15px 40px rgba(9, 13, 22, 0.06);
}

.d-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.d-full {
  grid-column: span 2;
}

.d-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #090d16;
  margin-bottom: 6px;
}

.d-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: 14px;
  outline: none;
  transition: all 0.25s ease;
}

.d-input:focus {
  border-color: #dc2626;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.defense-urgent-panel {
  background: linear-gradient(135deg, #090d16 0%, #1e1b4b 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rights-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 30px 0;
}

.rights-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.rights-list li i {
  color: #ef4444;
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   FAQ Accordion (Royal Addons: royalaccordion)
   ========================================================================== */
.faq-box {
  max-width: 820px;
  margin: 0 auto;
}

.faq-row {
  background: #ffffff;
  border-radius: 10px;
  margin-bottom: 14px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.faq-btn {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 16.5px;
  font-weight: 700;
  color: #090d16;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-btn i {
  color: #dc2626;
  transition: transform 0.3s ease;
}

.faq-row.active .faq-btn i {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
  color: #475569;
  font-size: 15px;
  line-height: 1.65;
}

.faq-row.active .faq-content {
  max-height: 250px;
  padding-bottom: 20px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.apex-defense-footer {
  background: #030712;
  color: #cbd5e1;
  padding: 70px 0 0 0;
  font-size: 14.5px;
}

.f-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 60px;
}

.f-col h4 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
}

.f-col h4::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 28px;
  height: 2px;
  background: #dc2626;
}

.f-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.f-links li {
  margin-bottom: 12px;
}

.f-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.f-links a:hover {
  color: #ef4444;
  padding-left: 4px;
}

.f-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  text-align: center;
  font-size: 13.5px;
  color: #64748b;
}

.f-bottom a {
  color: #ef4444;
  text-decoration: none;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 36px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

@media (max-width: 1024px) {
  .hero-grid,
  .defense-form-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .defense-grid,
  .strategy-grid,
  .attorneys-grid,
  .f-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero-title { font-size: 36px; }
  .features-grid,
  .defense-grid,
  .strategy-grid,
  .attorneys-grid,
  .d-form-grid,
  .f-grid {
    grid-template-columns: 1fr;
  }
  .d-full { grid-column: span 1; }
}
