/* One-page layout fixes (not run through PurifyCSS) */

/* Unified vertical rhythm: gap between sections = --section-space */
.one-page-site {
  --section-space: 64px;
  --section-space-half: calc(var(--section-space) / 2);
}

@media (min-width: 768px) {
  .one-page-site {
    --section-space: 72px;
  }
}

@media (min-width: 1024px) {
  .one-page-site {
    --section-space: 80px;
  }
}

/* Cancel conflicting margins from legacy homepage styles */
.one-page-site #contact.one-page-contact,
.one-page-site #contact.one-page-contact.one-page-section {
  margin-top: 0 !important;
}

/* Hero — keep top padding for header; bottom matches other section gaps */
.one-page-site #hero.intro--homepage {
  padding-bottom: var(--section-space-half) !important;
}

/* Standard content sections (half + half = one full gap between neighbors) */
.one-page-site #services.one-page-section,
.one-page-site #cases.case-studies--homepage,
.one-page-site #cases.case-studies--homepage.common-block,
.one-page-site #reviews.reviews--homepage,
.one-page-site #contact.one-page-contact.one-page-section {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: var(--section-space-half) !important;
  padding-bottom: var(--section-space-half) !important;
}

/* Footer: rows aligned — company | Privacy title, address | PIPEDA text, email | cookies */
.one-page-site .one-page-footer .footer-main {
  padding: 24px 0;
}

.one-page-site .one-page-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
}

.one-page-site .one-page-footer__logo {
  margin: 0 0 6px;
}

.one-page-site .one-page-footer__company {
  margin: 0;
}

.one-page-site .one-page-footer__legal-title {
  margin: 0;
  font-size: 16px;
  line-height: 26px;
  font-weight: 700;
}

.one-page-site .one-page-footer__address,
.one-page-site .one-page-footer__email {
  margin: 0;
}

.one-page-site .one-page-footer__legal-text {
  margin: 0;
  font-size: 16px;
  line-height: 26px;
  font-weight: 500;
  color: #0f0f0f;
}

.one-page-site .one-page-footer__legal-text a {
  color: #0e96a7;
  text-decoration: underline;
}

@media (min-width: 768px) {
  .one-page-site .one-page-footer__inner {
    grid-template-columns: minmax(220px, 300px) 1fr;
    column-gap: 40px;
    row-gap: 10px;
  }

  .one-page-site .one-page-footer__logo {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 4px;
  }

  .one-page-site .one-page-footer__company {
    grid-column: 1;
    grid-row: 2;
  }

  .one-page-site .one-page-footer__legal-title {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
  }

  .one-page-site .one-page-footer__address {
    grid-column: 1;
    grid-row: 3;
    align-self: start;
  }

  .one-page-site .one-page-footer__inner > .one-page-footer__legal-text:first-of-type {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
  }

  .one-page-site .one-page-footer__email {
    grid-column: 1;
    grid-row: 4;
    align-self: start;
  }

  .one-page-site .one-page-footer__inner > .one-page-footer__legal-text:last-of-type {
    grid-column: 2;
    grid-row: 4;
    align-self: start;
  }
}

.one-page-site .one-page-footer .footer-bottom {
  padding: 12px 0 16px;
}

.one-page-site .one-page-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.one-page-site .one-page-footer__bottom .footer-policy {
  margin: 0;
}

/* About Emphasoft (teal block) */
.one-page-site .about-us-block {
  padding-top: var(--section-space-half) !important;
  padding-bottom: var(--section-space-half) !important;
  overflow: visible;
}

/* Stats strip — overlaps About; gap to Reviews = half + half */
.one-page-site .about-us-digits--standalone {
  position: relative !important;
  bottom: auto !important;
  width: 100%;
  margin-top: calc(-80px + 3cm);
  margin-bottom: var(--section-space-half) !important;
  padding: 40px !important;
  z-index: 2;
  border-radius: 16px !important;
  box-shadow:
    0 8px 9px rgba(0, 0, 0, 0.06),
    0 20px 26px rgba(0, 0, 0, 0.05),
    0 -8px 9px rgba(0, 0, 0, 0.06),
    0 -20px 26px rgba(0, 0, 0, 0.05) !important;
}

@media (min-width: 768px) {
  .one-page-site .about-us-digits--standalone {
    margin-top: calc(-104px + 3cm);
  }
}

@media (min-width: 1024px) {
  .one-page-site .about-us-digits--standalone {
    margin-top: calc(-100px + 3cm);
  }
}

/* Vertically center numbers and labels inside the stats strip */
.one-page-site .about-us-digits--standalone .about-us-digits-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
}

.one-page-site .about-us-digits--standalone .digits-slider.owl-carousel {
  width: 100%;
}

.one-page-site .about-us-digits--standalone .digits-slider .owl-stage {
  display: flex !important;
  align-items: center !important;
}

.one-page-site .about-us-digits--standalone .digits-slider .owl-item {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.one-page-site .about-us-digits--standalone .about-us-digits-item {
  align-items: center !important;
  justify-content: center;
  margin-bottom: 0 !important;
}

.one-page-site .about-us-digits--standalone .about-us-digits-item__number,
.one-page-site .about-us-digits--standalone .about-us-digits-item__text {
  margin-top: 0;
  margin-bottom: 0;
}

/* Inline contact form (same layout as modal) */
.one-page-site .one-page-contact__card--inline {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 10px 10px 5px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  padding: 20px;
  overflow: visible;
}

@media (min-width: 768px) {
  .one-page-site .one-page-contact__card--inline {
    display: flex;
    padding: 40px;
  }

  .one-page-site .one-page-contact__card--inline .contact-form-info {
    flex: 0 0 280px;
    margin-right: 40px;
    margin-bottom: 0;
  }

  .one-page-site .one-page-contact__card--inline .contact-form-wrapper {
    flex: 1;
    min-width: 0;
  }
}

@media (min-width: 1024px) {
  .one-page-site .one-page-contact__card--inline .contact-form-info {
    flex: 0 0 320px;
  }
}

.one-page-site .one-page-contact__success {
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #eaf5f6;
  border-radius: 12px;
  color: #0e96a7;
  font-weight: 600;
}

.one-page-site .one-page-contact .contact-form-title {
  font-size: 28px;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .one-page-site .one-page-contact .contact-form-title {
    font-size: 32px;
  }
}

.one-page-site .one-page-contact .form-submit-wrap .new-button {
  width: 100%;
}

.one-page-site .one-page-contact .iti {
  width: 100%;
}

.one-page-site .one-page-contact .iti input.form-item {
  width: 100%;
  padding-left: 52px;
}

/* Privacy checkbox: vertically centered with label text */
.one-page-site .one-page-contact .checkbox-container--contact-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 0;
}

.one-page-site .one-page-contact .checkbox-container--contact-inline .checkbox-mark {
  position: static;
  flex-shrink: 0;
  margin: 0;
}

.one-page-site .one-page-contact .checkbox-container--contact-inline .checkbox-hidden {
  position: absolute;
  left: 0;
  top: 50%;
  width: 25px;
  height: 25px;
  margin: 0;
  transform: translateY(-50%);
  z-index: 1;
  cursor: pointer;
}

.one-page-site .one-page-contact .checkbox-container--contact-inline .checkbox-container__label {
  flex: 1;
  line-height: 16px;
}

.one-page-site .one-page-contact .checkbox-container--contact-inline .checkbox-mark:after {
  top: 50%;
  left: 9px;
  margin-top: -9px;
}
