/* ------------------- CSS RESET & NORMALIZE ------------------- */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F2F2F5;
  color: #222c3a;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  min-height: 100vh;
  font-size: 16px;
}
*, *::before, *::after {
  box-sizing: inherit;
}
ul, ol {
  margin-left: 1.5em;
}
ul ul, ol ol, ul ol, ol ul {
  margin-bottom: 0;
}
a {
  color: #182350;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #48A57F;
  text-decoration: underline;
}
img {
  max-width: 100%;
  display: block;
}
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

/* ------------------ BRAND & TYPOGRAPHY SYSTEM -------------------- */
:root {
  --primary: #182350;
  --secondary: #48A57F;
  --accent: #F2F2F5;
  --dark: #101628;
  --gray: #dde1ea;
  --light: #fff;
  --card: #fff;
  --shadow: 0 4px 32px 0 rgba(24,35,80,0.06),0 1.5px 6px 0 rgba(28,30,37,0.05);
  --radius: 10px;
  --gap: 24px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

body, .body-text {
  font-family: var(--font-body);
  color: #222c3a;
  font-size: 16px;
  line-height: 1.7;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; line-height: 1.12; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.4rem; margin-bottom: 14px; color: var(--dark); }
h4 { font-size: 1.18rem; margin-bottom:12px; }
h5 { font-size: 1rem; margin-bottom: 10px; }
h6 { font-size: 0.93rem; margin-bottom: 8px; color: var(--secondary);}
p, ul, ol { margin-bottom: 18px; }
strong { font-weight: 600; }

/* -------------------- UTILITY CLASSES & CONTAINERS ------------------ */
.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section { 
  margin-bottom: 60px; 
  padding: 40px 20px; 
  background: none;
  width: 100vw;
  box-sizing: border-box;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 340px;
  min-width: 260px;
  max-width: 420px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 8px 40px 0 rgba(24,35,80,0.13),0 2.5px 9px 0 rgba(28,30,37,0.09);
  transform: translateY(-2px) scale(1.015);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

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

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  flex: 1 1 330px;
  min-width: 240px;
  max-width: 410px;
  color: #182350;
}
.testimonial-card p {
  font-size: 1.08rem;
  margin-bottom: 6px;
  color: #182350;
}
.testimonial-card span {
  font-size: 0.98rem;
  font-style: italic;
  color: #264062;
}

.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

ul, ol {
  padding-left: 1.1em;
}
ul li, ol li {
  margin-bottom: 10px;
  line-height: 1.6;
}
ul li:last-child, ol li:last-child { margin-bottom: 0; }

/* ------------------- HEADER, NAVIGATION, MOBILE MENU -------------- */
header {
  width: 100vw;
  background: var(--accent);
  border-bottom: 1px solid #dde1ea;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px 0 rgba(24,35,80,0.03);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 20px 0px;
  width: 100%;
}
.main-nav > a {
  color: var(--primary);
  font-size: 1.02rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 7px;
  transition: background .18s, color .19s;
  display: flex;
  align-items: center;
}
.main-nav > a:hover,
.main-nav > a:focus {
  background: var(--secondary);
  color: #fff;
  text-decoration: none;
}
.main-nav img {
  height: 34px;
  width: auto;
  margin-right: 10px;
}
.btn-primary {
  background: var(--primary);
  color: #fff !important;
  border-radius: 7px;
  padding: 10px 22px;
  font-weight: 700;
  box-shadow: 0 1px 3px 0 rgba(24,35,80,0.05);
  margin-left: 12px;
  transition: background .2s, box-shadow .2s, color .2s;
  border: none;
  font-family: var(--font-display);
  text-align: center;
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--secondary);
  color: #fff !important;
  box-shadow: 0 4px 22px 0 rgba(24,35,80,0.11);
  outline: none;
}
.btn-secondary {
  background: var(--secondary);
  color: #fff !important;
  border-radius: 7px;
  padding: 10px 22px;
  font-weight: 600;
  border: none;
  margin-top: 7px;
  margin-bottom: 0;
  font-family: var(--font-display);
  box-shadow: 0 1px 3px 0 rgba(24,35,80,0.04);
  text-align: center;
  transition: background .18s, box-shadow .18s, color .18s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--primary);
  color: #fff !important;
  box-shadow: 0 6px 18px 0 rgba(24,35,80,0.10);
}

.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  z-index: 110;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--secondary);
}

