﻿
/* ================================
   UNIVERSAL PAGE STYLES
   Applies to all standard pages automatically.
   Uses .nc-page-styled wrapper class in content.
   ================================ */

/* Full-width override for any page with nc-page-styled content */
.nc-page__content:has(.nc-page-hero),
.nc-page__content:has(.nc-page-styled) {
  max-width: 100% !important;
  padding: 0 !important;
}
.nc-page__header:has(+ .nc-page__content .nc-page-hero),
.nc-page__header:has(+ .nc-page__content .nc-page-styled) {
  display: none !important;
}

/* Fallback for browsers without :has() — target known page IDs */
body.page-id-16 .nc-page__content,
body.page-id-2010 .nc-page__content,
body.page-id-191191 .nc-page__content,
body.page-id-191318 .nc-page__content,
body.page-id-191189 .nc-page__content {
  max-width: 100% !important;
  padding: 0 !important;
}
body.page-id-16 .nc-page__header,
body.page-id-2010 .nc-page__header,
body.page-id-191191 .nc-page__header,
body.page-id-191318 .nc-page__header,
body.page-id-191189 .nc-page__header {
  display: none !important;
}

/* Standard page fallback: constrain plain page content and reuse the styled-page typography rhythm */
.nc-page__header:not(:has(+ .nc-page__content .nc-page-hero)):not(:has(+ .nc-page__content .nc-page-styled)) {
  max-width: 1000px;
  margin: 48px auto 24px;
  padding: 0;
}
.nc-page__content:not(:has(.nc-page-hero)):not(:has(.nc-page-styled)) {
  max-width: 1000px;
  margin: 0 auto 64px;
  padding: 0;
}
.nc-page__content:not(:has(.nc-page-hero)):not(:has(.nc-page-styled)) h2 {
  font-family: var(--nc-font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin: 32px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--nc-color-primary);
  display: inline-block;
}
.nc-page__content:not(:has(.nc-page-hero)):not(:has(.nc-page-styled)) h3 {
  font-family: var(--nc-font-heading);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
  color: #fff;
  margin: 32px 0 12px;
}
.nc-page__content:not(:has(.nc-page-hero)):not(:has(.nc-page-styled)) p {
  color: var(--nc-color-text-muted);
  line-height: 1.8;
  margin: 0 0 16px;
  font-size: var(--nc-text-base);
}
.nc-page__content:not(:has(.nc-page-hero)):not(:has(.nc-page-styled)) strong {
  color: #fff;
}
.nc-page__content:not(:has(.nc-page-hero)):not(:has(.nc-page-styled)) a {
  color: var(--nc-color-primary);
  text-decoration: none;
  font-weight: 500;
}
.nc-page__content:not(:has(.nc-page-hero)):not(:has(.nc-page-styled)) a:hover {
  text-decoration: underline;
}
.nc-page__content:not(:has(.nc-page-hero)):not(:has(.nc-page-styled)) ul,
.nc-page__content:not(:has(.nc-page-hero)):not(:has(.nc-page-styled)) ol {
  color: var(--nc-color-text-muted);
  line-height: 1.8;
  padding-left: 24px;
  margin: 0 0 20px;
}
.nc-page__content:not(:has(.nc-page-hero)):not(:has(.nc-page-styled)) li {
  margin-bottom: 8px;
}
.nc-page__content:not(:has(.nc-page-hero)):not(:has(.nc-page-styled)) li::marker {
  color: var(--nc-color-primary);
}

/* ─── Page Hero ─── */
.nc-page-hero {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 50%, #0d0d0d 100%);
  overflow: hidden;
  padding: 80px 24px;
}
.nc-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,102,0,0.12) 0%, transparent 70%),
              radial-gradient(ellipse at 70% 50%, rgba(77,166,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.nc-page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}
.nc-page-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}
.nc-page-hero__badge {
  display: inline-block;
  font-family: var(--nc-font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--nc-color-primary);
  background: rgba(255,102,0,0.1);
  border: 1px solid rgba(255,102,0,0.3);
  padding: 8px 24px;
  border-radius: 50px;
  margin-bottom: 24px;
  text-transform: uppercase;
}
.nc-page-hero__title {
  font-family: var(--nc-font-heading);
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.nc-page-hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--nc-color-text-muted);
  line-height: 1.7;
  margin: 0;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Page Sections ─── */
.nc-page-section {
  padding: 60px 24px;
  background: var(--nc-color-surface);
}
.nc-page-section--alt {
  background: var(--nc-color-surface-alt);
}
.nc-page-section--bordered {
  border-top: 3px solid var(--nc-color-primary);
}
.nc-page-section__inner {
  max-width: 1000px;
  margin: 0 auto;
}
.nc-page-section__inner--wide {
  max-width: 1200px;
}

