/* ============================================
   JORUVA WHY BUY DIRECT PAGE
   Module: 13-why-buy-direct.css
   Follows Compliance page patterns exactly
   ============================================ */

/* ============================================
   HIDE WORDPRESS PAGE TITLE (Astra Theme)
   Page ID: 1852
   NUCLEAR OPTION - Hide all title variations
   ============================================ */

/* ABSOLUTE HIGHEST SPECIFICITY - Target exact element */
body.page-id-1852 article h1.entry-title[itemprop="headline"],
body.page-id-1852 h1.entry-title[itemprop="headline"],
body.page-id-1852 #primary h1.entry-title,
body.page-id-1852 .site-main h1.entry-title,
body.page-id-1852 article.page h1.entry-title,
html body.page-id-1852 h1.entry-title {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  left: -9999px !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

/* Original selectors (kept for backup) */
.page-id-1852 h1.entry-title,
.page-id-1852 .entry-title,
.page-id-1852 h1[itemprop="headline"],
body.page-id-1852 h1.entry-title {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  opacity: 0 !important;
}

/* Target the entire entry header area */
body.page-id-1852 .entry-header,
body.page-id-1852 header.entry-header,
body.page-id-1852 .ast-single-post-title-wrapper,
body.page-id-1852 .ast-archive-description,
.page-id-1852 .entry-header,
.page-id-1852 header.entry-header,
.page-id-1852 .ast-single-post-title-wrapper,
.page-id-1852 .ast-archive-description {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Target the title itself wherever it appears */
body.page-id-1852 .page-title,
body.page-id-1852 .ast-title-bar-wrap,
.page-id-1852 .page-title,
.page-id-1852 .ast-title-bar-wrap {
  display: none !important;
}

/* Target Astra page header container */
body.page-id-1852 .ast-page-header-section,
body.page-id-1852 .ast-page-header-wrap,
.page-id-1852 .ast-page-header-section,
.page-id-1852 .ast-page-header-wrap {
  display: none !important;
}

/* Hide any article header that contains the title */
body.page-id-1852 article > header,
.page-id-1852 article > header {
  display: none !important;
}

/* Remove the white space/margin above content */
body.page-id-1852 #primary > article,
body.page-id-1852 .site-content .ast-container,
body.page-id-1852 #content > .ast-container,
body.page-id-1852 .site-main,
body.page-id-1852 #primary {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* ============================================
   FULL WIDTH FIX (Same as Compliance)
   ============================================ */
.wbd-hero,
.wbd-problem,
.wbd-comparison,
.wbd-advantages,
.wbd-customers,
.wbd-faq,
.wbd-cta {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  box-sizing: border-box !important;
}

/* ============================================
   COMMON ELEMENTS
   ============================================ */
.wbd-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--jrv-blue);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.wbd-section-header {
  max-width: 800px;
  margin-bottom: 48px;
}

.wbd-section-header h2 {
  font-size: 40px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 16px 0;
}

.wbd-section-header p {
  font-size: 18px;
  color: var(--jrv-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   HERO SECTION
   ============================================ */
.wbd-hero {
  padding: 140px 60px 100px !important;
  background: linear-gradient(135deg, #0a0a0a 0%, #0d1a2d 50%, #0a0a0a 100%) !important;
  text-align: center;
}

.wbd-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.wbd-hero h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
  margin: 0 0 24px 0;
}

.wbd-hero-subtitle {
  font-size: 20px;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  margin: 0 0 32px 0;
}

.wbd-hero-ctas {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   THE PROBLEM SECTION - CENTERING FIX
   ============================================ */
.wbd-problem {
  padding: 100px 60px !important;
  background: var(--jrv-dark) !important;
}

/* NUCLEAR FIX: Center the section header container */
.wbd-problem .wbd-section-header {
  text-align: center !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* NUCLEAR FIX: Center the label */
.wbd-problem .wbd-section-header .wbd-label,
.wbd-problem .wbd-label {
  text-align: center !important;
  display: block !important;
  width: 100% !important;
}

/* NUCLEAR FIX: Center the h2 */
.wbd-problem .wbd-section-header h2,
.wbd-problem h2 {
  text-align: center !important;
}

.wbd-problem > p {
  font-size: 18px;
  color: var(--jrv-text-muted);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 48px auto !important;
  text-align: center !important;
}

.wbd-problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.wbd-problem-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
}

.wbd-problem-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 16px;
}

.wbd-problem-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 12px 0;
}

.wbd-problem-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--jrv-text-muted);
  margin: 0;
}

/* ============================================
   COMPARISON TABLE SECTION
   ============================================ */
.wbd-comparison {
  padding: 100px 60px !important;
  background: linear-gradient(180deg, #0d1420 0%, var(--jrv-dark) 100%) !important;
}

.wbd-comparison .wbd-section-header {
  text-align: center;
  max-width: 100%;
}

.wbd-comparison .wbd-section-header h2 {
  text-align: center;
}

.wbd-table-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  overflow-x: auto;
}

