:root {
  --navy: #052a6b;
  --blue: #087be6;
  --text: #083373;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--text);
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
}
.quote,
.blue-button {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  border-radius: 25px;
  padding: 12px 22px;
  background: #087be6;
  color: white;
  font-size: 13px;
  text-decoration: none;
  font-weight: 800;
}
.hero {
  min-height: 455px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, #dff7ff 0%, #dff7ffad 45%, #8edaff33),
    url("assets/banner-certifications-new.png") center/cover no-repeat;
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #e8faff 0%, #e8faff 32%, transparent 68%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 54px max(7.5vw, 38px);
  max-width: 610px;
}
.eyebrow {
  margin: 0 0 7px;
  letter-spacing: 2px;
  font-size: 13px;
  font-weight: 900;
  color: #087be6;
}
.hero h1,
.standards h2,
.worldwide h2,
.cta h2 {
  font-size: 42px;
  line-height: 0.96;
  margin: 0 0 13px;
  letter-spacing: -1px;
  font-weight: 900;
}
.hero h2 {
  font-size: 18px;
  line-height: 1.05;
  margin: 0 0 13px;
}
.hero-content > p:not(.eyebrow),
.standards-copy > p:not(.eyebrow),
.worldwide p {
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 18px;
}
.play-safe {
  position: absolute;
  z-index: 2;
  right: 7%;
  top: 24px;
  font-size: 27px;
  line-height: 1.05;
  color: #0864bf;
  transform: rotate(-7deg);
  font-weight: 700;
}
.play-safe span {
  display: block;
  text-align: center;
  font-size: 42px;
}
.hero-wave {
  position: absolute;
  z-index: 2;
  bottom: -27px;
  left: -5%;
  width: 110%;
  height: 95px;
  background: #fff;
  border-radius: 50% 50% 0 0/70% 70% 0 0;
  transform: rotate(1deg);
}
.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 50px 9%;
  background: linear-gradient(120deg, #f6fdff, #e9faff);
  text-align: center;
}
.benefits article {
  border-right: 1px solid #a6dff8;
}
.benefits article:last-child {
  border: 0;
}
.benefits i {
  font-size: 43px;
  color: #087be6;
}
.benefits .green {
  color: #00a360;
}
.benefits h3 {
  font-size: 16px;
  margin: 10px 0 2px;
}
.benefits p {
  font-size: 13px;
  margin: 0;
  line-height: 1.25;
}
.standards {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  padding: 58px max(4%, 36px);
  background: linear-gradient(180deg, #fff, #f1fbff);
}
.standards h2 {
  font-size: 30px;
  line-height: 1.06;
}
.wave-mark {
  font-size: 48px;
  color: #087be6;
  line-height: 0.5;
  margin: 8px 0 20px;
}
.certificate-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 23px 15px;
}
.certificate {
  text-align: center;
}
.paper {
  height: 155px;
  background: #fff;
  box-shadow: 0 1px 10px #a7bbc855;
  border: 1px solid #dce5ec;
  border-left: 12px solid currentColor;
  padding: 19px 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.paper b {
  font-size: 35px;
  line-height: 1;
  color: currentColor;
}
.paper small {
  font-size: 13px;
  font-weight: 800;
}
.paper span {
  font-size: 10px;
  font-weight: 800;
  color: #355477;
}
.certificate h3 {
  font-size: 13px;
  margin: 8px 0 0;
}
.certificate p {
  font-size: 10px;
  margin: 1px 0;
  line-height: 1.25;
}
.iso-blue {
  color: #1b71bc;
}
.iso-green {
  color: #12994b;
}
.iso-orange {
  color: #e16620;
}
.ce {
  color: #111;
}
.tuv {
  color: #1e75a8;
}
.astm {
  color: #123c71;
}
.en {
  color: #d89b00;
}
.rohs {
  color: #169740;
}
.worldwide {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2172 / 724;
  min-height: 0;
  padding: 0;
  background: #e9faff url("image.png") center / 100% 100% no-repeat;
  clip-path: polygon(
    0 17%,
    6% 10%,
    18% 13%,
    34% 20%,
    50% 15%,
    64% 18%,
    82% 10%,
    95% 11%,
    100% 14%,
    100% 91%,
    90% 88%,
    76% 90%,
    65% 96%,
    52% 100%,
    36% 96%,
    25% 91%,
    13% 93%,
    0 87%
  );
}
.worldwide:after {
  display: none;
  content: "◒";
  position: absolute;
  right: 14%;
  top: 5%;
  font-size: 220px;
  color: #72cce766;
}
.worldwide h2 {
  font-size: clamp(30px, 3.1vw, 60px);
  line-height: 1.05;
}
.worldwide > div {
  position: relative;
  z-index: 1;
}
.worldwide > div:first-child {
  position: absolute;
  top: 19%;
  left: 3.4%;
  max-width: min(29%, 550px);
}
.worldwide > div:first-child p {
  font-size: clamp(12px, 1vw, 18px);
  line-height: 1.55;
}
.worldwide .stats {
  position: absolute;
  top: 67%;
  left: 36.5%;
}
.stats {
  display: flex;
  gap: clamp(18px, 2.1vw, 42px);
}
.stats strong {
  font-size: clamp(28px, 2.8vw, 54px);
  color: #087be6;
  border-right: 1px solid #087be6;
  padding-right: clamp(18px, 2vw, 38px);
}
.stats strong:last-child {
  border: 0;
}
.stats small {
  display: block;
  font-size: clamp(9px, 0.8vw, 15px);
  font-weight: 700;
  white-space: nowrap;
}
.sustainable {
  display: none;
  position: absolute;
  right: 5%;
  z-index: 2;
  text-align: center;
  font-size: 23px !important;
  font-weight: 700;
  line-height: 1.05 !important;
  color: #0750a3;
}
.values {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 250px;
  padding: 48px clamp(28px, 5vw, 96px) 32px;
  background: #087edb url("backgtound section.png") center / cover no-repeat;
  color: #fff;
}
.values span {
  position: relative;
  display: flex;
  width: calc((100% - 210px) / 5);
  flex-direction: column;
  gap: 8px;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
}
.values span:not(:first-child)::before {
  position: absolute;
  top: -9px;
  left: 0;
  width: 1px;
  height: 76px;
  content: "";
  background: rgb(255 255 255 / 45%);
}
.values i {
  font-size: 28px;
}
.values::after {
  width: 210px;
  margin-top: -6px;
  content: "Standards\A That Build\A Smiles\A \2323";
  color: #fff;
  font-family: cursive;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.08;
  white-space: pre-line;
  text-align: center;
  transform: rotate(-6deg);
}
.cta {
  padding: 47px max(6%, 55px);
  min-height: 220px;
  color: #fff;
  background:
    linear-gradient(90deg, #005184c7, #00518450),
    url("assets/hero-bg.jpg") center/cover;
}
.cta .eyebrow {
  color: #bceeff;
}
.cta h2 {
  font-size: 30px;
}
.cta a {
  background: white;
  border-radius: 24px;
  color: var(--navy);
  text-decoration: none;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 900;
}
footer {
  position: relative;
  background: #03234e;
  color: #fff;
  padding: 36px max(4%, 42px) 55px;
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 25px;
  font-size: 12px;
}
footer .footer-brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
footer .footer-brand img {
  filter: brightness(0) invert(1);
  width: 180px;
}
footer b {
  display: block;
  margin-bottom: 10px;
}
footer a,
footer span {
  color: #e8f5ff;
  display: block;
  text-decoration: none;
  margin: 5px 0;
}
.social {
  display: flex;
  gap: 9px;
}
.social i {
  font-size: 20px;
}
.copyright {
  position: absolute;
  bottom: 17px;
  left: max(4%, 42px);
  color: #b9cee0;
}
@media (max-width: 800px) {
  .site-header {
    height: auto;
    padding: 13px 20px;
  }
  .site-header nav {
    display: none;
  }
  .brand img {
    width: 138px;
  }
  .quote {
    padding: 9px 13px;
    font-size: 11px;
  }
  .hero-content {
    padding: 44px 27px;
    max-width: 500px;
  }
  .hero h1 {
    font-size: 35px;
  }
  .standards {
    grid-template-columns: 1fr;
  }
  .certificate-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .worldwide {
    display: block;
    aspect-ratio: auto;
    min-height: 470px;
    padding: 64px 27px 45px;
    background-size: cover;
    clip-path: none;
  }
  .worldwide > div:first-child,
  .worldwide .stats {
    position: relative;
    top: auto;
    left: auto;
    max-width: none;
  }
  .stats {
    margin-top: 24px;
    gap: 15px;
  }
  .stats strong {
    padding-right: 15px;
    font-size: 22px;
  }
  .values {
    flex-wrap: wrap;
    gap: 24px;
  }
  .values span {
    width: 28%;
  }
  footer {
    grid-template-columns: repeat(2, 1fr);
    padding-bottom: 70px;
  }
  .play-safe {
    display: none;
  }
}
@media (max-width: 420px) {
  .hero h1 {
    font-size: 30px;
  }
  .benefits {
    padding: 32px 15px;
  }
  .benefits i {
    font-size: 31px;
  }
  .benefits h3 {
    font-size: 12px;
  }
  .benefits p {
    font-size: 10px;
  }
  .paper {
    height: 130px;
  }
  .worldwide h2 {
    font-size: 27px;
  }
  .stats {
    flex-wrap: wrap;
  }
  .sustainable {
    display: none;
  }
}

/* Enhanced Certificate Card */
.certificate {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 14px 14px;
  box-shadow: 0 4px 14px rgba(8, 123, 230, 0.08);
  border: 1px solid #dcebf7;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-align: center;
}
.certificate:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(8, 123, 230, 0.16);
  border-color: #087be6;
}
.certificate .paper {
  border-radius: 10px;
  margin-bottom: 8px;
}
.cert-meta {
  font-size: 11px;
  font-weight: 700;
  color: #087be6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}
.cert-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
  padding: 9px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #087be6 0%, #005fb8 100%);
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(8, 123, 230, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  user-select: none;
}
.cert-view-btn:hover {
  background: linear-gradient(135deg, #0562b8 0%, #00458a 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(8, 123, 230, 0.35);
}

/* Modal and PDF Canvas Viewer (Zoom Only - No Download) */
.pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 16px;
}
.pdf-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.pdf-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 26, 68, 0.82);
  backdrop-filter: blur(8px);
}
.pdf-modal-dialog {
  position: relative;
  z-index: 2;
  width: min(940px, 96vw);
  height: min(88vh, 880px);
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(5, 30, 80, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1.5px solid #cde5f7;
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.pdf-modal.open .pdf-modal-dialog {
  transform: scale(1);
}
.pdf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: #f7fcff;
  border-bottom: 1.5px solid #e1f0fa;
  gap: 16px;
  flex-wrap: wrap;
}
.pdf-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pdf-modal-title-wrap i {
  font-size: 26px;
  color: #087be6;
}
.pdf-modal-title-wrap h3 {
  font-size: 16px;
  font-weight: 800;
  color: #052a6b;
  margin: 0;
  font-family: Outfit, sans-serif;
}
.pdf-modal-title-wrap p {
  font-size: 12px;
  color: #496d98;
  margin: 2px 0 0;
  font-weight: 600;
}
.pdf-modal-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pdf-tool-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #d4ebf9;
  box-shadow: 0 2px 6px rgba(8, 126, 219, 0.06);
}
.pdf-btn {
  background: transparent;
  border: none;
  color: #087be6;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  transition: all 0.2s ease;
}
.pdf-btn:hover {
  background: #e6f5ff;
  color: #055cae;
}
.pdf-zoom-val,
.pdf-page-val {
  font-size: 12px;
  font-weight: 800;
  color: #052a6b;
  min-width: 48px;
  text-align: center;
  user-select: none;
}
.pdf-close-btn {
  background: #f0f7fc;
  border: 1px solid #d4e8f7;
  color: #55779c;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 16px;
  transition: all 0.2s ease;
}
.pdf-close-btn:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}
.pdf-canvas-container {
  flex: 1;
  overflow: auto;
  background: #475569;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 16px;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}
.pdf-canvas-container canvas {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  background: #ffffff;
  border-radius: 4px;
  max-width: none !important;
  pointer-events: none;
}
.pdf-loading-state {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  text-align: center;
}
.pdf-loading-state i {
  font-size: 34px;
  color: #38bdf8;
  margin-bottom: 12px;
  display: block;
}
.pdf-loading-state p {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

@media (max-width: 768px) {
  .certificate-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pdf-modal-dialog {
    width: 98vw;
    height: 94vh;
    border-radius: 14px;
  }
  .pdf-modal-header {
    padding: 12px 14px;
  }
}
@media (max-width: 480px) {
  .certificate-grid {
    grid-template-columns: 1fr;
  }
}

