/* ---------------------------------------------
  CSS RESET & NORMALIZE FOR MONOCHROME SOPHISTICATED
----------------------------------------------- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*, *:before, *:after {
  box-sizing: inherit;
  outline: none;
}

body {
  min-height: 100vh;
  color: #1A2732;
  background: #fff;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-color: #fff;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #1A2732;
  text-decoration: none;
  transition: color .2s cubic-bezier(.77,0,.18,1);
}
a:hover, a:focus {
  color: #3AC3A9;
  transition: color .2s cubic-bezier(.77,0,.18,1);
}

ul, ol {
  margin: 1.5em 0 1.5em 1.5em;
}
li {
  margin-bottom: 0.5em;
}
strong, b {
  font-weight: 700;
}

/* ---------------------------------------------
  BRAND TYPOGRAPHY — SOPHISTICATED HIERARCHY
----------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;600;700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  color: #1A2732;
  letter-spacing: -.02em;
  line-height: 1.12;
  margin-bottom: 0.6em;
}
h1 {
  font-size: 2.75rem;
  font-weight: 900;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow: 0 1px 0 #fff,0 2px 8px rgba(26, 39, 50, .04);
}
h4, h5, h6 {
  font-size: 1.125rem;
}
.subheadline {
  font-size: 1.15rem;
  color: #111;
  opacity: 0.88;
  margin-bottom: 36px;
  font-weight: 600;
}
.section strong {
  color: #1A2732;
  font-weight: 700;
}

/* ---------------------------------------------
  SPACING, CONTAINER & LAYOUT FLEXBOX PATTERNS
----------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(26,39,50,0.05),0 0px 2px #F0F4F9;
  transition: box-shadow .28s cubic-bezier(.33,1,.68,1);
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.card-container, .feature-grid, .case-grid, .case-briefs, .editorials, .partners, .team, .sensor-list, .news-feed {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 12px;
}

.card, .feature-grid > div, .case-grid > div, .case-briefs > div, .news-feed > div, .partners > div, .team > div, .sensor-list > div {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(26,39,50,0.08),0 1px 2px #EEE;
  padding: 28px 20px;
  position: relative;
  margin-bottom: 20px;
  flex: 1 1 285px;
  min-width: 275px;
  transition: box-shadow .24s cubic-bezier(.33,1,.68,1),transform .2s cubic-bezier(.77,0,.18,1);
}
.card:hover, .feature-grid > div:hover, .case-grid > div:hover, .case-briefs > div:hover, .news-feed > div:hover, .partners > div:hover, .team > div:hover, .sensor-list > div:hover {
  box-shadow: 0 6px 28px rgba(26,39,50,0.13), 0 2px 8px #e7e7e7;
  transform: translateY(-4px) scale(1.02);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* CRITICAL: Testimonials readable (light bg, dark text) */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 32px;
  background: #f8f9fb;
  color: #15181b;
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(26,39,50,0.05);
  min-width: 235px;
  flex: 1 1 280px;
  font-size: 1.1rem;
  margin-bottom: 20px;
  transition: box-shadow .22s cubic-bezier(.33,1,.68,1);
}
.testimonial-card strong {
  color: #1A2732;
  letter-spacing: .01em;
  font-weight: 700;
  font-size: 1rem;
  margin-top:10px;
}
.testimonial-card p {
  margin: 0;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --------------------------
  HEADER/NAVIGATION
--------------------------- */
header {
  background: #171b21;
  border-bottom: 1px solid #e0e4ea;
  margin-bottom: 0;
  width: 100%;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 0 20px;
  height: 80px;
  min-height: 70px;
  position:relative;
}
.site-logo img {
  height: 38px;
  width: auto;
  filter: grayscale(1) brightness(1.2);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #E6E9ee;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: .015em;
  padding: 7px 8px;
  position: relative;
  border-radius: 4px;
  transition: color .16s, background .25s cubic-bezier(.85,0,.19,1);
}
.main-nav a:not(.cta-button):hover, .main-nav a:not(.cta-button):focus {
  background: rgba(58,195,169,0.10);
  color: #3AC3A9;
  outline: none;
}
.cta-button {
  background: #3AC3A9;
  color: #222 !important;
  border: none;
  border-radius: 8px;
  padding: 10px 30px;
  font-weight: 900;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: .03em;
  font-size:1.02rem;
  margin-left: 14px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(58,195,169,0.10);
  transition: background .18s,cubic-bezier(.77,0,.18,1), color .17s;
}
.cta-button:hover, .cta-button:focus {
  background: #1A2732;
  color: #fff !important;
  box-shadow: 0 6px 22px rgba(58,195,169,0.18);
}

/* ---- Hamburger button ---- */
.mobile-menu-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 6px 12px 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  margin-left: 14px;
  display: none;
  z-index: 1051;
  transition: background .12s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: rgba(26,39,50,0.13);
}

