/* CENmat design tokens — Elementor kit 5 + observed brand colors */
:root {
  --cenmat-blue: #1863DC;
  --cenmat-amber: #DC8D18;
  --cenmat-kit-primary: #6EC1E4;
  --cenmat-kit-secondary: #54595F;
  --cenmat-kit-text: #7A7A7A;
  --cenmat-kit-accent: #61CE70;
  --cenmat-black: #000000;
  --cenmat-orange: #FF9200;
  --cenmat-white: #FFFFFF;
  --cenmat-yellow: #FFE900;
  --cenmat-dark: #212121;
  --cenmat-gray: #d0d0d0;
  --cenmat-bg: #E6E6E6;
  --font-roboto: "Roboto", Sans-serif;
  --font-proxima: "proxima-n-w01-reg", Sans-serif;
}

@font-face {
  font-family: "proxima-n-w01-reg";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/Proxima-N-W01-Reg.woff2") format("woff2"),
       url("/fonts/Proxima-N-W01-Reg.woff") format("woff"),
       url("/wp-content/uploads/2022/01/Proxima-N-W01-Reg.woff2") format("woff2"),
       url("/wp-content/uploads/2022/01/Proxima-N-W01-Reg.woff") format("woff");
}


/* Elementor spacer widget (CSS not shipped in this static build's frontend bundle) */
.elementor-spacer {
  width: 100%;
}
.elementor-spacer .elementor-spacer-inner {
  height: var(--spacer-size, 0px);
}

/* Minimal Elementor layout primitives if frontend CSS gaps exist */
.elementor-section .elementor-container {
  display: flex;
  margin-right: auto;
  margin-left: auto;
  position: relative;
}
.elementor-column-gap-default > .elementor-column > .elementor-element-populated {
  padding: 10px;
}
.elementor-section-boxed > .elementor-container {
  max-width: 1140px;
}
.elementor-column {
  position: relative;
  min-height: 1px;
  display: flex;
}
.elementor-widget-wrap {
  position: relative;
  width: 100%;
  flex-wrap: wrap;
  align-content: flex-start;
}
.elementor-element-populated {
  display: flex;
  flex-direction: column;
}
.elementor-col-50 { width: 50%; }
.elementor-col-100 { width: 100%; }
.elementor-col-33 { width: 33.333%; }
.elementor-col-25 { width: 25%; }
.elementor-col-66 { width: 66.666%; }

@media (max-width: 767px) {
  .elementor-column { width: 100% !important; }
  .elementor-section .elementor-container { flex-wrap: wrap; }
}

/* Sticky site header (logo + hamburger stay while scrolling) */
.cenmat-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  pointer-events: none;
}
.cenmat-header .elementor-85,
.cenmat-header a,
.cenmat-header .elementor-icon {
  pointer-events: auto;
}
.cenmat-header .elementor-85 .elementor-element-7c50221 {
  /* keep logo/burger floating over hero like original Theme Builder sticky */
  position: relative;
  z-index: 1000;
}

/* Blog pages: opaque sticky header so cards/titles never show through logo */
body.page-id-1441 .cenmat-header,
body.cenmat-blog-post .cenmat-header {
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}


/* Non-home: cancel Elementor header negative margin that pulls content under the logo.
   Homepage (.home / page-id-843) and About (page-id-103) keep margin-bottom: -10% (-15% tablet) for hero overlay. */
body:not(.home):not(.page-id-843):not(.page-id-103) .elementor-85 .elementor-element-7c50221 {
  margin-bottom: 0 !important;
}
@media (max-width: 1024px) {
  body:not(.home):not(.page-id-843):not(.page-id-103) .elementor-85 .elementor-element-7c50221 {
    margin-bottom: 0 !important;
  }
}

/* Non-home: small clear gap under sticky header before main content */
body:not(.home):not(.page-id-843):not(.page-id-103) .site-main {
  padding-top: 0.75rem;
}

