/**
 * Homepage Sections
 * Products, Applications, Trust, Certificates, Links Hub
 */

/* Products Section */
.products-section .container,
.trust-section .container,
.certificates-section .container,
.applications-section .container {
  width: min(1080px, 92vw);
}

.products-section .section-title,
.trust-section .section-title,
.applications-section .section-title {
  margin-bottom: 18px;
}

.products-section .section-title,
.products-section .section-intro {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.product-showcase,
.trust-grid-3,
.apps-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1080px;
  margin-left: 0;
  margin-right: 0;
}

/* Product Cards - New Style */
.product-item,
.trust-card,
.app-tile {
  background: white;
  border: 1px solid #e1e8ef;
  border-radius: 8px;
  padding: 24px;
  text-align: left;
  transition: all 0.2s ease;
  box-shadow: none;
}

.product-item:hover,
.trust-card:hover,
.app-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(26, 58, 82, 0.1);
  border-color: #0e7f9e;
}

.product-item h3,
.trust-card h3,
.app-tile h3 {
  font-size: 1.1rem;
  color: #1a3a52;
  margin: 0 0 8px;
  font-weight: 600;
  line-height: 1.35;
}

.product-item p,
.trust-card p {
  color: #6b7f95;
  font-size: 0.9rem;
  margin: 0 0 12px;
  line-height: 1.5;
}

.product-tag {
  display: inline-block;
  width: auto;
  margin-left: 0;
  margin-right: 0;
  color: #0e7f9e;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Applications Section */
.apps-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.apps-lead {
  min-height: 0;
  max-width: 72ch;
  border-top: 1px dotted rgba(35, 64, 96, 0.24);
  border-bottom: 0;
  padding: 16px 0 2px;
  background: transparent;
  box-shadow: none;
}

.apps-lead h3 {
  margin: 0;
  font-size: 1.42rem;
  line-height: 1.3;
  max-width: none;
  white-space: normal;
}

.apps-lead p {
  margin: 14px 0 0;
  color: #b7cbdd;
  max-width: none;
  white-space: normal;
}

.app-tile {
  display: flex;
  align-items: center;
  min-height: 112px;
}

.app-tile h3 {
  margin: 0;
}

/* Trust Section */
.trust-card p {
  margin-top: 9px;
}

/* Certificates Section */
.certificates-section .section-title {
  margin-bottom: 18px;
}

.cert-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  max-width: 1080px;
  margin-left: 0;
  margin-right: 0;
}

.cert-summary {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(29, 57, 89, 0.12);
}

.cert-summary ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: #9cb2c6;
}

.cert-summary li + li {
  margin-top: 6px;
}

.cert-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 1080px;
  margin-left: 0;
  margin-right: 0;
}

.cert-media figure {
  margin: 0;
  border: 1px solid rgba(29, 57, 89, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(16, 42, 73, 0.08);
}

.cert-media figcaption {
  color: #90a7bd;
  font-size: 0.85rem;
  padding: 8px 2px 0;
}

.cert-wide {
  grid-column: 1 / -1;
}

/* Links Hub Section */
.links-hub-section {
  border-top: 0;
  background: transparent;
}

.links-hub {
  display: grid;
  grid-template-columns: 1.35fr 2fr;
  gap: 30px;
}

.links-intro {
  padding-right: 18px;
  border-right: 1px dashed rgba(35, 64, 96, 0.18);
}

.links-intro h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(2rem, 4vw, 3rem);
  font-family: var(--font-family-serif);
  line-height: 1;
}

.links-intro h2 span {
  color: #d8b15a;
}

.links-intro p {
  margin: 16px 0 0;
  color: #8fa8c0;
  max-width: 38ch;
  font-size: 1.02rem;
}

.links-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}

.links-col h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #3c5672;
}

.links-col a {
  display: block;
  color: #49627d;
  font-size: 0.98rem;
  margin-bottom: 11px;
  border-bottom: 1px solid rgba(35, 64, 96, 0.16);
  padding-bottom: 7px;
}

.links-col a:hover {
  color: #0e7f9e;
}

.links-col a:last-child {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .product-showcase,
  .trust-grid-3,
  .apps-grid,
  .links-hub,
  .links-columns {
    grid-template-columns: 1fr;
  }

  .cert-media {
    grid-template-columns: 1fr;
  }

  .cert-wide {
    grid-column: auto;
  }

  .links-intro {
    border-right: 0;
    padding-right: 0;
  }
}

@media (max-width: 800px) {
  .apps-grid {
    border-top: 0;
  }

  .apps-lead {
    border-top: 0;
    padding-top: 0;
  }
}
