/**
 * KrazeyTech Pages UI — Privacy + Refund/Returns
 * Wide editorial layout — no content card.
 */

body.kt-pages-ui {
  --ktp-red: #cf0000;
  --ktp-red-hot: #e50001;
  --ktp-ink: #121212;
  --ktp-muted: #6b6b6b;
  --ktp-line: #e8e8ea;
  --ktp-soft: #fafafa;
  --ktp-white: #ffffff;
  --ktp-max: 1200px;
  --ktp-display: "Sora", system-ui, sans-serif;
  --ktp-body: "Manrope", system-ui, sans-serif;
}

/* —— Hero —— */
.ktp-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(3.25rem, 6vw, 4.75rem);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 80% at 88% 35%, rgba(207, 0, 0, 0.26), transparent 58%),
    radial-gradient(ellipse 45% 55% at 8% 85%, rgba(207, 0, 0, 0.12), transparent 52%),
    linear-gradient(165deg, #141416 0%, #1c1c20 45%, #101012 100%);
}

.ktp-hero-photo {
  position: absolute;
  inset: 0;
  background: url("https://krazeytech.com/wp-content/uploads/2026/04/Home-Banner.png") center / cover no-repeat;
  opacity: 0.14;
  filter: grayscale(0.35) contrast(1.05);
  z-index: 0;
  pointer-events: none;
}

.ktp-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 12, 14, 0.92) 0%, rgba(12, 12, 14, 0.7) 55%, rgba(12, 12, 14, 0.38) 100%),
    linear-gradient(180deg, rgba(12, 12, 14, 0.15) 0%, transparent 48%, rgba(12, 12, 14, 0.45) 100%);
  z-index: 1;
  pointer-events: none;
}

.ktp-wrap {
  width: min(100% - 2.5rem, var(--ktp-max));
  margin-inline: auto;
}

.ktp-hero-inner {
  position: relative;
  z-index: 4;
  max-width: 42rem;
}

.ktp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.95rem;
  font-family: var(--ktp-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.ktp-eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  background: var(--ktp-red);
}

.ktp-hero-title {
  margin: 0 0 0.85rem !important;
  font-family: var(--ktp-display) !important;
  font-size: clamp(2.15rem, 5.2vw, 3.25rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.045em !important;
  line-height: 1.08 !important;
  color: #ffffff !important;
}

.ktp-hero-lead {
  margin: 0;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--ktp-body);
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.7;
}

/* Hide theme / in-content duplicate titles */
body.kt-pages-ui .entry-header,
body.kt-pages-ui .page-header,
body.kt-pages-ui article > .entry-title,
body.kt-pages-ui article > h1,
body.kt-pages-ui .alpha.entry-title,
body.kt-pages-ui .page .entry-title,
body.kt-pages-ui .entry-content > h1:first-child {
  display: none !important;
}

/* —— Wide open content shell (no card) —— */
body.kt-pages-ui #content.site-content {
  background:
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(207, 0, 0, 0.035), transparent 55%),
    var(--ktp-white);
  padding-top: clamp(2.25rem, 4.5vw, 3.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

body.kt-pages-ui #content .woostify-container {
  width: min(100% - 2.5rem, var(--ktp-max)) !important;
  max-width: var(--ktp-max) !important;
  margin: 0 auto !important;
}

body.kt-pages-ui #primary.content-area,
body.kt-pages-ui #main.site-main,
body.kt-pages-ui .content-top,
body.kt-pages-ui .site-content .content-area,
body.kt-pages-ui #primary {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  max-width: none !important;
}

body.kt-pages-ui #secondary,
body.kt-pages-ui .sidebar-widget,
body.kt-pages-ui.right-sidebar #secondary,
body.kt-pages-ui.left-sidebar #secondary {
  display: none !important;
}

