/* p_cramium.css */

@import url("product_phsm.css");

/* On the Cramium page, don't force a panel background for generic .feature */
body.cramium-page .feature {
  background: transparent;
}

/* Scope just this page */
body.cramium-page {
  background: var(--bg);
}

/* Sub-nav under the header (Products / Developers / Community / About) */
body.cramium-page .cramium-subnav {
  border-bottom: 1px solid var(--cocoa-line);
  background: rgba(7, 7, 12, 0.9);
  backdrop-filter: blur(18px);
}

body.cramium-page .cramium-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 0;
}

body.cramium-page .cramium-tab {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--cocoa-70);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: default;
}

body.cramium-page .cramium-tab.is-active {
  border-color: var(--orange);
  background: rgba(255, 148, 40, 0.1);
  color: #fff;
}

/* HERO -------------------------------------------------- */

body.cramium-page .hero.hero-cramium {
  padding: clamp(48px, 7vw, 80px) 0;
  border-bottom: 1px solid var(--cocoa-line);
}

body.cramium-page .hero.hero-cramium .hero-inner {
  max-width: 1080px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
}

body.cramium-page .hero-copy {
  max-width: 36rem;
}

body.cramium-page .hero-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--cocoa-60);
  margin-bottom: 8px;
}

body.cramium-page .hero-title {
  margin: 0 0 10px;
  font-size: clamp(30px, 3.6vw, 40px);
  line-height: 1.15;
}

body.cramium-page .hero-sub {
  margin: 0 0 8px;
  color: var(--cocoa-80);
  font-size: 1.02rem;
}

body.cramium-page .hero-lede {
  margin: 0;
  color: var(--cocoa-70);
  font-size: 0.98rem;
}

body.cramium-page .hero-art {
  display: flex;
  justify-content: center;
}

body.cramium-page .hero-art .phsm-hero {
  max-width: 520px;
  width: 100%;
  height: auto;
  display: block;
}

/* Stack hero on small screens */
@media (max-width: 880px) {
  body.cramium-page .hero.hero-cramium .hero-inner {
    grid-template-columns: 1fr;
  }

  body.cramium-page .hero-art {
    justify-content: flex-start;
  }
}

/* PRODUCTS SECTION ------------------------------------- */

/* SECURITY SECTION – ALTERNATING ROWS ------------------ */

body.cramium-page .cramium-security {
  background: blanchedalmond;
  color: black;
}

body.cramium-page .cramium-security .section-header {
  max-width: 720px;
  margin: 0 auto clamp(24px, 3.4vw, 36px);
  text-align: center;
}

body.cramium-page .cramium-security .section-title {
  font-size: clamp(26px, 3vw, 32px);
}

body.cramium-page .cramium-security .section-sub {
  color: rgba(0, 0, 0, 0.7);
}

body.cramium-page .cramium-security-list {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3vw, 30px);
}

body.cramium-page .security-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 26px);
  align-items: center;
}

body.cramium-page .security-row:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

body.cramium-page .security-row:nth-child(even) .security-copy {
  order: 2;
}

body.cramium-page .security-row:nth-child(even) .security-illustration {
  order: 1;
}

body.cramium-page .security-copy h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

body.cramium-page .security-copy p {
  margin: 0;
  font-size: 0.96rem;
  color: rgba(0, 0, 0, 0.78);
}

body.cramium-page .security-illustration {
  border-radius: var(--radius-lg);
  min-height: 150px;
  filter: drop-shadow(0 20px 50px rgba(255, 100, 0, 0.69));
}

/* Hooks for real artwork if/when added */
body.cramium-page .security-illustration--spof {
  /* background-image: url(...); */
}
body.cramium-page .security-illustration--zkp {
  /* background-image: url(...); */
}
body.cramium-page .security-illustration--hardware {
  /* background-image: url(...); */
}
body.cramium-page .security-illustration--infra {
  /* background-image: url(...); */
}
body.cramium-page .security-illustration--custody {
  /* background-image: url(...); */
}

@media (max-width: 900px) {
  body.cramium-page .security-row,
  body.cramium-page .security-row:nth-child(even) {
    grid-template-columns: 1fr;
  }

  body.cramium-page .security-row:nth-child(even) .security-copy,
  body.cramium-page .security-row:nth-child(even) .security-illustration {
    order: initial;
  }
}

/* CONTROL & OWNERSHIP ---------------------------------- */