.wbd-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.02);
  border-radius: 16px;
  overflow: hidden;
}

.wbd-table thead {
  background: rgba(1,78,252,0.15);
}

.wbd-table th {
  padding: 20px 24px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.wbd-table th:first-child {
  border-radius: 16px 0 0 0;
}

.wbd-table th:last-child {
  border-radius: 0 16px 0 0;
  background: rgba(1,78,252,0.25);
}

.wbd-table td {
  padding: 20px 24px;
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  vertical-align: top;
}

.wbd-table tr:last-child td {
  border-bottom: none;
}

.wbd-table tr:last-child td:first-child {
  border-radius: 0 0 0 16px;
}

.wbd-table tr:last-child td:last-child {
  border-radius: 0 0 16px 0;
}

.wbd-table td:first-child {
  font-weight: 600;
  color: #ffffff;
}

.wbd-table td:last-child {
  background: rgba(1,78,252,0.08);
  color: #ffffff;
}

.wbd-table tbody tr:hover {
  background: rgba(255,255,255,0.02);
}

/* ============================================
   ADVANTAGES SECTION
   ============================================ */
.wbd-advantages {
  padding: 100px 60px !important;
  background: var(--jrv-dark) !important;
}

.wbd-advantages .wbd-section-header {
  text-align: center;
  max-width: 100%;
}

.wbd-advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.wbd-advantage-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 40px 32px;
  transition: all 0.3s;
}

.wbd-advantage-card:hover {
  border-color: rgba(1,78,252,0.3);
  transform: translateY(-4px);
}

.wbd-advantage-number {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--jrv-blue);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.wbd-advantage-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 12px 0;
}

.wbd-advantage-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--jrv-text-muted);
  margin: 0 0 16px 0;
}

.wbd-advantage-card p:last-child {
  margin-bottom: 0;
}

.wbd-advantage-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--jrv-sky);
  text-decoration: none;
  transition: color 0.2s;
}

.wbd-advantage-link:hover {
  color: #ffffff;
}

/* ============================================
   CUSTOMERS SECTION
   ============================================ */
.wbd-customers {
  padding: 100px 60px !important;
  background: linear-gradient(180deg, var(--jrv-dark) 0%, #0d1420 100%) !important;
}

.wbd-customers .wbd-section-header {
  text-align: center;
  max-width: 100%;
}

.wbd-customers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.wbd-customer-segment {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 40px 32px;
}

.wbd-customer-segment h3 {
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 16px 0;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--jrv-blue);
}

.wbd-customer-segment > p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--jrv-text-muted);
  margin: 0 0 20px 0;
}

.wbd-customer-segment ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wbd-customer-segment li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}

.wbd-customer-segment li:last-child {
  margin-bottom: 0;
}

.wbd-customer-segment li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--jrv-green);
  font-weight: 700;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.wbd-faq {
  padding: 100px 60px !important;
  background: var(--jrv-dark) !important;
}

.wbd-faq .wbd-section-header {
  text-align: center;
  max-width: 100%;
}

.wbd-faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.wbd-faq-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
}

.wbd-faq-item:last-child {
  margin-bottom: 0;
}

.wbd-faq-item h3 {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 16px 0;
}

.wbd-faq-item p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--jrv-text-muted);
  margin: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */
.wbd-cta {
  padding: 100px 60px !important;
  background: linear-gradient(135deg, var(--jrv-deep-blue) 0%, #001a52 100%) !important;
  text-align: center;
}

.wbd-cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.wbd-cta-content h2 {
  font-size: 36px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 16px 0;
}

.wbd-cta-content > p {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  margin: 0 0 32px 0;
}

.wbd-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.wbd-cta-phone {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
}

.wbd-cta-phone a {
  color: var(--jrv-sky);
  text-decoration: none;
  font-weight: 600;
}

.wbd-cta-phone a:hover {
  color: #ffffff;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1024px) {
  .wbd-problem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .wbd-advantages-grid,
  .wbd-customers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .wbd-hero {
    padding: 100px 24px 80px !important;
  }
  
  .wbd-hero h1 {
    font-size: 36px;
  }
  
  .wbd-problem,
  .wbd-comparison,
  .wbd-advantages,
  .wbd-customers,
  .wbd-faq,
  .wbd-cta {
    padding: 80px 24px !important;
  }
  
  .wbd-section-header h2 {
    font-size: 32px;
  }
  
  .wbd-problem-grid,
  .wbd-advantages-grid,
  .wbd-customers-grid {
    grid-template-columns: 1fr;
  }
  
  .wbd-table {
    font-size: 14px;
  }
  
  .wbd-table th,
  .wbd-table td {
    padding: 16px;
  }
  
  .wbd-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .wbd-hero-ctas {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .wbd-hero h1 {
    font-size: 28px;
  }
  
  .wbd-advantage-card,
  .wbd-customer-segment,
  .wbd-faq-item {
    padding: 24px;
  }
}