/* Menu popup — Elementor popup 130 lookalike (black right drawer) */
.cenmat-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  z-index: 100000;
  display: none;
  justify-content: flex-end;
  align-items: stretch;
}
.cenmat-popup-overlay.is-open,
.cenmat-popup-overlay:not([hidden]).is-open {
  display: flex !important;
}
.cenmat-popup-overlay[hidden] {
  display: none !important;
}
.cenmat-popup-panel {
  width: 411px;
  max-width: min(411px, 92vw);
  height: 100vh;
  background: #000;
  color: #fff;
  overflow: auto;
  padding: 50px;
  box-sizing: border-box;
  box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, 0.2);
  font-family: "proxima-n-w01-reg", Roboto, sans-serif;
}
.cenmat-popup-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cenmat-popup-list li {
  margin: 0;
}
.cenmat-popup-list a {
  display: block;
  color: #fff !important;
  text-decoration: none;
  font-size: 15px;
  font-weight: 300;
  padding: 4px 0;
  line-height: 1.6;
}
.cenmat-popup-list a:hover,
.cenmat-popup-list a:focus {
  color: #fff !important;
  opacity: 0.85;
}
.cenmat-popup-rule {
  width: 6%;
  height: 2px;
  background: #FF0059;
  margin: 14px 0;
}
.cenmat-popup-close {
  position: fixed;
  top: 1.1rem;
  right: 1.25rem;
  z-index: 100001;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* FAQ details polish */
.elementor-toggle-item, details.cenmat-faq-item {
  border-bottom: 1px solid #d0d0d0;
  margin: 0.5rem 0;
}
details.cenmat-faq-item > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.75rem 0;
  font-weight: 600;
}
details.cenmat-faq-item > summary::-webkit-details-marker { display: none; }

/* Blog index cards */
.cenmat-blog-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  max-width: 1100px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.cenmat-blog-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.cenmat-blog-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.cenmat-blog-card .meta {
  padding: 1rem 1.25rem 1.5rem;
}
.cenmat-blog-card h2 {
  font-family: var(--font-roboto);
  font-size: 1.15rem;
  color: #212121;
  margin: 0 0 0.5rem;
}
.cenmat-blog-card time {
  color: #7A7A7A;
  font-size: 0.85rem;
}

body {
  margin: 0;
  font-family: var(--font-roboto);
  color: #212121;
  background: #fff;
}
a { color: var(--cenmat-blue); }
img { max-width: 100%; height: auto; }

/* Non-home (excl. About): dark hamburger + logo. About has dark hero — keep white icons. */
body:not(.home):not(.page-id-843):not(.page-id-103) .elementor-85 .elementor-element-50b147f.elementor-view-default .elementor-icon,
body:not(.home):not(.page-id-843):not(.page-id-103) .elementor-85 .elementor-element-50b147f.elementor-view-framed .elementor-icon {
  color: #212121 !important;
  border-color: #212121 !important;
}
body:not(.home):not(.page-id-843):not(.page-id-103) .elementor-85 .elementor-element-50b147f.elementor-view-default .elementor-icon svg,
body:not(.home):not(.page-id-843):not(.page-id-103) .elementor-85 .elementor-element-50b147f.elementor-view-framed .elementor-icon svg {
  fill: #212121 !important;
}
/* White logo asset only — invert to dark on light blog/page backgrounds */
body:not(.home):not(.page-id-843):not(.page-id-103) .elementor-85 .elementor-element-2e10ced img {
  filter: brightness(0);
}
/* Mobile header uses black banner image — keep white logo/burger there */
@media (max-width: 767px) {
  body:not(.home):not(.page-id-843):not(.page-id-103) .elementor-85 .elementor-element-50b147f.elementor-view-default .elementor-icon,
  body:not(.home):not(.page-id-843):not(.page-id-103) .elementor-85 .elementor-element-50b147f.elementor-view-framed .elementor-icon {
    color: #FFFFFF !important;
    border-color: #FFFFFF !important;
  }
  body:not(.home):not(.page-id-843):not(.page-id-103) .elementor-85 .elementor-element-50b147f.elementor-view-default .elementor-icon svg,
  body:not(.home):not(.page-id-843):not(.page-id-103) .elementor-85 .elementor-element-50b147f.elementor-view-framed .elementor-icon svg {
    fill: #FFFFFF !important;
  }
  body:not(.home):not(.page-id-843):not(.page-id-103) .elementor-85 .elementor-element-2e10ced img {
    filter: none;
  }
}



/* About (page-id-103): dark purple hero — treat like Home for header overlay.
   Keep Elementor negative margin so purple hero runs under floating logo/burger
   with no grey (#E6E6E6) strip above. White logo/burger (excluded from dark-logo
   rules above via :not(.page-id-103)). */

/* About hero: contain decorative magenta ring / motion FX so it does not paint
   over the team photo section below. */
body.page-id-103 .elementor-103 .elementor-element-268f33e {
  overflow: hidden;
  isolation: isolate;
  position: relative;
  z-index: 0;
}

/* About team group photo: spacer (--spacer-size:575px) provides height; keep
   section isolated and use scroll attachment (fixed bleeds in this build). */