/* ─── Page Content Typography ─── */
.nc-page-content h2 {
  font-family: var(--nc-font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--nc-color-primary);
  display: inline-block;
}
.nc-page-content h3 {
  font-family: var(--nc-font-heading);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
  color: #fff;
  margin: 32px 0 12px;
}
.nc-page-content p {
  color: var(--nc-color-text-muted);
  line-height: 1.8;
  margin: 0 0 16px;
  font-size: var(--nc-text-base);
}
.nc-page-content strong {
  color: #fff;
}
.nc-page-content a {
  color: var(--nc-color-primary);
  text-decoration: none;
  font-weight: 500;
}
.nc-page-content a:hover {
  text-decoration: underline;
}
.nc-page-content ul, .nc-page-content ol {
  color: var(--nc-color-text-muted);
  line-height: 1.8;
  padding-left: 24px;
  margin: 0 0 20px;
}
.nc-page-content li {
  margin-bottom: 8px;
}
.nc-page-content li::marker {
  color: var(--nc-color-primary);
}

/* ─── Info Cards (reusable) ─── */
.nc-page-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin: 32px 0;
}
.nc-page-card {
  background: var(--nc-color-surface-alt);
  border: 1px solid var(--nc-color-border);
  border-radius: 12px;
  padding: 28px;
  transition: all 0.3s ease;
}
.nc-page-card:hover {
  border-color: var(--nc-color-primary);
  transform: translateY(-2px);
}
.nc-page-card__icon {
  width: 48px;
  height: 48px;
  background: rgba(255,102,0,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--nc-color-primary);
}
.nc-page-card__icon svg {
  width: 24px;
  height: 24px;
}
.nc-page-card h3 {
  font-family: var(--nc-font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 10px;
  border: none;
  padding: 0;
  display: block;
}
.nc-page-card p {
  color: var(--nc-color-text-muted);
  font-size: var(--nc-text-sm);
  line-height: 1.6;
  margin: 0;
}

/* ─── Highlight Box ─── */
.nc-page-highlight {
  background: rgba(255,102,0,0.06);
  border: 1px solid rgba(255,102,0,0.2);
  border-left: 4px solid var(--nc-color-primary);
  border-radius: 8px;
  padding: 24px;
  margin: 24px 0;
}
.nc-page-highlight p {
  margin: 0;
}
.nc-page-highlight strong {
  color: var(--nc-color-primary);
}

/* ─── Page CTA ─── */
.nc-page-cta {
  background: linear-gradient(135deg, rgba(255,102,0,0.08) 0%, rgba(13,13,13,1) 50%, rgba(77,166,255,0.04) 100%);
  border-top: 1px solid var(--nc-color-border);
  padding: 70px 24px;
  text-align: center;
}
.nc-page-cta h2 {
  font-family: var(--nc-font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 14px;
  border: none;
  padding: 0;
  display: block;
}
.nc-page-cta p {
  color: var(--nc-color-text-muted);
  font-size: var(--nc-text-lg);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.nc-page-cta__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Buttons (shared) ─── */
.nc-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--nc-font-heading);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none !important;
  transition: all 0.3s ease;
  cursor: pointer;
}
.nc-page-btn--primary {
  background: var(--nc-gradient-primary);
  color: #fff !important;
  border: none;
}
.nc-page-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,102,0,0.4);
}
.nc-page-btn--outline {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,0.3);
}
.nc-page-btn--outline:hover {
  border-color: var(--nc-color-primary);
  color: var(--nc-color-primary) !important;
  transform: translateY(-2px);
}
.nc-page-btn--lg {
  padding: 16px 36px;
  font-size: 16px;
}

/* ─── Legal/Policy text ─── */
.nc-page-legal {
  font-size: var(--nc-text-xs) !important;
  color: var(--nc-color-text-dark) !important;
  font-style: italic;
  margin-top: 12px !important;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .nc-page-hero {
    min-height: 30vh;
    padding: 60px 20px;
  }
  .nc-page-section {
    padding: 48px 20px;
  }
  .nc-page-cards {
    grid-template-columns: 1fr;
  }
}

/* We Buy sub-pages */
body.page-id-191423 .nc-page__content,
body.page-id-191424 .nc-page__content,
body.page-id-191425 .nc-page__content,
body.page-id-191426 .nc-page__content,
body.page-id-191427 .nc-page__content {
  max-width: 100% !important;
  padding: 0 !important;
}
body.page-id-191423 .nc-page__header,
body.page-id-191424 .nc-page__header,
body.page-id-191425 .nc-page__header,
body.page-id-191426 .nc-page__header,
body.page-id-191427 .nc-page__header {
  display: none !important;
}

/* Hero with background image - universal */
.nc-page-hero--bg,
.nc-about-hero.nc-page-hero--bg,
.nc-contact-hero.nc-page-hero--bg {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  min-height: 50vh !important;
}
.nc-page-hero--bg::before,
.nc-about-hero.nc-page-hero--bg::before,
.nc-contact-hero.nc-page-hero--bg::before {
  background: linear-gradient(135deg, rgba(13,13,13,0.82) 0%, rgba(13,13,13,0.6) 50%, rgba(13,13,13,0.82) 100%) !important;
}

