/* =============================================================
   DUCON × DARK-PREVIEW DESIGN SYSTEM  v1.3.2
   Source: ducon-dark-preview.html (2026-04 reference)
   Scoped to .ducon-page so it cannot bleed into the host theme.
   ============================================================= */

/* Full-bleed: escape any narrow parent column the host theme imposes,
   so dark/colored sections span the full viewport width. */
.ducon-page {
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Strip WP constrained-layout max-width/padding from all inner-containers
   so they don't squeeze our sections to a narrow column. */
.ducon-page .wp-block-group__inner-container {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* Pattern now outputs clean raw HTML (wp:html block) — no WP inner-containers.
   Grid lives directly on .hero-grid and .intro-grid. */
/* Buttons block — kill the WP flex-wrap default constraints so our hero-actions
   stay horizontal up to the proper breakpoint. */
.ducon-page .wp-block-buttons.is-layout-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.ducon-page {
  --ink: #0A1628;
  --ink-2: #0E2A47;
  --ink-3: #1A3A5C;
  --paper: #F4F4EF;
  --paper-2: #EAEAE2;
  --paper-3: #FFFFFF;
  --hazard: #F5C518;
  --hazard-deep: #C99A00;
  --cyan: #5BA3D0;
  --gray-300: #a7a7a7;
  --gray-400: #898989;
  --gray-500: #757575;
  --gray-border: #5e5e5e;
  --near-ink: #11243D;
  --shadow-card: rgba(10, 22, 40, 0.3) 0 0 5px 0;
  --font-primary: 'Inter', Arial, Helvetica, sans-serif;

  font-family: var(--font-primary);
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

.ducon-page img { display: block; max-width: 100%; height: auto; }
.ducon-page a { color: inherit; text-decoration: none; }
.ducon-page ::selection { background: var(--hazard); color: var(--ink); }

.ducon-page h1, .ducon-page h2, .ducon-page h3, .ducon-page h4, .ducon-page h5 {
  font-weight: 700; line-height: 1.25; margin: 0;
}
.ducon-page p, .ducon-page ul, .ducon-page ol { margin: 0; }
.ducon-page ul { list-style: none; padding: 0; }

/* Typography utilities */
.ducon-page .eyebrow {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.02em; color: var(--hazard-deep);
  display: inline-block;
}
.ducon-page .eyebrow.on-dark { color: var(--hazard); }
.ducon-page .body-large { font-size: 19px; line-height: 1.7; color: var(--ink); }
.ducon-page .body-small { font-size: 17px; line-height: 1.7; color: var(--ink); }

/* Layout */
/* Override BB Theme's Bootstrap .container (width: 1170px) with !important —
   inside .ducon-page our container should always be 1280px max, full-width up to it. */
.ducon-page .container {
  width: 100% !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 0 32px !important;
  box-sizing: border-box;
}
.ducon-page .section { padding: 96px 0; }
.ducon-page .section.dark  { background: var(--ink); color: var(--paper); }
.ducon-page .section.light { background: var(--paper); color: var(--ink); }
.ducon-page .section.white { background: var(--paper-3); color: var(--ink); }

/* Buttons */
.ducon-page .btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 20px;
  background: transparent;
  border: 2px solid var(--hazard);
  border-radius: 2px;
  font-family: var(--font-primary);
  font-size: 15px; font-weight: 700; line-height: 1.25;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.ducon-page .btn.primary-light { color: var(--ink); }
.ducon-page .btn.primary-dark  { color: var(--paper); }
.ducon-page .btn.primary-light:hover,
.ducon-page .btn.primary-dark:hover {
  background: var(--cyan); color: var(--paper); border-color: var(--cyan);
}
.ducon-page .btn.large { padding: 18px 30px; font-size: 18px; }
.ducon-page .btn.arrow::after {
  content: '→'; font-weight: 700;
  transition: transform 0.15s ease;
}
.ducon-page .btn.arrow:hover::after { transform: translateX(3px); }

/* Hero */
.ducon-page .hero {
  background: var(--ink); color: var(--paper);
  padding: 120px 0 100px;
  position: relative; overflow: hidden;
}
.ducon-page .hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 30%, rgba(245,197,24,0.12) 0%, transparent 55%),
    radial-gradient(circle at 10% 80%, rgba(91,163,208,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.ducon-page .hero::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px; pointer-events: none;
}
.ducon-page .hero-inner { position: relative; z-index: 1; }

/* Pillar page: 3-image strip above hero headline */
.ducon-page .hero-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 56px;
}
.ducon-page .hero-images::before,
.ducon-page .hero-images::after { content: none; display: none; }
.ducon-page .hero-img-item {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--gray-border);
  aspect-ratio: 16 / 9;
}
.ducon-page .hero-img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ducon-page .hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: center;
}
/* Bootstrap clearfix on .container adds ::before/::after pseudo-elements that
   become ghost grid items and push .hero-figure to row 2. Suppress them. */
