/* ============================================================
   صفحه راهکارهای سفارشی پلی‌یورتان
   مسیر آپلود: assets/css/custom-polyurethane-solutions.css
   ============================================================ */

@font-face {
  font-family: "Vazirmatn";
  src:
    url("../../fonts/Vazirmatn-Regular.woff2") format("woff2"),
    url("../../fonts/Vazirmatn-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src:
    url("../../fonts/Vazirmatn-Medium.woff") format("woff"),
    url("../../fonts/Vazirmatn[wght].woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src:
    url("../../fonts/Vazirmatn-Bold.woff2") format("woff2"),
    url("../../fonts/Vazirmatn-Bold.woff") format("woff");
  font-weight: 800 950;
  font-style: normal;
  font-display: swap;
}

.custom-pu-page {
  --cpu-brown: #2a160c;
  --cpu-coffee: #4b2a17;
  --cpu-copper: #b86b2d;
  --cpu-gold: #ffc451;
  --cpu-cream: #fff7ed;
  --cpu-soft: #fbf4ea;
  --cpu-ink: #111827;
  --cpu-muted: #64748b;
  --cpu-line: rgba(184, 107, 45, 0.18);
  --cpu-shadow: 0 18px 54px rgba(42, 22, 12, 0.10);
  margin: 0;
  background: #fffaf4;
  color: var(--cpu-ink);
  direction: rtl;
  text-align: right;
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.custom-pu-page *,
.custom-pu-page *::before,
.custom-pu-page *::after {
  box-sizing: border-box;
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif !important;
}

.custom-pu-page a {
  text-decoration: none;
}

.cpu-main {
  padding-top: 0 !important;
  overflow: hidden;
}

/* ================= HERO ================= */

.cpu-hero {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: center;
  padding: 104px 0 66px;
  overflow: hidden;
  isolation: isolate;
  background: #140b07;
}

.cpu-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(19, 10, 6, 0.92) 0%, rgba(43, 22, 12, 0.74) 45%, rgba(77, 42, 22, 0.34) 100%),
    radial-gradient(circle at 18% 24%, rgba(255, 196, 81, 0.22), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(184, 107, 45, 0.28), transparent 34%),
    url("../img/bg/custom-polyurethane-solutions.jpg") center center / cover no-repeat;
  transform: scale(1.02);
}

.cpu-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 250, 244, 0), #fffaf4 92%);
}

.cpu-hero__glass {
  position: relative;
  max-width: 760px;
  padding: clamp(24px, 3vw, 40px);
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.055)),
    radial-gradient(circle at 8% 0%, rgba(255, 196, 81, 0.14), transparent 34%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px) saturate(140%);
  -webkit-backdrop-filter: blur(6px) saturate(140%);
}

.cpu-hero__glass::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 46%);
}

.cpu-hero__glass > * {
  position: relative;
  z-index: 1;
}

.cpu-eyebrow,
.cpu-section-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.7;
}