/* Mobile nav overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #FCFCFD;
  box-shadow: 0 8px 44px 6px rgba(26,39,50, 0.22);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 32px 30px;
  transform: translateX(-110vw);
  transition: transform .38s cubic-bezier(.77,0,.18,1);
  will-change: transform;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #1A2732;
  cursor: pointer;
  border-radius: 8px;
  margin-bottom: 22px;
  padding: 3px 11px;
  transition: background .12s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #e5e9ee;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 8px;
  width: 100%;
}
.mobile-nav a {
  color: #1A2732;
  font-size: 1.20rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 13px 6px 13px 0;
  border-radius: 6px;
  transition: color .18s, background .25s cubic-bezier(.85,0,.19,1);
  width: 100%;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E8F9F5;
  color: #3AC3A9;
}

/* --------------------------
 FOOTER
--------------------------- */
footer {
  background: #171b21;
  color: #E6E9ee;
  padding: 38px 0 28px 0;
  margin-top: 60px;
  width: 100%;
  font-size: 1rem;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 50px;
}
footer img {
  height: 32px;
  width: auto;
  opacity: 0.93;
  margin-bottom: 12px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-nav a {
  color: #E6E9ee;
  font-weight: 600;
  font-size: 0.96rem;
  border-radius: 3px;
  padding: 2px 3px;
  transition: color .16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #3AC3A9;
}
.footer-contact {
  font-size: 0.97rem;
  line-height: 1.5em;
  color: #F6F7F9;
}
footer a.site-logo {
  margin-right: 20px;
}

/* ---------------------------------------------
  COMPONENT STYLES — VISUAL HIERARCHY
----------------------------------------------- */
.case-briefs, .case-grid, .partners, .team, .sensor-list, .news-feed {
  gap: 24px;
}
.filter-controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.filter-controls button {
  background: #FFF;
  color: #21242a;
  border: 1.5px solid #1A2732;
  border-radius: 7px;
  padding: 7px 17px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-right: 8px;
  margin-top: 6px;
  font-size: 0.98rem;
  cursor: pointer;
  box-shadow: 0 1px 4px #f2f2f2;
  transition: background .21s, color .19s, border .13s;
}
.filter-controls button:hover, .filter-controls button:focus {
  background: #1A2732;
  color: #fff;
  border-color: #1A2732;
}

.address-map, .contact-details {
  background: #f8f8fa;
  padding: 20px 24px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-details img {
  height: 17px;
  width: 17px;
  margin-right: 8px;
  vertical-align: middle;
  display: inline-block;
  filter: grayscale(1) contrast(1.2);
}
.contact-details p {
  font-size: 1rem;
  color: #181A1D;
  display: flex;
  align-items: center;
}

blockquote {
  border-left: 3px solid #1A2732;
  padding-left: 15px;
  color: #22282e;
  font-style: italic;
  margin: 8px 0 16px 0;
  font-size: 1.28rem;
  background: #F8F9FB;
  border-radius: 6px;
  padding: 13px 15px;
  line-height: 1.35;
}

/* ---------------------------------------------
  BUTTONS/MICRO-INTERACTIONS
----------------------------------------------- */
button, .cta-button, input[type="submit"] {
  border: none;
  border-radius: 8px;
  background: #3AC3A9;
  color: #111;
  font-size: 1.07rem;
  padding: 10px 26px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: background .17s, color .18s, box-shadow .13s;
  box-shadow: 0 2px 8px #e8f9f5;
  margin-top: 8px;
}
button:hover, button:focus, .cta-button:hover, .cta-button:focus, input[type="submit"]:hover {
  background: #1A2732;
  color: #fff;
  box-shadow: 0 3px 12px #CFEDE7;
}

/* -----------------
  COOKIES CONSENT
------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  background: #21282f;
  box-shadow: 0 -3px 18px rgba(26,39,50,0.19);
  color: #fff;
  z-index: 1600;
  padding: 22px 16px;
  font-size: 1.03rem;
  gap: 28px;
  transition: transform .29s cubic-bezier(.46,0,.54,1);
  will-change: transform;
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-banner button, .cookie-banner .cookie-btns button {
  padding: 7px 17px;
  font-size: 1rem;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: 0 1px 6px rgba(26,39,50,0.08);
  margin-top:0;
}
.cookie-banner button.accept {
  background: #3AC3A9;
  color: #15181b;
}
.cookie-banner button.reject {
  background: #EEE;
  color: #222;
}
.cookie-banner button.settings {
  background: #fff;
  color: #1A2732;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #1A2732;
  color: #fff;
}
/* COOKIE SETTINGS MODAL */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(26,39,50,.72);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.cookie-modal.open {
  opacity:1;
  pointer-events: auto;
}
.cookie-modal .cookie-modal-content {
  background: #F9FAFB;
  border-radius: 16px;
  padding: 38px 28px 30px 28px;
  display: flex;
  flex-direction: column;
  min-width: 340px;
  max-width: 95vw;
  box-shadow: 0 8px 44px rgba(26,39,50, 0.16),0 1px 12px #e7e7e7;
  color: #21282f;
  font-size: 1rem;
}
.cookie-modal .cookie-modal-content h3 {
  font-size: 1.40rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 18px;
  font-weight: 800;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 20px; right: 28px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #1A2732;
  cursor: pointer;
  transition: background .1s;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 26px 0 14px 0;
}
.cookie-modal .category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  font-size: 1.03rem;
}
.cookie-modal .category label {
  font-weight: 600;
  color:#1A2732;
  min-width: 160px;
  font-family:'Open Sans', Arial, sans-serif;
}
.cookie-modal .category input[type="checkbox"] {
  accent-color: #3AC3A9;
  width: 18px;
  height: 18px;
}
.cookie-modal .category input[disabled] {
  opacity: 0.85;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 22px;
}
.cookie-modal .cookie-modal-actions button {
  font-size: 1rem;
  padding: 7px 17px;
  border-radius: 6px;
  font-weight: 600;
}

/* ---------------------------------------------
  RESPONSIVE DESIGN (MOBILE FIRST)
----------------------------------------------- */
@media (max-width: 1023px) {
  .container {
    max-width: 820px;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .card-container, .case-briefs, .case-grid, .news-feed, .editorials, .partners, .team, .sensor-list {
    flex-direction: column;
    gap: 20px;
  }
  .testimonials {
    flex-direction: column;
    gap: 14px;
  }
}
@media (max-width: 768px) {
  header .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .container {
    max-width: 99vw;
    padding-left: 13px;
    padding-right: 13px;
  }
  .section {
    padding: 28px 6px;
    margin-bottom: 34px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.08rem; }
  header .container,
  footer .container {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .content-wrapper { gap:14px; }
  .address-map, .contact-details {
    padding: 15px 6px;
  }
  .testimonial-card{
    padding: 18px 14px;
    font-size: 1rem;
  }
}
@media (max-width: 520px) {
  .container {
    padding-left: 4px;
    padding-right: 4px;
  }
  .section { padding:11px 2px; }
}

/* Extra spacing for horizontal scrolling on all cards on small devices */
@media (max-width:400px) {
  .card, .feature-grid > div, .case-grid > div, .case-briefs > div, .news-feed > div, .partners > div, .team > div, .sensor-list > div, .testimonial-card {
    min-width:unset;
    padding: 10px 5px;
  }
}

/* ---------------------------------------------
  UTILITY / MICRO-ANIMATION / VISUAL DETAILS
----------------------------------------------- */
::selection {
  background: #3AC3A9;
  color: #fff;
}
html {
  scroll-behavior: smooth;
}
.fade-in {
  animation: fadeIn .8s cubic-bezier(.33,1,.68,1);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
[data-anim-text] {
  opacity: 0;
  animation: fadeIn .9s .15s cubic-bezier(.33,1,.68,1) forwards;
}

/* Hide visually but keep for screen readers */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Required gap and margin between all visual cards/sections (as per mandates) */
.card, .feature-grid > div, .case-grid > div, .case-briefs > div, .news-feed > div, .partners > div, .team > div, .sensor-list > div, .testimonial-card {
  margin-bottom: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .feature-grid, .case-briefs, .case-grid, .news-feed, .partners, .team, .sensor-list {
  gap: 24px;
}

/* VISUAL FOCUS for accessibility */
a:focus, button:focus, .cta-button:focus {
  outline: 2px solid #3AC3A9;
  outline-offset:2px;
  background: #FAFDFD;
}

::-webkit-input-placeholder { color: #A9B0B7; opacity: .9; }
::-moz-placeholder { color: #A9B0B7; opacity: .9; }
:-ms-input-placeholder { color: #A9B0B7; opacity: .9; }
::placeholder { color: #A9B0B7; opacity: .9; }

/*---------------------------------
 ESCAPE HATCH — NO grid/columns
-----------------------------------*/
/* Do NOT use any grid-*, columns, or column-count anywhere! */
/* All layouts are FLEXBOX only as above */