.ducon-page .hero-grid::before,
.ducon-page .hero-grid::after { content: none; display: none; }
/* DOM order is copy-first — use explicit grid-column to put image left, copy right */
.ducon-page .hero-figure { grid-column: 1; min-width: 0; }
.ducon-page .hero-copy   { grid-column: 2; min-width: 0; }
.ducon-page .hero-figure {
  margin: 0;
  border: 1px solid var(--gray-border);
  border-radius: 4px;
  background: var(--near-ink);
  padding: 24px;
  display: flex; align-items: center; justify-content: center;
}
/* Smush lazy-load plugin injects width:var(--smush-placeholder-width)!important
   using an inline CSS custom property (e.g. --smush-placeholder-width:1536px).
   Re-declare the variable to 100% inside our figure so the !important resolves
   to a sane value, and also clamp aspect-ratio so the column doesn't blow out. */
.ducon-page .hero-figure img {
  --smush-placeholder-width: 100%;
  --smush-image-width: 100%;
  --smush-placeholder-aspect-ratio: auto;
  --smush-image-aspect-ratio: auto;
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: auto !important;
}
.ducon-page .hero .eyebrow { margin-bottom: 24px; display: inline-block; font-size: 15px; }
.ducon-page .hero .code-tag {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--paper); margin-bottom: 18px;
}
.ducon-page .hero h1 {
  font-size: clamp(36px, 6vw, 58px); line-height: 1.1;
  margin-bottom: 28px; color: var(--paper); letter-spacing: -0.01em;
}
.ducon-page .hero h1 .accent {
  border-bottom: 3px solid var(--hazard); padding-bottom: 2px;
}
.ducon-page .hero p {
  font-size: 19px; line-height: 1.65; color: var(--paper);
  max-width: 640px; margin-bottom: 44px;
}
.ducon-page .hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

/* Stats strip */
.ducon-page .stats-strip {
  background: var(--near-ink); border-top: 1px solid var(--gray-border);
  padding: 44px 0; color: var(--paper);
}
.ducon-page .stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.ducon-page .stat-value {
  font-size: 46px; font-weight: 700; line-height: 1.05;
  color: var(--hazard); margin-bottom: 10px; letter-spacing: -0.01em;
}
.ducon-page .stat-label {
  font-size: 14px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--paper);
}

/* Intro grid */
.ducon-page .intro-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; align-items: start; }
.ducon-page .intro-grid h2 { font-size: 32px; line-height: 1.2; max-width: 420px; letter-spacing: -0.01em; }
.ducon-page .intro-body p { margin-bottom: 24px; }
.ducon-page .intro-body p:last-child { margin-bottom: 0; }

/* Section headers */
.ducon-page .section-header { margin-bottom: 56px; max-width: 860px; }
.ducon-page .section-header h2 { font-size: 38px; line-height: 1.15; margin-bottom: 20px; letter-spacing: -0.01em; }
.ducon-page .section-header p {
  font-size: 18px; line-height: 1.65; color: var(--ink);
}
.ducon-page .section.dark .section-header p { color: var(--paper); }