.cpu-eyebrow {
  margin-bottom: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.cpu-hero h1 {
  margin: 0 0 15px;
  color: #fff;
  font-size: clamp(1.12rem, 1.55vw, 1.25rem) !important;
  font-weight: 950;
  line-height: 1.8;
  letter-spacing: -0.28px;
  text-shadow: 0 6px 26px rgba(0, 0, 0, 0.34);
}

.cpu-hero p {
  max-width: 700px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 2.05;
  text-align: right;
}

.cpu-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.cpu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 19px;
  border-radius: 999px;
  font-size: 0.80rem;
  font-weight: 900;
  line-height: 1.7;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.cpu-btn:hover {
  transform: translateY(-1px);
}

.cpu-btn--primary {
  color: #1b1008 !important;
  background: linear-gradient(90deg, #b86b2d, #ffc451);
  border: 1px solid rgba(255, 196, 81, 0.45);
  box-shadow: 0 12px 28px rgba(184, 107, 45, 0.22);
}

.cpu-btn--primary:hover {
  color: #1b1008 !important;
  background: linear-gradient(90deg, #ffc451, #fff0c4);
  box-shadow: 0 14px 34px rgba(184, 107, 45, 0.26);
}

.cpu-btn--ghost {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.20);
}

.cpu-btn--ghost:hover {
  color: #ffc451 !important;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 196, 81, 0.35);
}

.cpu-video-card {
  width: min(100%, 360px);
  margin-inline: auto;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.20);
  box-shadow: 0 26px 76px rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
}

.cpu-video-card__media {
  aspect-ratio: 16 / 10;
  background: #130a06;
  overflow: hidden;
}

.cpu-video-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cpu-video-card__caption {
  padding: 13px 15px 15px;
}

.cpu-video-card__caption b {
  display: block;
  color: #ffc451;
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1.85;
  margin-bottom: 4px;
}

.cpu-video-card__caption span {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.73rem;
  line-height: 1.85;
}

/* ================= GENERAL ================= */

.cpu-section {
  position: relative;
  padding: 54px 0;
  overflow: hidden;
}

.cpu-section-label {
  margin-bottom: 10px;
  color: var(--cpu-coffee);
  background: rgba(184, 107, 45, 0.095);
  border: 1px solid rgba(184, 107, 45, 0.18);
}

.cpu-section h2,
.cpu-section-head h2,
.cpu-proof-box h2 {
  margin: 0 0 14px;
  color: #1b1008;
  font-size: clamp(1.02rem, 1.28vw, 1.22rem) !important;
  font-weight: 950;
  line-height: 1.78;
  letter-spacing: -0.25px;
}

.cpu-lead,
.cpu-muted,
.cpu-section-head p,
.cpu-proof-box p {
  margin: 0;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 2.05;
  text-align: right;
}

.cpu-lead {
  color: #2d2118;
  font-size: 0.92rem;
  font-weight: 650;
  margin-bottom: 10px;
}

.cpu-section-head {
  max-width: 870px;
  margin: 0 auto 26px;
  text-align: center;
}

.cpu-section-head .cpu-section-label {
  margin-inline: auto;
}

.cpu-section-head p {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

/* ================= SECTIONS ================= */

.cpu-position {
  background:
    radial-gradient(circle at 10% 12%, rgba(184, 107, 45, 0.075), transparent 30%),
    linear-gradient(180deg, #fffaf4 0%, #ffffff 100%);
}

.cpu-cases {
  background:
    radial-gradient(circle at 84% 8%, rgba(255, 196, 81, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
}

.cpu-case-card {
  position: relative;
  height: 100%;
  min-height: 228px;
  padding: 20px 18px;
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(180deg, #ffffff, #fffaf4),
    radial-gradient(circle at 0 0, rgba(255, 196, 81, 0.12), transparent 34%);
  border: 1px solid var(--cpu-line);
  box-shadow: var(--cpu-shadow);
  transition:
    transform 0.20s ease,
    box-shadow 0.20s ease,
    border-color 0.20s ease;
}

.cpu-case-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 3px;
  border-radius: 99px 99px 0 0;
  background: linear-gradient(90deg, var(--cpu-copper), var(--cpu-gold));
  opacity: 0.75;
}

.cpu-case-card:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 107, 45, 0.34);
  box-shadow: 0 20px 52px rgba(42, 22, 12, 0.13);
}

.cpu-case-card span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 50%;
  color: #1b1008;
  background: linear-gradient(90deg, #b86b2d, #ffc451);
  font-size: 0.78rem;
  font-weight: 950;
}

.cpu-case-card h3 {
  margin: 0 0 10px;
  color: #1b1008;
  font-size: 0.94rem !important;
  font-weight: 950;
  line-height: 1.75;
}

.cpu-case-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.95;
  text-align: right;
}

.cpu-case-card small {
  display: block;
  margin-top: 14px;
  color: #b86b2d;
  font-size: 0.70rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.8;
}

.cpu-case-card--dark {
  background:
    linear-gradient(135deg, #25140c, #0f0906),
    radial-gradient(circle at 0 0, rgba(255, 196, 81, 0.16), transparent 34%);
  border-color: rgba(255, 196, 81, 0.18);
}

.cpu-case-card--dark h3 {
  color: #ffc451;
}

.cpu-case-card--dark p {
  color: rgba(255, 255, 255, 0.78);
}

.cpu-case-card--dark small {
  color: rgba(255, 196, 81, 0.78);
}

/* ================= PROCESS ================= */

.cpu-process {
  background:
    radial-gradient(circle at 12% 18%, rgba(184, 107, 45, 0.075), transparent 30%),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
}

.cpu-process-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  align-items: center;
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(184, 107, 45, 0.16);
  box-shadow: var(--cpu-shadow);
}

.cpu-process-flow div {
  min-height: 110px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 14px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, #fff, #fffaf4),
    radial-gradient(circle at 50% 0%, rgba(255, 196, 81, 0.14), transparent 45%);
  border: 1px solid rgba(184, 107, 45, 0.14);
}

.cpu-process-flow b {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: #2a160c;
  font-size: 0.72rem;
  margin-bottom: 8px;
}

.cpu-process-flow span {
  color: #2d2118;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.8;
}

.cpu-process-flow i {
  display: none;
}

/* ================= MATRIX ================= */

.cpu-matrix {
  background: #fff;
}

.cpu-table-wrap {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(184, 107, 45, 0.16);
  box-shadow: var(--cpu-shadow);
  background: #fff;
}

.cpu-table {
  margin: 0;
}

.cpu-table th {
  color: #fff;
  background: linear-gradient(180deg, #2a160c, #4b2a17);
  border-color: rgba(255, 255, 255, 0.08) !important;
  font-size: 0.80rem;
  font-weight: 900;
  padding: 14px 16px;
  line-height: 1.8;
  text-align: right;
}

.cpu-table td {
  color: #526174;
  border-color: rgba(184, 107, 45, 0.10) !important;
  font-size: 0.77rem;
  font-weight: 500;
  line-height: 1.95;
  padding: 14px 16px;
  text-align: right;
}

.cpu-table tbody tr:nth-child(even) td {
  background: #fff7ed;
}

.cpu-table strong {
  color: #1b1008;
  font-weight: 950;
}

/* ================= PROOF ================= */

.cpu-proof {
  padding: 60px 0;
  background:
    linear-gradient(135deg, rgba(18, 9, 5, 0.80), rgba(74, 38, 19, 0.58)),
    radial-gradient(circle at 14% 20%, rgba(255, 196, 81, 0.18), transparent 34%),
    radial-gradient(circle at 88% 80%, rgba(184, 107, 45, 0.18), transparent 34%),
    url("../img/bg/custom-pu-solution.png") center center / cover no-repeat;
}

.cpu-proof-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 30px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.20);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(6px) saturate(145%);
  -webkit-backdrop-filter: blur(6px) saturate(145%);
}

.cpu-proof-content {
  flex: 1;
}

.cpu-proof-box .cpu-btn {
  flex-shrink: 0;
  margin-top: 18px;
}

.cpu-proof-box .cpu-section-label {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.22);
}