/* Flat article — no card chrome */
body.kt-pages-ui article.page,
body.kt-pages-ui .site-main > article {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.kt-pages-ui .entry-content,
body.kt-pages-ui .page-content {
  font-family: var(--ktp-body);
  font-size: clamp(1rem, 1.35vw, 1.0625rem);
  line-height: 1.8;
  color: #2c2c2c;
  max-width: none;
}

body.kt-pages-ui .entry-content > *:first-child {
  margin-top: 0 !important;
}

body.kt-pages-ui .entry-content > *:last-child {
  margin-bottom: 0 !important;
}

/* Meta strip — effective date */
body.kt-pages-ui .entry-content > p:first-of-type {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin: 0 0 1.75rem;
  padding: 0 0 1.15rem;
  border-bottom: 1px solid var(--ktp-line);
  border-radius: 0;
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  color: var(--ktp-muted);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

body.kt-pages-ui .entry-content p {
  margin: 0 0 1.1rem;
  max-width: none;
}

body.kt-pages-ui .entry-content strong,
body.kt-pages-ui .entry-content b {
  color: var(--ktp-ink);
  font-weight: 700;
}

body.kt-pages-ui .entry-content a {
  color: var(--ktp-red);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(207, 0, 0, 0.28);
  transition: color 0.2s ease, border-color 0.2s ease;
}

body.kt-pages-ui .entry-content a:hover {
  color: var(--ktp-red-hot);
  border-bottom-color: var(--ktp-red-hot);
}

/* Section headings — red accent bar */
body.kt-pages-ui .entry-content h2 {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 2.75rem 0 1rem !important;
  padding: 0 0 0 0.95rem !important;
  border: 0 !important;
  border-left: 3px solid var(--ktp-red) !important;
  font-family: var(--ktp-display) !important;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.25 !important;
  color: var(--ktp-ink) !important;
}

body.kt-pages-ui .entry-content h2:first-of-type {
  margin-top: 2rem !important;
}

body.kt-pages-ui .entry-content h3 {
  margin: 1.6rem 0 0.6rem !important;
  font-family: var(--ktp-display) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  color: var(--ktp-ink) !important;
}

body.kt-pages-ui .entry-content h4,
body.kt-pages-ui .entry-content h5,
body.kt-pages-ui .entry-content h6 {
  margin: 1.25rem 0 0.45rem !important;
  font-family: var(--ktp-body) !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: var(--ktp-ink) !important;
}

/* Clean lists — no boxed chips */
body.kt-pages-ui .entry-content ul,
body.kt-pages-ui .entry-content ol {
  margin: 0.35rem 0 1.35rem !important;
  padding: 0 0 0 0.15rem !important;
  list-style: none !important;
  max-width: none;
  display: grid;
  gap: 0.55rem 2rem;
}

@media (min-width: 820px) {
  body.kt-pages-ui .entry-content ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.kt-pages-ui .entry-content li {
  position: relative;
  margin: 0 !important;
  padding: 0.15rem 0 0.15rem 1.35rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #333;
  font-size: inherit;
  line-height: 1.65;
}

body.kt-pages-ui .entry-content li:hover {
  border: 0 !important;
  background: transparent !important;
}

body.kt-pages-ui .entry-content ul > li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.75rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--ktp-red);
  box-shadow: 0 0 0 3px rgba(207, 0, 0, 0.12);
}

body.kt-pages-ui .entry-content ol {
  counter-reset: ktp-ol;
  gap: 0.65rem;
}

body.kt-pages-ui .entry-content ol > li {
  counter-increment: ktp-ol;
  padding-left: 2.1rem !important;
}

body.kt-pages-ui .entry-content ol > li::before {
  content: counter(ktp-ol);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: rgba(207, 0, 0, 0.08);
  color: var(--ktp-red);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.5rem;
  text-align: center;
  box-shadow: none;
}

body.kt-pages-ui .entry-content li ul,
body.kt-pages-ui .entry-content li ol {
  margin: 0.55rem 0 0.15rem !important;
}

/* Closing contact section breathing room */
body.kt-pages-ui .entry-content h2:last-of-type {
  margin-top: 3rem !important;
}

@media (max-width: 640px) {
  .ktp-wrap,
  body.kt-pages-ui #content .woostify-container {
    width: min(100% - 1.5rem, var(--ktp-max)) !important;
  }

  body.kt-pages-ui #content.site-content {
    padding-top: 1.75rem;
  }

  body.kt-pages-ui .entry-content {
    font-size: 0.975rem;
  }

  body.kt-pages-ui .entry-content h2 {
    padding-left: 0.8rem !important;
  }

  body.kt-pages-ui .entry-content ul > li::before {
    top: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.kt-pages-ui .entry-content a {
    transition: none;
  }
}