/* Scrubber cards grid */
.ducon-page .scrubber-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.ducon-page .scrubber-card {
  background: var(--paper-3);
  border: 1px solid rgba(10,22,40,0.12);
  border-radius: 2px;
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  display: flex; flex-direction: column; position: relative;
}
.ducon-page .scrubber-card:hover {
  box-shadow: rgba(10,22,40,0.45) 0 4px 14px 0;
  transform: translateY(-2px); border-color: var(--hazard);
}
.ducon-page .card-index {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink); margin-bottom: 10px;
}
.ducon-page .scrubber-card h3 {
  font-size: 19px; line-height: 1.25; margin-bottom: 4px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--hazard);
  align-self: flex-start;
}
.ducon-page .scrubber-card .tagline {
  font-size: 14px; font-weight: 700; color: var(--ink);
  margin: 12px 0 14px; line-height: 1.4;
}
.ducon-page .scrubber-card .desc {
  font-size: 12px; line-height: 1.7; color: var(--ink);
  margin-bottom: 20px; flex-grow: 1;
}
.ducon-page .spec-list {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 20px; padding-top: 16px;
  border-top: 1px solid rgba(10,22,40,0.1);
}
.ducon-page .spec-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; font-size: 13px;
}
.ducon-page .spec-row .label {
  color: var(--ink); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em; font-size: 11px;
}
.ducon-page .spec-row .value {
  color: var(--ink); font-weight: 700; text-align: right;
}
.ducon-page .scrubber-card .card-cta {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--ink);
  border-bottom: 2px solid var(--hazard);
  padding-bottom: 2px;
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.ducon-page .scrubber-card .card-cta:hover { color: var(--cyan); border-color: var(--cyan); }
.ducon-page .badge-patented {
  position: absolute; top: 16px; right: 16px;
  background: var(--hazard); color: var(--ink);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 4px 8px; border-radius: 2px;
}

/* Comparison + sizing tables */
.ducon-page .spec-table-wrap {
  background: var(--paper-3); border-radius: 2px;
  border: 1px solid rgba(10,22,40,0.12);
  overflow: hidden; overflow-x: auto;
  box-shadow: var(--shadow-card);
}
.ducon-page .comparison,
.ducon-page .sizing-table {
  width: 100%; border-collapse: collapse; font-size: 15px;
}
.ducon-page .comparison thead,
.ducon-page .sizing-table thead {
  background: var(--ink); color: var(--paper);
}
.ducon-page .comparison th,
.ducon-page .sizing-table th {
  padding: 16px 20px; text-align: left;
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em;
  border-right: 1px solid var(--gray-border); white-space: nowrap;
}
.ducon-page .comparison th:last-child,
.ducon-page .sizing-table th:last-child { border-right: none; }
.ducon-page .comparison td,
.ducon-page .sizing-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(10,22,40,0.08);
  border-right: 1px solid rgba(10,22,40,0.08);
  color: var(--ink); line-height: 1.5;
}
.ducon-page .comparison td:last-child,
.ducon-page .sizing-table td:last-child { border-right: none; }
.ducon-page .comparison tr:last-child td,
.ducon-page .sizing-table tr:last-child td { border-bottom: none; }
.ducon-page .comparison tr:nth-child(even) td,
.ducon-page .sizing-table tr:nth-child(even) td { background: var(--paper-2); }
.ducon-page .comparison td.metric { font-weight: 700; color: var(--hazard-deep); }
.ducon-page .comparison td.name {
  font-weight: 700; border-left: 3px solid var(--hazard);
}

