/*
 * Dallas Media Company — Services pages (hub + detail).
 * Ported from the original services/*.php designs, adapted to class-based
 * selectors for native blocks. Loaded on the Services hub and detail pages.
 */

/* Shared section padding for the block-built sections */
.sv-overview, .sv-process, .sv-work, .sv-faq,
.svc-grid-section, .svc-process, .svc-work { padding: 100px 60px; }
.sv-section-title em, .section-title em { font-style: normal; color: var(--cyan); }

/* ── HERO ── */
.sv-hero { position: relative; min-height: 88vh; display: flex; flex-direction: column; justify-content: center; padding: 140px 60px 80px; overflow: hidden; background: linear-gradient(135deg, #071428 0%, #1a4b8c 55%, #2e7de6 100%); }
.sv-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(4,13,26,0.6) 0%, rgba(4,13,26,0.85) 70%, var(--navy) 100%); z-index: 0; }
.sv-hero > * { position: relative; z-index: 1; }
.sv-hero-inner { max-width: 1280px; margin: 0 auto; width: 100%; }
.sv-crumb { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gray); margin: 0 0 28px; }
.sv-crumb a { color: var(--gray); text-decoration: none; }
.sv-crumb a:hover { color: var(--cyan); }
.sv-eyebrow { display: inline-block; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--cyan); border: 1px solid rgba(0,212,255,0.3); padding: 8px 16px; margin: 0 0 28px; }
.sv-hero h1 { font-family: 'Bebas Neue', sans-serif !important; font-size: clamp(56px, 8.5vw, 124px) !important; line-height: 0.92 !important; letter-spacing: 2px; color: var(--white); margin: 0 0 28px; max-width: 1000px; }
.sv-hero h1 em { font-style: normal; color: var(--cyan); }
.sv-hero-sub { font-size: clamp(15px, 1.4vw, 19px); line-height: 1.6; color: rgba(240,244,255,0.85); max-width: 660px; margin: 0 0 40px; }
.sv-hero-stats { display: flex; gap: 32px; flex-wrap: wrap; padding-top: 28px; margin-top: 56px; border-top: 1px solid rgba(255,255,255,0.15); }
.sv-hero-stat { display: flex; flex-direction: column; gap: 4px; }
.sv-hero-stat-num { font-family: 'Bebas Neue', sans-serif; font-size: 28px; color: var(--cyan); line-height: 1; }
.sv-hero-stat-label { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gray); }

/* ── OVERVIEW + STATS ── */
.sv-overview { background: var(--navy2); }
.sv-overview-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 72px; align-items: start; max-width: 1280px; margin: 0 auto; }
.sv-overview-left h2 { font-family: 'Bebas Neue', sans-serif !important; font-size: clamp(40px, 4vw, 56px) !important; line-height: 1 !important; letter-spacing: 1px; color: var(--white); margin: 0 0 20px; }
.sv-overview-left h2 em { font-style: normal; color: var(--cyan); }
.sv-overview-left p { font-size: 15px; line-height: 1.75; color: var(--gray); margin: 0 0 28px; }
.sv-includes { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; }
.sv-includes li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--gray); line-height: 1.55; }
.sv-includes li::before { content: ''; width: 6px; height: 6px; flex-shrink: 0; background: var(--cyan); clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%); margin-top: 6px; }
.sv-overview-right { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(0,212,255,0.08); align-content: start; }
.sv-stat { background: var(--navy); padding: 32px 24px; margin: 0; }
.sv-stat-num { font-family: 'Bebas Neue', sans-serif; font-size: 52px; color: var(--cyan); line-height: 1; margin-bottom: 8px; }
.sv-stat-label { font-size: 11px; letter-spacing: 1.5px; color: var(--gray); text-transform: uppercase; }
.sv-price { grid-column: span 2; background: var(--navy2); border: 1px solid rgba(0,212,255,0.18); padding: 28px 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.sv-price-label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gray); margin-bottom: 4px; }
.sv-price-val { font-family: 'Bebas Neue', sans-serif; font-size: 36px; color: var(--white); }
.sv-price-note { font-size: 12px; color: var(--gray); margin-top: 4px; }

/* ── PROCESS ── */
.sv-process { background: var(--navy); }
.sv-process-head { max-width: 1280px; margin: 0 auto; }
.sv-process-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; margin: 64px auto 0; position: relative; max-width: 1280px; }
.sv-process-grid::before { content: ''; position: absolute; top: 28px; left: 12.5%; right: 12.5%; height: 1px; background: rgba(0,212,255,0.15); }
.sv-step { padding: 0 32px; margin: 0; }
.sv-step-num { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--cyan); display: flex; align-items: center; justify-content: center; font-family: 'Bebas Neue', sans-serif; font-size: 22px; color: var(--cyan); background: var(--navy); margin-bottom: 28px; position: relative; z-index: 1; }
.sv-step h4 { font-family: 'Bebas Neue', sans-serif !important; font-size: 22px !important; color: var(--white); letter-spacing: 1px; margin: 0 0 12px; }
.sv-step p { font-size: 14px; line-height: 1.7; color: var(--gray); margin: 0; }

