/*
Theme Name: Certonal
Author: Roodee
Version: 2.0
*/

:root {
  --certonal-navy: #062b55;
  --certonal-navy-deep: #00264d;
  --certonal-green: #78b82a;
  --certonal-text: #082a54;
  --certonal-muted: #45566a;
  --certonal-line: #d8dde2;
  --certonal-pale: #f5f6f7;
  --certonal-white: #ffffff;
  --certonal-wrap: 1200px;
  --certonal-gutter: clamp(24px, 3.75vw, 45px);
}

@font-face {
  font-family: "Certonal Light";
  src: url("fonts/Lato-Hairline.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Certonal Bold";
  src: url("fonts/Lato-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--certonal-text);
  background: var(--certonal-white);
  font-family: "Certonal Light", "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
}

body,
button,
input,
select,
textarea {
  font-family: "Certonal Light", "Avenir Next", "Segoe UI", Arial, sans-serif;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

.certonal-wrap {
  width: 100%;
  max-width: var(--certonal-wrap);
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--certonal-gutter);
  padding-left: var(--certonal-gutter);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.certonal-icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Header */
.site-header {
  position: relative;
  z-index: 10;
  background: var(--certonal-white);
}

.site-header__inner {
  width: 100%;
  max-width: var(--certonal-wrap);
  min-height: 152px;
  margin: 0 auto;
  padding: 24px var(--certonal-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.site-header__brand,
.site-header__brand .custom-logo-link {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
}

.site-header__brand .custom-logo-link,
.site-header__name {
  text-decoration: none;
}

.site-header__brand .custom-logo {
  width: auto;
  max-width: min(390px, 48vw);
  max-height: 66px;
}

.site-header__name {
  color: #202227;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(35px, 5vw, 58px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.site-header__contact {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 4px;
  color: #243a51;
  white-space: nowrap;
}

.site-header__contact a {
  text-decoration: none;
}

.site-header__phone {
  font-size: clamp(21px, 2.25vw, 26px);
  font-weight: 600;
  line-height: 1.15;
}

.site-header__email {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.35;
}

.site-header__contact a:hover,
.site-header__contact a:focus-visible {
  color: var(--certonal-green);
}

.site-header__contact a:focus-visible,
.site-header__brand a:focus-visible,
.site-footer a:focus-visible {
  outline: 2px solid var(--certonal-green);
  outline-offset: 5px;
}

/* Home hero */
.certonal-hero {
  height: clamp(520px, 55.6vw, 668px);
  min-height: 520px;
  background-color: #dfe4e7;
  background-image: linear-gradient(120deg, #d9dfe2, #f2f4f5 52%, #c8d0d4);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.certonal-hero__inner {
  height: 100%;
  display: flex;
  align-items: center;
}

.certonal-hero__panel {
  width: min(400px, 100%);
  padding: 36px 39px 34px;
  color: var(--certonal-white);
  background: rgba(0, 38, 77, 0.97);
  border-radius: 14px;
  box-shadow: 0 5px 12px rgba(0, 20, 42, 0.23);
}

.certonal-hero__panel h1 {
  margin: 0;
  font-family: "Certonal Bold", "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-size: clamp(48px, 5.75vw, 66px);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.025em;
}

.certonal-hero__panel h1 span {
  display: block;
}

.certonal-hero__panel sup,
.certonal-solution__copy sup {
  position: relative;
  top: -0.18em;
  font-size: 0.42em;
  line-height: 0;
  vertical-align: baseline;
}

.certonal-hero__rule {
  display: block;
  width: 78px;
  height: 4px;
  margin: 25px 0 22px;
  background: var(--certonal-green);
}

.certonal-hero__panel p {
  margin: 0;
  font-size: clamp(21px, 2.55vw, 27px);
  line-height: 1.55;
}

/* Application icons */
.certonal-applications {
  background: var(--certonal-white);
}

.certonal-applications__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-top: 45px;
  padding-bottom: 43px;
}

.certonal-application {
  min-height: 158px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.certonal-application + .certonal-application {
  border-left: 1px solid #c8ced4;
}

.certonal-application__icon {
  width: 82px;
  height: 82px;
  color: var(--certonal-navy);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.certonal-application h2 {
  max-width: 170px;
  margin: 13px auto 0;
  font-family: "Certonal Bold", "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-size: clamp(18px, 2.15vw, 23px);
  font-weight: 700;
  line-height: 1.22;
}

/* Solution rows */
.certonal-solutions {
  background: var(--certonal-white);
}

.certonal-solution {
  position: relative;
  min-height: 242px;
  padding: 22px 0;
  display: grid;
  grid-template-columns: minmax(230px, 29.5%) 90px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 16px;
}

.certonal-solution:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: calc(29.5% + 16px);
  height: 1px;
  background: var(--certonal-line);
}

.certonal-solution__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e9edef;
  border-radius: 3px;
}

.certonal-solution__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.certonal-solution__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(6, 43, 85, 0.06), rgba(120, 184, 42, 0.12)),
    #eef1f2;
}

.certonal-solution__icon-wrap {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--certonal-green);
  border: 2px solid currentColor;
  border-radius: 50%;
}

.certonal-solution__icon {
  width: 59px;
  height: 59px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.certonal-solution__copy {
  min-width: 0;
}

.certonal-solution__copy h2 {
  margin: 0 0 11px;
  font-family: "Certonal Bold", "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-size: clamp(23px, 2.85vw, 31px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.012em;
}

.certonal-solution__copy h2 span {
  display: block;
}

.certonal-solution__copy p {
  margin: 0;
  color: #132d4b;
  font-size: clamp(19px, 2.35vw, 25px);
  line-height: 1.35;
}

.certonal-solution__copy p + p {
  margin-top: 0.65em;
}

.certonal-solution__trigger {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  padding: 0;
  color: var(--certonal-green);
  background: transparent;
  border: 0;
  border-radius: 4px;
  appearance: none;
  cursor: pointer;
}

.certonal-solution__arrow {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 24px;
  height: 24px;
  border-top: 5px solid currentColor;
  border-right: 5px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  transition: transform 180ms ease;
}

.certonal-solution__trigger:hover .certonal-solution__arrow,
.certonal-solution__trigger:focus-visible .certonal-solution__arrow {
  transform: translate(5px, -50%) rotate(45deg);
}

.certonal-solution__trigger:focus-visible {
  outline: 3px solid var(--certonal-green);
  outline-offset: -4px;
}

/* Solution modals */
body.certonal-modal-open {
  overflow: hidden;
}

.certonal-modal[hidden] {
  display: none;
}

.certonal-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  padding: 24px;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.certonal-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.certonal-modal__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(0, 24, 52, 0.76);
  border: 0;
  appearance: none;
  cursor: default;
}

.certonal-modal__panel {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
  max-height: calc(100vh - 48px);
  padding: 50px 54px 52px;
  overflow-y: auto;
  color: var(--certonal-text);
  background: var(--certonal-white);
  border-top: 6px solid var(--certonal-green);
  border-radius: 12px;
  box-shadow: 0 26px 80px rgba(0, 18, 40, 0.38);
  transform: translateY(18px) scale(0.985);
  transition: transform 180ms ease;
}

.certonal-modal.is-open .certonal-modal__panel {
  transform: translateY(0) scale(1);
}

.certonal-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 50px;
  height: 50px;
  padding: 0 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--certonal-navy);
  background: var(--certonal-white);
  border: 2px solid var(--certonal-navy);
  border-radius: 50%;
  appearance: none;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.certonal-modal__close:hover,
.certonal-modal__close:focus-visible {
  color: var(--certonal-white);
  background: var(--certonal-green);
  border-color: var(--certonal-green);
}

.certonal-modal__close:focus-visible {
  outline: 3px solid var(--certonal-navy);
  outline-offset: 3px;
}

.certonal-modal__heading {
  padding-right: 58px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.certonal-modal__icon-wrap {
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--certonal-green);
  border: 2px solid currentColor;
  border-radius: 50%;
}

.certonal-modal__icon {
  width: 54px;
  height: 54px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.certonal-modal__brand {
  margin: 0 0 2px;
  font-family: "Certonal Bold", "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.certonal-modal__brand sup {
  position: relative;
  top: -0.25em;
  font-size: 0.5em;
  line-height: 0;
  vertical-align: baseline;
}

.certonal-modal__heading h2 {
  margin: 0;
  font-family: "Certonal Bold", "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-size: clamp(29px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
}

.certonal-modal__content {
  margin-top: 30px;
  padding-top: 26px;
  color: #233c58;
  border-top: 1px solid var(--certonal-line);
  font-size: 20px;
  line-height: 1.65;
}

.certonal-modal__content p {
  margin: 0;
}

.certonal-modal__content p + p {
  margin-top: 1em;
}

/* Performance benefits */
.certonal-benefits {
  background: var(--certonal-pale);
}

.certonal-benefits__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding-top: 48px;
  padding-bottom: 44px;
}

.certonal-benefit {
  min-height: 158px;
  padding: 0 17px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.certonal-benefit + .certonal-benefit {
  border-left: 1px solid #c6ccd2;
}

.certonal-benefit__icon {
  width: 68px;
  height: 68px;
  color: var(--certonal-navy);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.certonal-benefit__icon .icon-fill {
  fill: currentColor;
  stroke: none;
}

.certonal-benefit__icon .icon-knockout {
  fill: none;
  stroke: var(--certonal-white);
  stroke-width: 4;
}

.certonal-benefit__icon .icon-knockout--navy {
  stroke: var(--certonal-navy);
  stroke-width: 3;
}

.certonal-benefit h2 {
  max-width: 185px;
  margin: 15px auto 0;
  font-family: "Certonal Bold", "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-size: clamp(16px, 1.85vw, 20px);
  font-weight: 700;
  line-height: 1.27;
}

/* Footer */
.site-footer {
  color: var(--certonal-white);
  background: var(--certonal-navy-deep);
  border-top: 4px solid var(--certonal-green);
}

.site-footer__statement {
  padding: 27px 0 23px;
}

.site-footer__statement p {
  max-width: 960px;
  margin: 0 auto;
  font-size: clamp(20px, 2.5vw, 27px);
  line-height: 1.45;
  text-align: center;
}

.site-footer__legal {
  color: rgba(255, 255, 255, 0.72);
  background: rgba(0, 14, 31, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.site-footer__legal-inner {
  min-height: 58px;
  padding-top: 15px;
  padding-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 14px;
}

.site-footer__legal p {
  margin: 0;
}

.site-footer__legal a {
  text-decoration: none;
}

.site-footer__legal a:hover {
  color: var(--certonal-white);
}

.site-footer__legal span {
  margin: 0 8px;
}

/* Sensible defaults for any supporting WordPress pages */
.site-main {
  background: var(--certonal-white);
}

.site-main__inner,
.entry-content {
  width: 100%;
  max-width: 960px;
  margin-right: auto;
  margin-left: auto;
  padding: 55px var(--certonal-gutter);
}

.certonal-home.entry-content,
.certonal-home .entry-content {
  max-width: none;
  padding: 0;
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
  color: var(--certonal-navy);
  font-family: "Certonal Bold", "Avenir Next", "Segoe UI", Arial, sans-serif;
  line-height: 1.2;
}

.entry-content p,
.entry-content li {
  line-height: 1.65;
}

.entry-content a {
  color: var(--certonal-navy);
  text-decoration-color: var(--certonal-green);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.alignwide {
  max-width: var(--certonal-wrap);
  margin-right: auto;
  margin-left: auto;
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

@media (max-width: 920px) {
  .site-header__inner {
    min-height: 126px;
  }

  .site-header__brand .custom-logo {
    max-width: min(320px, 45vw);
    max-height: 58px;
  }

  .certonal-solution {
    grid-template-columns: minmax(210px, 29.5%) 76px minmax(0, 1fr) 38px;
    gap: 14px;
  }

  .certonal-solution__icon-wrap {
    width: 74px;
    height: 74px;
  }

  .certonal-solution__icon {
    width: 49px;
    height: 49px;
  }
}

@media (max-width: 760px) {
  :root {
    --certonal-gutter: 24px;
  }

  .site-header__inner {
    min-height: 108px;
    gap: 22px;
  }

  .site-header__contact {
    gap: 3px;
  }

  .certonal-hero {
    height: auto;
    min-height: 540px;
    padding: 34px 0;
  }

  .certonal-hero__inner {
    min-height: 472px;
  }

  .certonal-hero__panel {
    width: min(420px, 100%);
  }

  .certonal-applications__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .certonal-application {
    min-height: 150px;
    padding: 18px 14px;
  }

  .certonal-application:nth-child(odd) {
    border-left: 0;
  }

  .certonal-application:nth-child(n+3) {
    border-top: 1px solid #c8ced4;
  }

  .certonal-solution {
    grid-template-columns: 74px minmax(0, 1fr) 38px;
    gap: 15px;
    padding: 30px 0;
  }

  .certonal-solution:not(:last-child)::after {
    left: 0;
  }

  .certonal-solution__media {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }

  .certonal-solution__copy h2 {
    font-size: clamp(23px, 5vw, 30px);
  }

  .certonal-solution__copy p {
    font-size: clamp(18px, 3.8vw, 22px);
  }

  .certonal-modal__panel {
    padding: 46px 36px 42px;
  }

  .certonal-benefits__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .certonal-benefit {
    min-height: 165px;
    padding: 23px 16px;
  }

  .certonal-benefit:nth-child(odd) {
    border-left: 0;
  }

  .certonal-benefit:nth-child(n+3) {
    border-top: 1px solid #c6ccd2;
  }

  .certonal-benefit:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .site-footer__legal-inner {
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .site-header__inner {
    min-height: 98px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .site-header__brand .custom-logo {
    max-width: 190px;
    max-height: 46px;
  }

  .site-header__name {
    font-size: 32px;
  }

  .site-header__contact {
    align-items: flex-end;
    gap: 2px;
  }

  .site-header__phone {
    font-size: 21px;
  }

  .certonal-hero {
    min-height: 500px;
    background-position: 58% center;
  }

  .certonal-hero__inner {
    min-height: 432px;
  }

  .certonal-hero__panel {
    padding: 31px 29px 30px;
  }

  .certonal-hero__panel h1 {
    font-size: clamp(43px, 13vw, 58px);
  }

  .certonal-hero__panel p {
    font-size: 20px;
  }

  .certonal-application__icon {
    width: 70px;
    height: 70px;
  }

  .certonal-application h2 {
    font-size: 18px;
  }

  .certonal-solution {
    grid-template-columns: 62px minmax(0, 1fr) 30px;
    gap: 12px;
  }

  .certonal-solution__icon-wrap {
    width: 60px;
    height: 60px;
  }

  .certonal-solution__icon {
    width: 40px;
    height: 40px;
  }

  .certonal-solution__arrow {
    right: 5px;
    width: 18px;
    height: 18px;
    border-width: 4px 4px 0 0;
  }

  .certonal-modal {
    padding: 12px;
  }

  .certonal-modal__panel {
    max-height: calc(100vh - 24px);
    padding: 72px 24px 34px;
    border-radius: 9px;
  }

  .certonal-modal__close {
    top: 13px;
    right: 13px;
    width: 46px;
    height: 46px;
    font-size: 36px;
  }

  .certonal-modal__heading {
    padding-right: 0;
    align-items: flex-start;
    gap: 16px;
  }

  .certonal-modal__icon-wrap {
    width: 66px;
    height: 66px;
    flex-basis: 66px;
  }

  .certonal-modal__icon {
    width: 43px;
    height: 43px;
  }

  .certonal-modal__brand {
    font-size: 17px;
  }

  .certonal-modal__heading h2 {
    font-size: 27px;
  }

  .certonal-modal__content {
    margin-top: 24px;
    padding-top: 21px;
    font-size: 18px;
    line-height: 1.55;
  }

  .certonal-benefit h2 {
    font-size: 16px;
  }
}

@media (max-width: 420px) {
  .site-header__inner {
    flex-direction: column;
    justify-content: center;
    gap: 14px;
  }

  .site-header__contact {
    align-items: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