.mobile-menu {
  position: fixed;
  left: 0; 
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24,35,80,0.97);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.82,.04,.45,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 24px 0 0;
  background: none;
  color: #fff;
  font-size: 2.3rem;
  border: none;
  cursor: pointer;
  transition: color 0.14s;
  z-index: 211;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {color: var(--secondary);}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  margin-top: 48px;
  align-items: flex-start;
  padding: 0 32px;
}
.mobile-nav a {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.3rem;
  padding: 16px 0;
  border-radius: 8px;
  width: 100%;
  display: inline-block;
  transition: background 0.14s, color .15s;
}
.mobile-nav a:hover,
.mobile-nav a:focus { background: var(--secondary); color: #fff; text-decoration: none; }

/* ----------- HERO & SECTIONS (HOMEPAGE & OTHERS) ----------- */
.hero {
  background: var(--primary);
  padding: 70px 0 60px 0;
  color: #fff;
  width: 100vw;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 340px;
}
.hero .content-wrapper {
  max-width: 700px;
  color: #fff;
}
.hero h1 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 2.6rem;
  line-height: 1.16;
}
.hero p {
  color: #e7eaf3;
  font-size: 1.18rem;
  margin-bottom: 30px;
}
.hero .btn-primary {
  margin-top: 8px;
  font-size: 1.15rem;
  padding: 14px 32px;
}

.features {
  background: #F2F2F8;
  border-top: 1px solid #dde1ea;
  border-bottom: 1px solid #dde1ea;
  padding: 48px 0px;
}
.features .content-wrapper {
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
}
.features h2 { color: var(--primary); }
.features ul {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding: 0;
  list-style: none;
  margin: 0;
}
.features li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  flex: 1 1 230px;
  min-width: 180px;
  max-width: 270px;
  gap: 10px;
  margin-bottom: 0px;
  transition: box-shadow .16s, transform .15s;
}
.features li:hover {box-shadow:0 8px 32px 0 rgba(24,35,80,0.11),0 2px 8px 0 rgba(28,30,37,0.04);transform: translateY(-3px) scale(1.022);}
.features li img {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  filter: brightness(0) saturate(100%) invert(13%) sepia(80%) saturate(1166%) hue-rotate(196deg) brightness(98%) contrast(97%);
}
.features li strong {
  color: var(--primary);
  font-size: 1.11rem;
  margin-bottom: 4px;
}

/* ---- Home/Content Section Patterns ---- */
.services-overview, .technology-highlight, .sustainability-teaser, .about-intro, .contact-teaser {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.services-overview h2, .technology-highlight h2, .sustainability-teaser h2, .about-intro h2, .contact-teaser h2 {
  color: var(--primary);
}
.services-overview ul, .technology-highlight ul, .sustainability-teaser ul, .about-intro ul, .contact-teaser ul {
  list-style: disc inside;
}
/* ----------------- FOOTER ------------------- */
footer {
  background: var(--primary);
  color: #fff;
  padding: 42px 0 22px 0;
  box-sizing: border-box;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.footer-nav nav {
  display: flex;
  gap: 26px;
  margin-bottom: 12px;
}
.footer-nav a {
  color: #cdd6ea;
  font-size: 1rem;
  transition: color .14s;
  padding: 6px 0;
}
.footer-nav a:hover,
.footer-nav a:focus { color: var(--secondary); text-decoration: underline; }
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  font-size: 1.05rem;
}
.footer-contact img {
  vertical-align: middle;
  margin-right: 7px;
  height: 20px;
  width: 20px;
  filter: brightness(0) saturate(100%) invert(53%) sepia(55%) saturate(245%) hue-rotate(174deg) brightness(104%) contrast(105%);
}
.footer-contact div { margin-bottom: 0; display: flex; align-items: center; gap: 6px;}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.footer-brand img {
  width: 36px;
  height: 36px;
  filter: brightness(0) invert(1);
}
.footer-brand span {
  color: #cdd6ea;
  font-size: 1rem;
}

/* ----------------- COOKIE CONSENT BANNER ----------------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #222c3a;
  color: #fff;
  z-index: 2100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 20px 16px;
  box-shadow: 0 -2px 20px 0 rgba(24,35,80,0.09);
  gap: 20px;
  animation: cookie-slide 0.6s cubic-bezier(.61,-0.15,.25,1.13);
}
@keyframes cookie-slide {
  0% { transform: translateY(100%); opacity:0.3; }
  90% { opacity:1; }
  100% {transform: translateY(0); opacity:1;}
}
.cookie-banner p {
  margin: 0 24px 0 0;
  color: #e3e9f2;
  flex: 3 1 320px;
  font-size: 1.04rem;
}
.cookie-banner .btn-cookie {
  background: var(--primary);
  color: #fff;
  border-radius: 7px;
  font-size: 1rem;
  padding: 10px 22px;
  margin-right: 10px;
  border: none;
  font-weight: 600;
  transition: background .16s, color .16s, box-shadow .14s;
  box-shadow: 0 2px 10px 0 rgba(24,35,80,0.07);
}
.cookie-banner .btn-cookie:hover, .cookie-banner .btn-cookie:focus {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 8px 16px 0 rgba(24,35,80,0.13);
}

.cookie-banner .btn-cookie-settings {
  background: none;
  color: var(--secondary);
  border: 1.5px solid var(--secondary);
  margin: 0 10px 0 0;
  padding: 9px 22px;
  border-radius: 7px;
  font-weight: 600;
  transition: background .18s, color .17s, border-color .19s;
}
.cookie-banner .btn-cookie-settings:hover, .cookie-banner .btn-cookie-settings:focus {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}

/* COOKIE MODAL OVERLAY */
.cookie-modal-overlay {
  position: fixed;
  left:0; top:0; width:100vw; height:100vh;
  background: rgba(24,35,80,0.70);
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in-cookie 0.3s;
}
@keyframes fade-in-cookie { from {opacity:0;} to {opacity:1;} }

.cookie-modal {
  background: #fff;
  color: #222c3a;
  border-radius: 16px;
  min-width: 320px;
  max-width: 98vw;
  width: 400px;
  box-shadow: 0 6px 44px 0 rgba(24,35,80,0.18);
  padding: 36px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: cookie-pop .5s cubic-bezier(.54,.03,.39,1.46);
  position: relative;
}
@keyframes cookie-pop {
  0% { transform: scale(0.90); opacity:0; }
  65% {transform: scale(1.04);}
  100% {transform: scale(1.0); opacity:1;}
}
.cookie-modal h3 {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.16rem;
  margin-bottom: 7px;
}
.cookie-modal .category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 1rem;
}
.cookie-modal .category label {
  font-weight: 500;
  color: var(--primary);
}
.cookie-modal .btn-cookie {
  width: auto;
  margin: 14px 6px 0 0;
}
.cookie-modal .btn-cookie-cancel {
  background: none;
  color: var(--secondary);
  border: none;
  margin: 14px 6px 0 0;
  font-size: 1rem;
  padding: 8px 18px;
  border-radius: 7px;
  font-weight: 600;
  transition: background .13s, color .15s;
}
.cookie-modal .btn-cookie-cancel:hover,
.cookie-modal .btn-cookie-cancel:focus { background: #dde1ea; color: var(--primary);}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  background: none;
  color: #182350;
  font-size: 1.36rem;
  border: none;
  cursor: pointer;
  z-index: 10;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus { color: var(--secondary);}

/* Cookie Switch Toggles */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #dde1ea;
  border-radius: 24px;
  transition: background 0.14s;
}
.cookie-switch input:checked + .cookie-switch-slider {
  background: var(--secondary);
}
.cookie-switch-slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 3px; top: 3px;
  border-radius: 50%;
  background: #fff;
  transition: transform .14s;
  box-shadow: 0 0.5px 1px 0 rgba(24,35,80,0.08);
}
.cookie-switch input:checked + .cookie-switch-slider:before {
  transform: translateX(20px);
}