/* ── WORK (native Query Loop of Portfolio items) ── */
.sv-work { background: var(--navy2); }
.sv-work-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; max-width: 1280px; margin: 0 auto; }
.sv-work-grid { display: grid !important; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 48px auto 0; max-width: 1280px; list-style: none; padding: 0; }
/* card = each query item (li) or static .sv-work-item */
.sv-work-grid > li, .sv-work-item { position: relative; overflow: hidden; aspect-ratio: 16/9; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; margin: 0; background: linear-gradient(135deg,#071428,#1a3a6e); }
.sv-work-grid > li:nth-child(3n+2), .sv-work-item:nth-child(3n+2) { background: linear-gradient(135deg,#0d1f3c,#1e5fbf); }
.sv-work-grid > li:nth-child(3n), .sv-work-item:nth-child(3n) { background: linear-gradient(135deg,#040d1a,#2e7de6); }
.sv-work-grid > li::before, .sv-work-item::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4,13,26,0.95) 0%, rgba(4,13,26,0.3) 50%, transparent 100%); }
.sv-work-grid > li > *, .sv-work-item > * { position: relative; z-index: 1; margin-top: 0; }
.sv-work-tag, .sv-work-tag a { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan); margin: 0 0 4px; text-decoration: none; }
.sv-work-title, .sv-work-title a { font-family: 'Bebas Neue', sans-serif !important; font-size: 20px !important; color: var(--white); letter-spacing: 1px; margin: 0 0 6px; text-decoration: none; }
.sv-work-title a:hover { color: var(--cyan); }
.sv-work-desc { font-size: 12px; color: rgba(240,244,255,0.7); line-height: 1.5; margin: 0; }
.sv-work-desc .wp-block-post-excerpt__more-text, .sv-work-desc .wp-block-post-excerpt__more-link { display: none; }

/* Neutralize core block-gap inside the now-core-block stat/step/price grids.
   Uses !important to beat WordPress's auto-generated .wp-container-* block-gap
   (same specificity, but printed after the theme stylesheet). */
.sv-hero-stats > *, .sv-hero-stat > *, .sv-overview-right > *, .sv-stat > *, .sv-process-grid > *, .sv-step > *, .sv-price > *, .sv-price-info > * { margin-top: 0 !important; margin-block-start: 0 !important; }
/* Explicit process-step rhythm matching the original design: number 28px below
   the title, title 12px above the copy, no trailing gap. */
.sv-step .sv-step-num { margin-bottom: 28px !important; }
.sv-step h4 { margin-bottom: 12px !important; }
.sv-step p { margin-bottom: 0 !important; }

/* ── FAQ (native core/details) ── */
.sv-faq { background: var(--navy); }
.sv-faq-inner { max-width: 880px; margin: 0 auto; }
.sv-faq-inner .wp-block-details { border-bottom: 1px solid rgba(0,212,255,0.12); padding: 0; }
.sv-faq-inner .wp-block-details:first-of-type { border-top: 1px solid rgba(0,212,255,0.12); margin-top: 40px; }
.sv-faq-inner summary { padding: 26px 0; cursor: pointer; font-family: 'Bebas Neue', sans-serif; font-size: 20px; color: var(--white); letter-spacing: 1px; list-style: none; }
.sv-faq-inner summary::-webkit-details-marker { display: none; }
.sv-faq-inner summary::marker { content: ''; }
.sv-faq-inner .wp-block-details p { padding: 0 0 26px; font-size: 14px; line-height: 1.75; color: var(--gray); margin: 0; }

/* ── CTA ── */
.sv-cta { background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(30,95,191,0.22) 0%, transparent 70%), var(--navy); padding: 120px 60px; text-align: center; }
.sv-cta-inner { max-width: 760px; margin: 0 auto; }
.sv-cta .section-label { justify-content: center; }
.sv-cta h2 { margin-bottom: 20px; }
.sv-cta p { font-size: 15px; line-height: 1.7; color: var(--gray); margin: 0 0 24px; }
.sv-cta .wp-block-buttons { justify-content: center; }
.sv-cta-direct { font-size: 13px; color: var(--gray); }
.sv-cta-direct a { color: var(--cyan); text-decoration: none; }

/* ── HUB grid of services ── */
.svc-grid-section { background: var(--navy2); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(0,212,255,0.08); margin-top: 56px; border: 1px solid rgba(0,212,255,0.08); }
/* Cancel the block-gap top margin WP adds to every child but the first, which
   otherwise pushes cards 2-9 down inside their cells (only card 1 looked right). */
.svc-grid > * { margin-top: 0 !important; margin-block-start: 0 !important; }
.svc-card { background: var(--navy2); padding: 40px 32px; position: relative; transition: background 0.3s; display: block; text-decoration: none; }
.svc-card:hover { background: rgba(30,95,191,0.15); }
.svc-card .svc-card-num { font-family: 'Bebas Neue', sans-serif; font-size: 14px; color: var(--cyan); letter-spacing: 2px; margin-bottom: 16px; }
.svc-card h3 { font-family: 'Bebas Neue', sans-serif !important; font-size: 26px !important; color: var(--white); letter-spacing: 1px; margin: 0 0 10px; }
.svc-card p { font-size: 14px; line-height: 1.65; color: var(--gray); margin: 0 0 16px; }
.svc-card .svc-card-link { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan); }
.svc-process { background: var(--navy); }
.svc-work { background: var(--navy2); }
.svc-cta { background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(30,95,191,0.22) 0%, transparent 70%), var(--navy); padding: 120px 60px; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .sv-overview, .sv-process, .sv-work, .sv-faq, .svc-grid-section, .svc-process, .svc-work { padding: 64px 24px; }
  .sv-hero { padding: 130px 24px 60px; min-height: unset; }
  .sv-overview-inner { grid-template-columns: 1fr; gap: 48px; }
  .sv-process-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .sv-process-grid::before { display: none; }
  .sv-work-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .sv-cta, .svc-cta { padding: 64px 24px; }
}
@media (max-width: 781px) {
  .sv-work-grid { grid-template-columns: 1fr; }
}