body.cramium-page .cramium-control {
  background: #fff7ef;
}

body.cramium-page .cramium-control .section-header {
  max-width: 720px;
  margin: 0 auto clamp(22px, 3.2vw, 32px);
  text-align: center;
}

body.cramium-page .cramium-control-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 22px);
}

body.cramium-page .control-card {
  border-radius: var(--radius-lg);
  padding: 16px 16px 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

body.cramium-page .control-illustration {
  border-radius: var(--radius-lg);
  min-height: 130px;
  margin-bottom: 12px;
  background-color: darkslateblue;
  background-size: cover;
  background-position: center;
}

/* Hooks for specific custody images */
body.cramium-page .control-illustration--seamless {
  /* background-image: url(...); */
}
body.cramium-page .control-illustration--threshold {
  /* background-image: url(...); */
}
body.cramium-page .control-illustration--hierarchy {
  /* background-image: url(...); */
}
body.cramium-page .control-illustration--ownership {
  /* background-image: url(...); */
}

body.cramium-page .control-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

body.cramium-page .control-card p {
  margin: 0;
  font-size: 0.94rem;
}

/* Responsive control cards */
@media (max-width: 1040px) {
  body.cramium-page .cramium-control-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.cramium-page .cramium-control-grid {
    grid-template-columns: 1fr;
  }
}

/* FAQ -------------------------------------------------- */

body.cramium-page .cramium-faq {
  background: blanchedalmond;
  color: black;
}

body.cramium-page .cramium-faq .section-title {
  font-size: clamp(24px, 2.6vw, 30px);
}

body.cramium-page .cramium-faq .section-sub {
  color: rgba(0, 0, 0, 0.7);
}

body.cramium-page .faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 3.2vw, 40px);
  align-items: flex-start;
}

body.cramium-page .faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* details / summary reset */
body.cramium-page .faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  padding: 10px 0;
}

body.cramium-page .faq-question {
  list-style: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.98rem;
  position: relative;
}

body.cramium-page .faq-question::-webkit-details-marker {
  display: none;
}

body.cramium-page .faq-question::after {
  content: "＋";
  position: absolute;
  right: 0;
  top: 0;
  font-weight: 600;
}

body.cramium-page .faq-item[open] .faq-question::after {
  content: "×";
}

body.cramium-page .faq-answer {
  margin-top: 6px;
  padding-right: 20px;
  font-size: 0.94rem;
  color: rgba(0, 0, 0, 0.78);
}

@media (max-width: 860px) {
  body.cramium-page .faq-layout {
    grid-template-columns: 1fr;
  }

  body.cramium-page .cramium-faq .section-header {
    max-width: 100%;
    text-align: left;
  }
}

/* FOOTER TWEAKS ---------------------------------------- */

body.cramium-page .cramium-footer .footer-grid {
  gap: 32px;
}

@media (max-width: 720px) {
  body.cramium-page .cramium-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  body.cramium-page .cramium-footer .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* 2-column EMPC / PHSM icons + links */

/* ========== Cramium EMPC / PHSM overview ========== */

body.cramium-page .cramium-products {
  background: transparent; /* let the body gradient show through */
}

.cramium-products .section-header {
  max-width: 720px;
  margin: 0 auto clamp(24px, 3.4vw, 36px);
  text-align: center;
}

.cramium-products .section-title {
  font-size: clamp(28px, 3vw, 34px);
}

.cramium-products .section-sub {
  color: var(--cocoa-70);
  font-size: 0.98rem;
}

/* 2-column layout for EMPC / PHSM cards */
.cramium-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 26px);
}

@media (max-width: 780px) {
  .cramium-two-col {
    grid-template-columns: 1fr;
  }
}

/* Card styling – can be reused for other product cards */
.cramium-product-card {
  border-radius: var(--radius);
  padding: 22px 24px;
  background: #f8f5f2;
  box-shadow: var(--shadow);
}

.cramium-product-card h3 {
  margin: 0;
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.cramium-product-card p {
  font-size: 0.98rem;
}

.cramium-product-card p + p {
  margin-top: 10px;
}

/* Make icon + heading a single clickable row */
.cramium-product-card .cramium-card-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
}

.cramium-product-card .cramium-card-link:hover h3 {
  text-decoration: underline;
}

/* Icon treatment – harmonized with brand palette */
.cramium-product-card .cramium2col-icon {
  display: block;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
  background-color: #204136; /* or replace with a brand token */
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