.cpu-proof-box h2 {
  color: #fff;
}

.cpu-proof-box p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 991.98px) {
  .cpu-hero {
    min-height: auto;
    padding: 96px 0 54px;
  }

  .cpu-section {
    padding: 46px 0;
  }

  .cpu-video-card {
    width: min(100%, 330px);
  }

  .cpu-process-flow {
    grid-template-columns: 1fr;
  }

  .cpu-process-flow div {
    min-height: auto;
  }

  .cpu-proof-box {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 24px;
  }

  .cpu-proof-box .cpu-btn {
    width: fit-content;
    align-self: center;
  }

  .cpu-table thead {
    display: none;
  }

  .cpu-table,
  .cpu-table tbody,
  .cpu-table tr,
  .cpu-table td {
    display: block;
    width: 100%;
  }

  .cpu-table tr {
    margin-bottom: 14px;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 24px rgba(42, 22, 12, 0.08);
  }

  .cpu-table td {
    position: relative;
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 14px 16px;
    border: none;
    border-bottom: 1px solid rgba(184, 107, 45, 0.10);
    font-size: 0.78rem;
    line-height: 1.95;
  }

  .cpu-table td::before {
    content: attr(data-label);
    position: static;
    width: auto;
    color: #1b1008;
    font-size: 0.74rem;
    font-weight: 950;
    line-height: 1.8;
    white-space: normal;
  }
}

@media (max-width: 575.98px) {
  .cpu-hero {
    padding: 86px 0 46px;
  }

  .cpu-hero__glass {
    padding: 19px;
    border-radius: 18px;
  }

  .cpu-hero h1 {
    font-size: 1.18rem !important;
    line-height: 1.9;
  }

  .cpu-hero p,
  .cpu-lead,
  .cpu-muted,
  .cpu-section-head p,
  .cpu-proof-box p {
    font-size: 0.80rem;
    line-height: 1.95;
  }

  .cpu-btn {
    width: 100%;
  }

  .cpu-video-card {
    width: min(100%, 290px);
  }

  .cpu-video-card__media {
    aspect-ratio: 16 / 9;
  }

  .cpu-table td {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px;
  }

  .cpu-table td::before {
    padding-bottom: 4px;
    border-bottom: 1px dashed rgba(184, 107, 45, 0.18);
  }

  .cpu-proof-box {
    padding: 21px;
    border-radius: 22px;
  }

  .cpu-proof-box .cpu-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cpu-btn,
  .cpu-case-card {
    transition: none;
  }

  .cpu-btn:hover,
  .cpu-case-card:hover {
    transform: none;
  }
}