/* Applications grid */
.ducon-page .applications {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 32px;
}
.ducon-page .app-card {
  background: transparent;
  border: 1px solid var(--gray-border);
  border-radius: 2px;
  padding: 28px 24px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.ducon-page .app-card:hover {
  border-color: var(--hazard); background: rgba(245,197,24,0.04);
}
.ducon-page .app-card h4 {
  font-size: 20px; color: var(--paper); margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--hazard);
  display: inline-block;
}
.ducon-page .app-card p {
  font-size: 15px; line-height: 1.55; color: var(--paper);
}

/* CTA section */
.ducon-page .cta-section {
  background: var(--ink); color: var(--paper);
  padding: 100px 0; position: relative; overflow: hidden;
}
.ducon-page .cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(245,197,24,0.1) 0%, transparent 50%);
}
.ducon-page .cta-inner { position: relative; z-index: 1; text-align: center; }
.ducon-page .cta-inner h2 {
  font-size: 42px; line-height: 1.15; margin: 18px auto;
  max-width: 800px; color: var(--paper); letter-spacing: -0.01em;
}
.ducon-page .cta-inner p {
  font-size: 19px; line-height: 1.65; color: var(--paper);
  max-width: 640px; margin: 0 auto 36px;
}
.ducon-page .cta-actions {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}

/* Product detail extras */
.ducon-page .detail-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.ducon-page .detail-hero .code-tag {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--hazard); margin-bottom: 16px;
}
.ducon-page .detail-hero img {
  border: 1px solid var(--gray-border); border-radius: 2px;
  background: var(--near-ink); padding: 16px;
}
.ducon-page .feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 40px;
}
.ducon-page .feature-item {
  border-left: 3px solid var(--hazard);
  padding: 6px 0 6px 24px;
}
.ducon-page .feature-item h4 { font-size: 22px; margin-bottom: 10px; }
.ducon-page .feature-item p {
  font-size: 17px; color: var(--ink); line-height: 1.65;
}
.ducon-page .related-strip {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
  margin-top: 24px;
}
.ducon-page .related-card {
  background: var(--paper-3);
  border: 1px solid rgba(10,22,40,0.12);
  padding: 24px 20px; border-radius: 2px;
  transition: border-color 0.15s ease, transform 0.15s ease;
  text-decoration: none; color: var(--ink);
}
.ducon-page .related-card:hover {
  border-color: var(--hazard); transform: translateY(-2px);
}
.ducon-page .related-card .code {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink); margin-bottom: 6px;
}
.ducon-page .related-card .name {
  font-size: 17px; font-weight: 700; line-height: 1.3;
}

/* Responsive */
@media (max-width: 1024px) {
  .ducon-page .scrubber-grid { grid-template-columns: repeat(2, 1fr); }
  .ducon-page .applications { grid-template-columns: repeat(2, 1fr); }
  .ducon-page .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .ducon-page .intro-grid { grid-template-columns: 1fr; gap: 32px; }
  .ducon-page .intro-grid h2 { max-width: none; }
  .ducon-page .detail-hero { grid-template-columns: 1fr; }
  .ducon-page .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .ducon-page .related-strip { grid-template-columns: repeat(3, 1fr); }
  .ducon-page .feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .ducon-page .section { padding: 56px 0; }
  .ducon-page .hero { padding: 72px 0 56px; }
  .ducon-page .hero h1 { font-size: 28px; }
  .ducon-page .section-header h2,
  .ducon-page .intro-grid h2,
  .ducon-page .cta-inner h2 { font-size: 26px; }
}
@media (max-width: 600px) {
  .ducon-page .scrubber-grid { grid-template-columns: 1fr; }
  .ducon-page .applications { grid-template-columns: 1fr; }
  .ducon-page .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .ducon-page .stat-value { font-size: 32px !important; }
  .ducon-page .related-strip { grid-template-columns: 1fr 1fr; }
  .ducon-page .hero-actions { flex-direction: column; align-items: flex-start; }
}

