/* =====================================================================
   Inforlandia — TCO Certified Products (page-specific layout)
   Reuses the visual system / design tokens from style.css.
   Only the product-specific blocks are defined here:
   .product  .feature  .specs  .cta
   ===================================================================== */

/* ------------------------------- Sections --------------------------- */
.product {
  padding: 72px 0;
  border-bottom: 1px solid var(--il-line-soft);
}

/* ------------------------- Product top (image + intro) -------------- */
.product-top {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  align-items: center;
}

.product-media {
  margin: 0;
  background: var(--il-bg-soft);
  border: 1px solid var(--il-line-soft);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-1);
}
.product-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.product-intro { min-width: 0; }

.product-category {
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 12px;
  border-radius: 999px;
  line-height: 1.4;
}
.badge-type { background: var(--il-blue-tint); color: var(--il-blue-deep-2); }
.badge-year { background: var(--il-green-tint); color: var(--il-green-deep); }

.product-name {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.3em;
}
.product-ref {
  color: var(--il-muted);
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}
.product-ref span {
  font-family: var(--font-slab);
  color: var(--il-ink);
  font-weight: 600;
}

.product-desc {
  font-size: 1.05rem;
}

.product-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.product-highlights li {
  position: relative;
  padding: 10px 10px 10px 30px;
  background: var(--il-bg-soft);
  border: 1px solid var(--il-line-soft);
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--il-ink);
}
.product-highlights li::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--il-green);
  transform: translateY(-50%);
}

/* ----------------------------- Feature cards ------------------------ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 44px 0 0;
}
.feature {
  background: var(--il-bg-soft);
  border: 1px solid var(--il-line-soft);
  border-radius: var(--radius);
  padding: 20px 18px;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-1);
}
.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--il-blue-tint);
  color: var(--il-blue-deep-2);
  margin-bottom: 14px;
}
.feature-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-title {
  font-family: var(--font-slab);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--il-ink);
  margin: 0 0 2px;
}
.feature-sub {
  font-size: 0.85rem;
  color: var(--il-muted);
  margin: 0;
}
/* ----------------------------- Positioning ------------------------- */
.product-positioning {
  margin-top: 44px;
  padding: 28px 30px;
  background: var(--il-blue-tint);
  border-left: 4px solid var(--il-blue);
  border-radius: var(--radius);
}
.positioning-title {
  font-size: 1.4rem;
  margin-bottom: 0.6em;
}
.product-positioning > p:last-child { margin-bottom: 0; }

/* ------------------------------ Specifications --------------------- */
.specs { margin-top: 44px; }
.specs-title {
  font-size: 1.6rem;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--il-line);
  margin-bottom: 24px;
}
.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 32px;
}
.spec-group {
  background: var(--il-bg);
  border: 1px solid var(--il-line-soft);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.spec-group-title {
  font-family: var(--font-slab);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--il-blue-deep-2);
  margin: 0 0 12px;
}
.spec-list { margin: 0; }
.spec-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--il-line-soft);
}
.spec-item:last-child { border-bottom: none; }
.spec-item dt {
  color: var(--il-muted);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.spec-item dd {
  margin: 0;
  color: var(--il-ink);
  font-weight: 500;
  font-size: 0.9rem;
  text-align: right;
  word-break: break-word;
}

/* -------------------------------- CTA ------------------------------- */
.cta {
  background: var(--il-header-bg);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.cta-inner { max-width: 660px; margin: 0 auto; }
.cta-title {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.cta-text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
}
.btn {
  display: inline-block;
  margin-top: 6px;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease);
}
.btn-primary { background: var(--il-red); color: #fff; }
.btn-primary:hover {
  background: #b81017;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

/* ----------------------------- Responsive --------------------------- */
@media (max-width: 900px) {
  .product { padding: 56px 0; }
  .product-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .product-media { max-width: 460px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs-grid { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 560px) {
  .product { padding: 44px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .product-highlights { grid-template-columns: 1fr; }
  .spec-item {
    flex-direction: column;
    gap: 2px;
  }
  .spec-item dd { text-align: left; }
}

/* --------------------------- Reduced motion ------------------------- */
@media (prefers-reduced-motion: reduce) {
  .feature, .btn { transition: none; }
  .feature:hover, .btn-primary:hover { transform: none; }
  .resource-tab, .resource-doc-action { transition: none; }
  .resource-tab.is-active .resource-chevron svg { transform: none; }
}

/* ----------------------- Documentation & resources ------------------ */
.product-resources { margin-top: 44px; }
.resources-title {
  font-size: 1.6rem;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--il-line);
  margin-bottom: 24px;
}

.resource-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.resource-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  background: var(--il-bg);
  border: 1px solid var(--il-line-soft);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--il-ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.resource-tab:hover { border-color: var(--il-blue); box-shadow: var(--shadow-1); }
.resource-tab:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.resource-tab-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--il-blue-tint);
  color: var(--il-blue-deep-2);
}
.resource-tab-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.resource-tab-label { flex: 1; min-width: 0; }
.resource-chevron { display: inline-flex; color: var(--il-muted); }
.resource-chevron svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.18s var(--ease);
}
.resource-tab.is-active {
  background: var(--il-blue-tint);
  border-color: var(--il-blue);
  color: var(--il-blue-deep-2);
}
.resource-tab.is-active .resource-chevron { color: var(--il-blue-deep-2); }
.resource-tab.is-active .resource-chevron svg { transform: rotate(180deg); }

.resource-panel { display: none; }
.resource-panel.is-open { display: block; }
.resource-doc {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--il-bg-soft);
  border: 1px solid var(--il-line-soft);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.resource-doc-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--il-red-tint);
  color: var(--il-red);
}
.resource-doc-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.resource-doc-body { flex: 1; min-width: 0; }
.resource-doc-title {
  font-family: var(--font-slab);
  font-weight: 600;
  color: var(--il-ink);
  font-size: 1.05rem;
  margin: 0 0 4px;
}
.resource-doc-desc { margin: 0 0 10px; color: var(--il-muted); font-size: 0.9rem; }
.resource-doc-meta { display: flex; }
.resource-doc-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--il-red);
  color: #fff;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease);
}
.resource-doc-action:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); background: #b81017; color: #fff; }
.resource-doc-action:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.resource-doc-arrow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Placeholder state: no document URL yet (visible but inactive) */
.resource-doc-empty {
  background: transparent;
  color: var(--il-muted);
  border: 1px dashed var(--il-line);
  cursor: not-allowed;
}
.resource-doc-empty:hover {
  transform: none;
  box-shadow: none;
  background: transparent;
  color: var(--il-muted);
}

/* ------------------- Resources responsive -------------------------- */
@media (max-width: 900px) {
  .resource-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .resource-tabs { grid-template-columns: 1fr; }
  .resource-doc { flex-direction: column; align-items: flex-start; }
  .resource-doc-action { width: 100%; justify-content: center; }
}

