:root {
  --profid-navy: #0e2f4f;
  --profid-blue: #1267a5;
  --profid-light: #eef6fb;
  --profid-border: #d8e3eb;
  --profid-green: #168b54;
  --profid-text: #203040;
}

.profid-opt-hero,
.profid-opt-contact-hero,
.profid-opt-page-intro {
  box-sizing: border-box;
  max-width: 1180px;
  margin: 32px auto;
  padding: clamp(34px, 6vw, 72px);
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(125deg, rgba(8, 34, 58, .98), rgba(18, 103, 165, .91));
  box-shadow: 0 18px 50px rgba(10, 42, 68, .16);
}

.profid-opt-hero h1,
.profid-opt-contact-hero h1,
.profid-opt-page-intro h1 {
  max-width: 900px;
  margin: 8px 0 16px;
  color: #fff;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -.025em;
}

.profid-opt-hero > p:not(.profid-opt-eyebrow),
.profid-opt-contact-hero > p:not(.profid-opt-eyebrow),
.profid-opt-page-intro > p:not(.profid-opt-eyebrow) {
  max-width: 790px;
  margin: 0;
  color: rgba(255,255,255,.9);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
}

.profid-opt-eyebrow {
  margin: 0;
  color: #69c5ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
}

.profid-opt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.profid-opt-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border: 0;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.profid-opt-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,.14);
}

.profid-opt-primary {
  color: #fff !important;
  background: var(--profid-blue);
}

.profid-opt-hero .profid-opt-primary {
  color: var(--profid-navy) !important;
  background: #fff;
}

.profid-opt-secondary {
  color: #fff !important;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.65);
}

.profid-opt-whatsapp,
.profid-opt-float-whatsapp {
  color: #fff !important;
  background: var(--profid-green);
}

.profid-opt-section {
  box-sizing: border-box;
  max-width: 1180px;
  margin: 64px auto;
  padding: 0 20px;
}

.profid-opt-section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.profid-opt-section-heading h2 {
  margin: 8px 0 10px;
  color: var(--profid-navy);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.profid-opt-section-heading > p:last-child {
  color: #526678;
  font-size: 17px;
}

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

.profid-opt-card {
  display: block;
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--profid-border);
  border-radius: 14px;
  color: var(--profid-text) !important;
  background: #fff;
  box-shadow: 0 8px 24px rgba(14,47,79,.06);
  text-decoration: none !important;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.profid-opt-card:hover {
  transform: translateY(-3px);
  border-color: var(--profid-blue);
  box-shadow: 0 14px 34px rgba(14,47,79,.12);
}

.profid-opt-card h3 {
  margin: 0 0 12px;
  color: var(--profid-navy);
  font-size: 21px;
  line-height: 1.25;
}

.profid-opt-card p {
  min-height: 76px;
  margin: 0 0 18px;
  color: #5a6b78;
  line-height: 1.55;
}

.profid-opt-card span {
  color: var(--profid-blue);
  font-weight: 750;
}

.profid-opt-trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1180px;
  margin: 56px auto;
  border: 1px solid var(--profid-border);
  border-radius: 16px;
  background: var(--profid-light);
  overflow: hidden;
}

.profid-opt-trust > div {
  padding: 24px;
  border-right: 1px solid var(--profid-border);
}

.profid-opt-trust > div:last-child { border-right: 0; }
.profid-opt-trust strong,
.profid-opt-trust span { display: block; }
.profid-opt-trust strong { color: var(--profid-navy); font-size: 18px; }
.profid-opt-trust span { margin-top: 6px; color: #526678; line-height: 1.45; }

.profid-opt-category-catalog {
  box-sizing: border-box;
  width: 100%;
  margin: 46px auto 56px;
}

.profid-opt-category-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.profid-opt-category-heading h2 {
  margin: 7px 0 9px;
  color: var(--profid-navy);
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.15;
}

.profid-opt-category-heading > p:last-child {
  margin: 0;
  color: #526678;
  line-height: 1.6;
}

.profid-opt-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.profid-opt-category-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--profid-border);
  border-radius: 14px;
  color: var(--profid-text) !important;
  background: #fff;
  box-shadow: 0 8px 24px rgba(14,47,79,.07);
  text-decoration: none !important;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.profid-opt-category-card:hover {
  transform: translateY(-3px);
  border-color: var(--profid-blue);
  box-shadow: 0 14px 32px rgba(14,47,79,.13);
}

.profid-opt-category-media {
  display: flex;
  aspect-ratio: 4 / 3;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: #f6f9fb;
}

.profid-opt-category-image,
.profid-opt-category-media img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
}

