/* SPM Services — Header & Footer */

:root {
  --spm-green: #7eb848;
  --spm-green-dark: #6aa33c;
  --spm-ink: #1c2430;
  --spm-dark: #0b0d10;
  --spm-header-h: 100px;
  --font-head: "Outfit", "Segoe UI", sans-serif;
  --font-body: "Outfit", "Inter", "Segoe UI", sans-serif;
  --font-nav: "Outfit", "Segoe UI", sans-serif;
}

body.spm-theme {
  font-family: var(--font-body);
  overflow-x: hidden;
}

body.spm-theme:not(.spm-home):not(.spm-about):not(.spm-process):not(.spm-services):not(.spm-solutions):not(.spm-excel):not(.spm-404):not(.spm-cases-page) {
  padding-top: var(--spm-header-h);
}

body.spm-theme .spm-header a,
body.spm-theme .spm-footer a {
  text-decoration: none;
}

body.spm-theme .spm-header img,
body.spm-theme .spm-footer img {
  max-width: none;
  height: auto;
  display: block;
}

.spm-wrap {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header — matches original HTML (overlay, then sticky) */
.spm-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: var(--spm-header-h);
  background: rgb(20 26 24 / 29%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.spm-header.is-sticky {
  position: fixed;
  top: 0;
  background: rgba(16, 20, 18, 0.94);
  box-shadow: none;
}

/* Inner pages: always solid fixed header */
body.spm-theme:not(.spm-home):not(.spm-about):not(.spm-services):not(.spm-solutions):not(.spm-excel):not(.spm-404):not(.spm-cases-page) .spm-header {
  position: fixed;
  top: 0;
  background: rgba(16, 20, 18, 0.94);
}

/*
 * Admin bar: WP already adds html { margin-top: 32px }.
 * Only offset FIXED headers — do not offset absolute (causes white gap).
 */
body.admin-bar .spm-header.is-sticky,
body.admin-bar.spm-theme:not(.spm-home):not(.spm-about):not(.spm-services):not(.spm-solutions):not(.spm-excel):not(.spm-404):not(.spm-cases-page) .spm-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .spm-header.is-sticky,
  body.admin-bar.spm-theme:not(.spm-home):not(.spm-about):not(.spm-services):not(.spm-solutions):not(.spm-excel):not(.spm-404):not(.spm-cases-page) .spm-header {
    top: 46px;
  }
}

.spm-header-inner {
  height: var(--spm-header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.spm-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.spm-logo img {
  height: 75px !important;
  width: auto;
  max-width: none;
  display: block;
}

.spm-logo-text {
  color: #fff;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
}

.spm-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  margin-left: auto;
}

.spm-nav a {
  color: #ffffff !important;
  font-family: var(--font-nav);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}

.spm-nav a:hover,
.spm-nav a.is-active {
  color: var(--spm-green) !important;
}

.spm-nav .spm-btn-contact {
  color: var(--spm-green) !important;
  border: 1.5px solid var(--spm-green);
  border-radius: 4px;
  min-height: 38px;
  padding: 9px 18px;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-nav);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spm-nav .spm-btn-contact:hover {
  background: var(--spm-green);
  color: #fff !important;
}

.spm-menu-btn {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Footer */
.spm-footer {
  position: relative;
  background-color: #10161c;
  background-image: var(--spm-footer-bg, none);
  background-position: left bottom;
  background-size: 100% auto;
  background-repeat: no-repeat;
  color: #a7b0b8;
  padding: 48px 0 0;
  overflow: hidden;
  clear: both;
  font-family: "Josefin Sans", sans-serif;
  margin-top: 0 !important;
}

/* GeneratePress separate-containers adds ~20px under .site-main.
   The footer is outside .site, so that gap shows the black body background. */
body.spm-theme .site-main,
body.spm-theme.separate-containers .site-main,
body.spm-theme.separate-containers.no-sidebar .site-main,
body.spm-theme .site-main > *,
body.spm-theme .content-area,
body.spm-theme .site-content,
body.spm-theme #page {
  margin-bottom: 0 !important;
}

.spm-footer .spm-wrap {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
}

.spm-footer-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0 32px;
  margin-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.spm-footer-cta-row h2 {
  font-family: "Josefin Sans", sans-serif;
  color: #86c881;
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.spm-footer .spm-footer-cta-row p {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 400;
}

.spm-footer-brand p {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: #9aa3ab;
  max-width: 420px;
  text-align: justify;
}

.spm-footer a.spm-footer-schedule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 8px;
  background: #86c881;
  color: #fff !important;
  font-family: "Josefin Sans", sans-serif;
  font-size: 24px;
  font-weight: 500;
  white-space: nowrap;
}

.spm-footer a.spm-footer-schedule:hover {
  background: #78b86a;
  color: #fff !important;
}

.spm-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.55fr) 0.7fr 0.9fr 0.9fr;
  gap: 40px 32px;
  padding-bottom: 20px;
}

.spm-footer-brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 22px;
  align-items: start;
}

.spm-footer-brand-mark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.spm-footer-brand .spm-logo img {
  height: 106px !important;
  width: auto;
}

.spm-footer a.spm-social {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: #86c881;
  color: #000 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-bottom: 1rem;
}

.spm-footer a.spm-social:hover {
  background: #78b86a;
  color: #fff !important;
}

.spm-footer h4 {
  font-family: "Josefin Sans", sans-serif;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin: 6px 0 18px;
}

.spm-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.spm-footer li {
  margin-bottom: 12px;
  font-size: 18px;
}

.spm-footer li a {
  color: #ffffff !important;
  font-size: 16px;
}

.spm-footer a:hover {
  color: #fff !important;
}

.spm-footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.spm-footer-mail i {
  font-size: 16px;
  color: #c5ccd2;
}

.spm-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0 22px;
  font-size: 13px;
  color: #fff;
}

.spm-footer-bottom a {
  margin-left: 22px;
  color: #fff !important;
}

@media (max-width: 1199px) {
  .spm-nav {
    gap: 18px;
  }

  .spm-header .spm-wrap {
    width: min(1140px, calc(100% - 32px));
  }
}

@media (max-width: 1099px) {
  .spm-menu-btn {
    display: inline-flex;
  }

  .spm-nav {
    display: none;
    position: absolute;
    top: var(--spm-header-h);
    left: 0;
    right: 0;
    background: #0b0d10;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px 24px;
    gap: 16px;
  }

  .spm-nav.is-open {
    display: flex;
  }

  .spm-nav .spm-btn-contact {
    margin-top: 6px;
  }
}

@media (max-width: 991px) {
  .spm-footer-grid {
    grid-template-columns: 1fr 1fr; 
    gap: 28px 20px;
  }

  .spm-footer-cta-row,
  .spm-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
    
  .spm-footer-bottom {
    flex-direction: column;
    align-items: center !important;
  }


  .spm-footer-brand {
    grid-template-columns: 1fr;
    grid-column: 1 / -1;
  }
}
@media screen and (max-width: 767px) and (orientation: landscape) {  
    .spm-footer-cta-row , .spm-footer-bottom {
    flex-direction: row !important;
    align-items: flex-start;
  }
  
}
@media screen and (max-width: 991px) and (orientation: landscape) {  
.spm-footer-grid {
grid-template-columns: 1fr !important;
}
 
}