/* ── Theme override block ──────────────────────────────────────────────────
   BB theme (and other plugins) may set font-size with !important or high-
   specificity selectors that beat our scoped rules. Force our px values to
   win by applying !important here. All selectors already scoped to .ducon-page.
   ────────────────────────────────────────────────────────────────────────── */
.ducon-page { font-size: 20px !important; }
.ducon-page h1 { font-size: clamp(36px, 6vw, 58px) !important; }
.ducon-page h2 { font-size: 38px !important; }
.ducon-page h3 { font-size: 19px !important; }
.ducon-page h4 { font-size: 20px !important; }
.ducon-page p  { font-size: 20px !important; }

.ducon-page .hero h1    { font-size: clamp(36px, 6vw, 58px) !important; }
.ducon-page .hero p     { font-size: 19px !important; }
.ducon-page .eyebrow    { font-size: 13px !important; }
.ducon-page .body-large { font-size: 19px !important; }
.ducon-page .body-small { font-size: 17px !important; }
.ducon-page .btn        { font-size: 15px !important; }
.ducon-page .btn.large  { font-size: 18px !important; }

.ducon-page .stat-value { font-size: 46px !important; }
.ducon-page .stat-label { font-size: 14px !important; }

.ducon-page .section-header h2  { font-size: 38px !important; }
.ducon-page .section-header p   { font-size: 18px !important; }
.ducon-page .intro-grid h2      { font-size: 32px !important; }

.ducon-page .scrubber-card .desc    { font-size: 12px !important; }
.ducon-page .scrubber-card h3       { font-size: 19px !important; }
.ducon-page .scrubber-card .tagline { font-size: 14px !important; }
.ducon-page .spec-row               { font-size: 13px !important; }
.ducon-page .spec-row .label        { font-size: 11px !important; }
.ducon-page .card-index             { font-size: 11px !important; }
.ducon-page .card-cta               { font-size: 13px !important; }

.ducon-page .app-card h4 { font-size: 20px !important; color: var(--paper) !important; }
.ducon-page .app-card p  { font-size: 15px !important; color: var(--paper) !important; }

.ducon-page .feature-item h4 { font-size: 22px !important; }
.ducon-page .feature-item p  { font-size: 17px !important; }

.ducon-page .cta-inner h2 { font-size: 42px !important; color: var(--paper) !important; }
.ducon-page .cta-inner p  { font-size: 19px !important; color: var(--paper) !important; }

/* Force white text on all headings inside dark sections */
.ducon-page .hero h1,
.ducon-page .hero h2,
.ducon-page .hero h3,
.ducon-page .hero h4,
.ducon-page .hero p           { color: var(--paper) !important; }
.ducon-page .section.dark h1,
.ducon-page .section.dark h2,
.ducon-page .section.dark h3,
.ducon-page .section.dark h4,
.ducon-page .section.dark .section-header h2,
.ducon-page .section.dark .section-header p { color: var(--paper) !important; }
.ducon-page .cta-section h1,
.ducon-page .cta-section h2,
.ducon-page .cta-section h3,
.ducon-page .cta-section h4,
.ducon-page .cta-section p    { color: var(--paper) !important; }
.ducon-page .stats-strip h1,
.ducon-page .stats-strip h2,
.ducon-page .stats-strip h3,
.ducon-page .stats-strip h4   { color: var(--paper) !important; }

.ducon-page .comparison,
.ducon-page .sizing-table    { font-size: 15px !important; }
.ducon-page .comparison th,
.ducon-page .sizing-table th { font-size: 13px !important; }

.ducon-page .related-card .code { font-size: 11px !important; }
.ducon-page .related-card .name { font-size: 17px !important; }

@media (max-width: 768px) {
  .ducon-page h1,
  .ducon-page .hero h1 { font-size: 28px !important; }
  .ducon-page h2,
  .ducon-page .section-header h2,
  .ducon-page .intro-grid h2,
  .ducon-page .cta-inner h2 { font-size: 26px !important; }
  .ducon-page .stat-value { font-size: 32px !important; }
}