/* ---------------- RESPONSIVE DESIGN ------------------- */
@media (max-width: 1200px) {
  .container { max-width: 96vw; }
  .hero .container { min-height: 240px; }
}
@media (max-width: 992px) {
  .main-nav {
    gap: 10px;
    font-size: 0.97rem;
  }
  .features ul,
  .testimonial-grid {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .container { max-width: 99vw; }
}
@media (max-width: 768px) {
  .main-nav { display: none !important; }
  .mobile-menu-toggle { display: flex !important; }
  .container { padding-left:10px; padding-right:10px; }
  .hero {
    padding: 36px 0 26px 0;
  }
  .hero h1 {
    font-size: 1.50rem;
  }
  .hero .container { min-height: 120px; }
  .features ul {
    flex-direction: column;
    gap: 16px;
  }
  .features li {
    max-width: 100%;
    min-width: 0;
  }
  .testimonial-grid {
    flex-direction: column;
    gap: 14px;
  }
  .card-container, .content-grid {
    flex-direction: column !important;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column !important;
    gap: 19px;
    align-items: flex-start;
  }
  .footer-contact {
    flex-direction: column;
    gap: 12px;
  }
  .footer-nav nav {
    flex-direction: column;
    gap: 12px;
  }
  .card {
    min-width: 0;
    max-width: 100%;
  }
  .testimonial-card {
    min-width: 0;
    max-width: 98vw;
  }
  .section {
    padding: 26px 6px;
    margin-bottom: 40px;
  }
  .services-overview, .technology-highlight, .sustainability-teaser, .about-intro, .contact-teaser {
    padding: 26px 6px;
    margin-bottom: 36px;
  }
}
@media (max-width: 520px) {
  .hero h1 { font-size: 1.16rem; }
  .footer-contact { font-size: 0.98rem; }
}

/* --------- MISC UI IMPROVEMENTS & INTERACTIONS ---------- */
input, textarea {
  transition: box-shadow .15s, border-color .14s;
  border-radius: 6px;
  border: 1.5px solid #dde1ea;
  padding: 12px 8px;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 2px 8px 0 rgba(24,35,80,0.11);
}

::-webkit-input-placeholder, ::placeholder {
  color: #b1b7c9;
  font-size: 1rem;
}

button {
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  transition: box-shadow .13s, background .16s, color .13s;
}

/* --------------- VISUAL HIERARCHY SPACING ------------ */
.section + .section, .section + section,
section + .section, section + section,
.card + .card, .card-container + .card-container, .text-section + .text-section {
  margin-top: 40px;
}

/****** Hide elements with .hidden ******/
.hidden { display: none !important; }