.profid-opt-category-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px;
}

.profid-opt-category-copy strong {
  color: var(--profid-navy);
  font-size: 17px;
  line-height: 1.32;
}

.profid-opt-category-copy small {
  margin: 7px 0 17px;
  color: #6c7c88;
  font-size: 13px;
}

.profid-opt-category-copy > span {
  margin-top: auto;
  color: var(--profid-blue);
  font-size: 14px;
  font-weight: 750;
}

.profid-opt-product-cta {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid var(--profid-border);
  border-radius: 12px;
  background: var(--profid-light);
}

.profid-opt-product-cta .profid-opt-button { margin: 0 8px 8px 0; }
.profid-opt-product-cta p { margin: 8px 0 0; color: #536778; font-size: 14px; line-height: 1.5; }

/* ProfiD is a quotation-led B2B site; never show misleading zero-price blocks. */
.wp-block-woocommerce-product-price {
  display: none !important;
}

.profid-opt-contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.4fr);
  gap: 24px;
  max-width: 1180px;
  margin: 40px auto 72px;
  padding: 0 20px;
}

.profid-opt-contact-card,
.profid-opt-form-card {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--profid-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(14,47,79,.07);
}

.profid-opt-contact-card h2,
.profid-opt-form-card h2 { margin-top: 0; color: var(--profid-navy); }
.profid-opt-contact-card dt { margin-top: 20px; color: #6c7c88; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.profid-opt-contact-card dd { margin: 4px 0 0; color: var(--profid-text); line-height: 1.55; }
.profid-opt-contact-card a { color: var(--profid-blue); font-weight: 700; }

.profid-opt-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.profid-opt-inquiry-form label {
  display: block;
  margin-bottom: 16px;
  color: var(--profid-text);
  font-size: 14px;
  font-weight: 700;
}

.profid-opt-inquiry-form label > span { color: #b42318; }

.profid-opt-inquiry-form input[type="text"],
.profid-opt-inquiry-form input[type="email"],
.profid-opt-inquiry-form textarea {
  box-sizing: border-box;
  width: 100%;
  margin-top: 7px;
  padding: 12px 13px;
  border: 1px solid #b9c8d3;
  border-radius: 7px;
  color: #1f2933;
  background: #fff;
  font: inherit;
}

.profid-opt-inquiry-form input:focus,
.profid-opt-inquiry-form textarea:focus {
  border-color: var(--profid-blue);
  outline: 3px solid rgba(18,103,165,.14);
}

.profid-opt-consent { display: flex !important; gap: 9px; align-items: flex-start; font-weight: 500 !important; }
.profid-opt-consent input { margin-top: 4px; }
.profid-opt-small { color: #6c7c88; font-size: 13px; line-height: 1.5; }
.profid-opt-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.profid-opt-notice {
  max-width: 1140px;
  margin: 24px auto;
  padding: 15px 18px;
  border-radius: 8px;
  font-weight: 700;
}
.profid-opt-notice.success { color: #11643d; background: #e9f8f0; border: 1px solid #a8dfc1; }
.profid-opt-notice.error { color: #8a251e; background: #fff0ee; border: 1px solid #f0b5b0; }

.profid-opt-floating {
  position: fixed;
  z-index: 9998;
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 8px;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.18));
}

.profid-opt-floating a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 999px;
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
}

.profid-opt-float-email { background: var(--profid-navy); }

@media (max-width: 900px) {
  .profid-opt-grid,
  .profid-opt-trust,
  .profid-opt-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profid-opt-trust > div:nth-child(2) { border-right: 0; }
  .profid-opt-trust > div:nth-child(-n+2) { border-bottom: 1px solid var(--profid-border); }
  .profid-opt-contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .profid-opt-hero,
  .profid-opt-contact-hero,
  .profid-opt-page-intro { margin: 18px 14px; padding: 30px 22px; border-radius: 16px; }
  .profid-opt-grid,
  .profid-opt-trust,
  .profid-opt-category-grid,
  .profid-opt-form-grid { grid-template-columns: 1fr; }
  .profid-opt-card { min-height: 0; }
  .profid-opt-card p { min-height: 0; }
  .profid-opt-trust > div { border-right: 0; border-bottom: 1px solid var(--profid-border); }
  .profid-opt-trust > div:last-child { border-bottom: 0; }
  .profid-opt-product-cta .profid-opt-button { width: 100%; margin-right: 0; }
  .profid-opt-floating { right: 10px; bottom: 10px; left: 10px; justify-content: center; }
  .profid-opt-floating a { flex: 1; justify-content: center; max-width: 180px; }
}