body.page-id-103 .elementor-103 .elementor-element-6950f9c {
  overflow: hidden;
  isolation: isolate;
  position: relative;
  z-index: 0;
  min-height: var(--about-team-photo-min-height, 575px);
}
body.page-id-103 .elementor-103 .elementor-element-6950f9c:not(.elementor-motion-effects-element-type-background),
body.page-id-103 .elementor-103 .elementor-element-6950f9c > .elementor-motion-effects-container > .elementor-motion-effects-layer {
  background-attachment: scroll !important;
  background-size: cover;
  background-position: center left;
  background-repeat: no-repeat;
}
body.page-id-103 .elementor-103 .elementor-element-6950f9c > .elementor-background-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 767px) {
  body.page-id-103 .elementor-103 .elementor-element-6950f9c {
    min-height: 206px; /* matches post-103 mobile spacer */
  }
}

/* About founders row: sit above any leftover bg bleed; clip column overlays */
body.page-id-103 .elementor-103 .elementor-element-3ca236e {
  overflow: hidden;
  isolation: isolate;
  position: relative;
  z-index: 1;
}
/* Founder portrait columns: ensure widget-wrap backgrounds actually paint */
body.page-id-103 .elementor-103 .elementor-element-975f73f > .elementor-widget-wrap,
body.page-id-103 .elementor-103 .elementor-element-9582899 > .elementor-widget-wrap,
body.page-id-103 .elementor-103 .elementor-element-90d2c47 > .elementor-widget-wrap {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
}

/* Homepage: sticky header + Elementor negative margin overlays the hero.
   Keep logo/burger floating over hero, but pad the full-height hero so the
   H1 ("economical…") is fully visible on load — not clipped under the header. */


/* Hash anchors: offset sticky header (~negative-margin Elementor header) */

/* Home hero: do NOT vertically center — sticky/overlay header was clipping "economical…" */
body.home .elementor-843 .elementor-element-a51f4c9.elementor-section-content-middle > .elementor-container > .elementor-column > .elementor-widget-wrap,
body.page-id-843 .elementor-843 .elementor-element-a51f4c9.elementor-section-content-middle > .elementor-container > .elementor-column > .elementor-widget-wrap {
  align-content: flex-start !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  padding-top: clamp(7.5rem, 14vh, 10rem) !important;
  box-sizing: border-box;
}
body.home .elementor-843 .elementor-element-a51f4c9.elementor-section-height-full,
body.page-id-843 .elementor-843 .elementor-element-a51f4c9.elementor-section-height-full {
  /* replace earlier padding-only attempt; content alignment handles clearance */
  padding-top: 0 !important;
  min-height: 100vh;
}
body.home .elementor-843 .elementor-element-af7bc59 .elementor-heading-title,
body.page-id-843 .elementor-843 .elementor-element-af7bc59 .elementor-heading-title {
  /* keep first line clear of floating logo/burger */
  scroll-margin-top: 6.5rem;
}
#top {
  scroll-margin-top: 0; /* Home menu uses / so page loads at scroll 0 */
}

#top,
#company,
#products,
#projects {
  scroll-margin-top: 140px;
}

/* Blog index (faq-2 / page-id-1441): clear sticky logo over “blog” title */
body.page-id-1441 .elementor.elementor-1441 {
  padding-top: 9.5rem !important;
}
body.page-id-1441 .elementor-heading-title,
body.cenmat-blog-post .entry-title,
.cenmat-post .entry-title {
  scroll-margin-top: 9rem;
}

/* New blog post article layout */
.cenmat-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 9.5rem 1.25rem 4rem;
}
.cenmat-post .entry-title {
  font-family: var(--font-proxima), var(--font-roboto), sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: #212121;
  margin: 0 0 0.5rem;
  line-height: 1.25;
}
.cenmat-post .posted-on {
  color: #7A7A7A;
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
}
.cenmat-post .entry-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
}
.cenmat-post .entry-content h2,
.cenmat-post .entry-content h3 {
  margin-top: 1.75rem;
  color: #212121;
}
.cenmat-post .entry-content p {
  margin: 0 0 1rem;
}
.cenmat-post .cenmat-cta {
  margin: 2.5rem 0 1rem;
  padding: 1.25rem 1.5rem;
  background: #f5f7fa;
  border-left: 4px solid var(--cenmat-blue);
}
.cenmat-post .cenmat-cta a {
  font-weight: 600;
}
.cenmat-blog-card .excerpt {
  color: #54595F;
  font-size: 0.9rem;
  margin: 0.5rem 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cenmat-blog-card .category {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cenmat-blue);
  margin-bottom: 0.35rem;
}
