/* --- CSS RESET & BASE --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  background: #1B2328;
  color: #F2F7F3;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: #62A440;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F2F7F3;
  text-decoration: underline;
}
img {
  max-width: 100%;
  height: auto;
}
ul, ol {
  padding-left: 1.4em;
  margin-bottom: 20px;
}
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #F2F7F3;
  font-weight: 700;
}
h1 { font-size: 2.25rem; margin-bottom: 20px; }
h2 { font-size: 1.75rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
h4, h5 { font-size: 1rem; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* --- HEADER --- */
header {
  width: 100%;
  background-color: #171E21;
  border-bottom: 1.5px solid #333e43;
  position: sticky;
  top: 0;
  z-index: 1040;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
}
header img {
  height: 44px;
  vertical-align: middle;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #F2F7F3;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.03em;
  position: relative;
  transition: color 0.2s;
  padding: 3px 0;
}
header nav a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #62A440;
  transition: width 0.2s;
  position: absolute;
  left: 0;
  bottom: -2px;
}
header nav a:hover::after, header nav a:focus::after {
  width: 100%;
}
.primary-cta {
  background: linear-gradient(90deg, #003E52 80%, #333e43 100%);
  color: #F2F7F3;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 28px;
  margin-left: 20px;
  border: 0;
  border-radius: 32px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.11);
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.28s, transform 0.13s, box-shadow 0.2s;
  text-shadow: 0 1.5px 4px #28343d50;
  outline: none;
  position: relative;
}
.primary-cta:hover, .primary-cta:focus {
  background: linear-gradient(88deg, #62A440 60%, #003E52 100%);
  color: #11181b;
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 6px 24px rgba(34, 54, 68, 0.17);
}

/* --- MOBILE HEADER NAV --- */
.mobile-menu-toggle {
  display: none;
  background: #232D31;
  color: #F2F7F3;
  border: none;
  font-size: 2.2rem;
  padding: 8px 14px;
  border-radius: 7px;
  margin-left: 16px;
  cursor: pointer;
  transition: background 0.16s;
  z-index: 1202;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #003E52;
  color: #62A440;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #232D31;
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.37s cubic-bezier(0.46, 0.03, 0.52, 0.96);
  box-shadow: 2px 0 24px 0 rgba(0,0,0,.32);
  padding: 28px 0 0 0;
  min-height: 100vh;
  width: 100vw;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #F2F7F3;
  font-size: 2rem;
  margin: 0 0 12px 20px;
  padding: 4px 12px;
  align-self: flex-start;
  cursor: pointer;
  transition: color 0.16s;
  z-index: 1201;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #62A440;
}
.mobile-nav {
  margin-left: 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-nav a {
  font-size: 1.09rem;
  padding: 10px 0;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  color: #F2F7F3;
  transition: color 0.2s, background 0.26s;
  border-radius: 12px;
  min-width: 215px;
  display: block;
  letter-spacing: 0.04em;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #003E52;
  color: #62A440;
}
@media (max-width: 1020px) {
  header .container nav,
  header .primary-cta {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1021px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* --- MAIN LAYOUT SECTIONS --- */
main {
  min-height: 72vh;
  margin-bottom: 52px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.hero {
  background: #232D31;
  border-bottom: 1.5px solid #384046;
  box-shadow: 0 3px 16px rgba(17, 19, 20, 0.13);
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 700px;
}
.text-section {
  background: rgba(27,35,40, 0.93);
  border: 1.5px solid #333e43;
  border-radius: 16px;
  padding: 32px 28px;
  margin-bottom: 24px;
  box-shadow: 0 2.5px 22px rgba(20, 25, 28, 0.11);
}

.text-section.contact-details ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
}
.text-section.contact-details li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.text-section.contact-details img {
  width: 22px;
  height: 22px;
  filter: grayscale(0.5) brightness(1.3);
}

/* --- CARDS & GRID FLEX LAYOUTS --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 20px 0 0 0;
  justify-content: space-between;
}
.feature {
  background: #212A2E;
  border-radius: 13px;
  box-shadow: 0 2.5px 18px rgba(25,44,50,0.10);
  border: 1px solid #313d45;
  padding: 28px 22px 24px 22px;
  margin-bottom: 20px;
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: box-shadow 0.23s, transform 0.20s, border 0.17s;
  position: relative;
}
.feature img {
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  filter: grayscale(0.29) contrast(1.1) drop-shadow(1px 2px 2px #000a);
}
.feature:hover, .feature:focus {
  box-shadow: 0 6px 34px #003E524f, 0 2.5px 18px rgba(25,44,50,0.14);
  border-color: #62A440;
  transform: translateY(-4px) scale(1.025);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: #232D31;
  border: 1px solid #333e43;
  border-radius: 14px;
  box-shadow: 0 2.5px 18px rgba(24,36,41,0.09);
  margin-bottom: 20px;
  padding: 22px 18px;
  position: relative;
  transition: box-shadow 0.21s, border 0.14s;
  flex: 1 1 280px;
  min-width: 220px;
  max-width: 380px;
}
.card:hover, .card:focus {
  border-color: #62A440;
  box-shadow: 0 8px 28px #003E524f;
}

.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;
}

.testimonial-card {
  background: #F2F7F3;
  color: #232D31;
  border-radius: 16px;
  border: 1.5px solid #ddd;
  box-shadow: 0 2px 12px #1b23282a;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  font-size: 1.07rem;
  flex-direction: column;
  position: relative;
  min-width: 230px;
  max-width: 600px;
  transition: box-shadow 0.22s, transform 0.19s, border 0.15s;
}
.testimonial-card p {
  color: #1B2328;
}
.testimonial-card span {
  color: #003E52;
  font-weight: 600;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 0.98rem;
  margin-top: 8px;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 6px 26px #003E522f;
  border-color: #003E52;
  transform: translateY(-2px) scale(1.013);
}

.blog-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  margin-top: 12px;
}
.blog-preview-list article {
  background: #232D31;
  border-radius: 13px;
  border: 1.5px solid #333e43;
  box-shadow: 0 2.5px 18px rgba(24,36,41,0.09);
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 380px;
  padding: 22px 20px 18px 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.20s, transform 0.17s, border 0.13s;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.blog-preview-list article h3 {
  font-size: 1.17rem;
  margin-bottom: 6px;
  color: #62A440;
}
.blog-preview-list article a {
  padding: 7px 0;
  font-weight: 600;
  color: #62A440;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border-radius: 9px;
  transition: background 0.18s, color 0.18s;
}
.blog-preview-list article a:hover, .blog-preview-list article a:focus {
  background: #62A440;
  color: #003E52;
  text-decoration: none;
}
.blog-preview-list article:hover, .blog-preview-list article:focus {
  border-color: #62A440;
  box-shadow: 0 6px 24px #62A44035;
  transform: translateY(-2px) scale(1.014);
}

/**** FEATURES: ADDITIONAL FLEX PATTERNS ****/
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- SPACING & SPECIAL LAYOUTS --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  .section,
  section {
    padding: 28px 6px;
    margin-bottom: 38px;
  }
  .content-wrapper,
  .text-section,
  .card,
  .testimonial-card {
    padding-left: 12px;
    padding-right: 12px;
  }
  .feature-grid,
  .card-container,
  .content-grid,
  .blog-preview-list,
  .testimonial-list {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
}

/* --- FOOTER --- */
footer {
  width: 100%;
  background: #171E21;
  border-top: 1.5px solid #333e43;
}
footer .container {
  flex-direction: row;
  justify-content: center;
  padding: 36px 16px;
}
footer .text-section {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-bottom: 0;
  color: #979C9E;
  align-items: flex-start;
  gap: 12px;
}
footer img {
  width: 40px;
  margin-bottom: 12px;
}
footer nav {
  margin-top: 14px;
}
footer nav a {
  color: #979C9E;
  font-size: 0.98rem;
  margin: 0 8px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  opacity: 0.95;
  transition: color 0.19s;
}
footer nav a:hover, footer nav a:focus {
  color: #62A440;
}

/* --- BUTTONS & INTERACTIVES --- */
button, .primary-cta {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.18s, color 0.17s, box-shadow 0.16s, transform 0.12s;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: #171E21;
  color: #F2F7F3;
  z-index: 1300;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 22px 30px;
  box-shadow: 0 -2px 22px 0 #000a;
  border-top: 2px solid #62A440;
  font-size: 0.99rem;
  animation: cookieBannerAppear 0.6s cubic-bezier(0.4,0,0.2,1);
  gap: 24px;
}
@keyframes cookieBannerAppear {
  from { opacity: 0; transform: translateY(76px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner-btns {
  display: flex;
  gap: 17px;
  align-items: center;
}
.cookie-banner button,
.cookie-banner .cta,
.cookie-banner .cookie-settings-btn {
  padding: 8px 18px;
  background: #003E52;
  color: #F2F7F3;
  border-radius: 24px;
  border: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-left: 2px;
  transition: background 0.19s, color 0.19s;
}
.cookie-banner .cookie-settings-btn {
  background: #62A440;
  color: #003E52;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #62A440;
  color: #003E52;
}
.cookie-banner .cookie-settings-btn:hover, .cookie-banner .cookie-settings-btn:focus {
  background: #003E52;
  color: #F2F7F3;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 19px 8px 11px 8px;
    font-size: 0.96rem;
  }
  .cookie-banner-btns {
    justify-content: flex-end;
  }
}

/* COOKIE SETTINGS MODAL */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 1350;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(11,18,22,0.28);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: cookieBackdropIn 0.3s cubic-bezier(0.4,0,0.2,1);
}
@keyframes cookieBackdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #1B2328;
  padding: 36px 30px 30px 30px;
  border-radius: 18px;
  box-shadow: 0 2.5px 34px #003E5215, 0 9px 46px #232D316c;
  max-width: 410px;
  width: 98vw;
  z-index: 1355;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-size: 1.01rem;
  color: #F2F7F3;
  animation: cookieModalIn 0.37s cubic-bezier(0.44,0.02,0.49,0.93);
}
@keyframes cookieModalIn {
  from { opacity: 0; transform: translateY(60px) scale(0.93); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal-close {
  position: absolute;
  top: 15px;
  right: 22px;
  background: none;
  border: none;
  color: #F2F7F3;
  font-size: 1.7rem;
  cursor: pointer;
  transition: color 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #62A440;
}
.cookie-modal h2 {
  margin-top: 0;
  margin-bottom: 9px;
  color: #F2F7F3;
  font-size: 1.35rem;
  font-weight: 700;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1rem;
}
.cookie-category-label {
  font-weight: 600;
  min-width: 120px;
}
.cookie-toggle-switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}
.cookie-toggle-switch input[type=checkbox] {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  left: 0;
  top: 0;
  width: 46px;
  height: 26px;
  background: #232D31;
  border-radius: 24px;
  transition: background 0.2s;
  border: 1.3px solid #003E52;
}
.cookie-toggle-switch input:checked + .cookie-toggle-slider {
  background: #62A440;
  border-color: #62A440;
}
.cookie-toggle-slider:before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 2.5px;
  top: 2.5px;
  border-radius: 50%;
  background: #003E52;
  transition: transform 0.22s, background 0.19s;
  box-shadow: 0 3px 6px rgba(12,18,30,0.10);
}
.cookie-toggle-switch input:checked + .cookie-toggle-slider:before {
  transform: translateX(19px);
  background: #F2F7F3;
}
.cookie-category-disabled {
  opacity: 0.5;
}

.cookie-modal-actions {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 14px;
}
.cookie-modal-actions button {
  font-size: 1rem;
  font-weight: 600;
  border-radius: 22px;
  padding: 8px 18px;
  background: #003E52;
  color: #F2F7F3;
}
.cookie-modal-actions button:hover, .cookie-modal-actions button:focus {
  background: #62A440;
  color: #003E52;
}

/* Accessibility: Hide banner/modal when .hidden is set */
.cookie-banner.hidden, .cookie-modal-backdrop.hidden {
  display: none !important;
}

/* --- SCROLLBAR (dark industrial style) --- */
::-webkit-scrollbar {
  width: 11px;
  background: #1B2328;
}
::-webkit-scrollbar-thumb {
  background: #232D31;
  border-radius: 8px;
  border: 2.2px solid #003E52;
}
::-webkit-scrollbar-thumb:hover {
  background: #003E52;
}

/* --- UTIL CLASSES --- */
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px!important; }
.pb-20 { padding-bottom: 20px!important; }
.pt-20 { padding-top: 20px!important; }

/* --- FONT EMBEDDING (Fallbacks handled) --- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: local('Montserrat'), local('Montserrat-Regular'), url('https://fonts.gstatic.com/s/montserrat/v20/JTUQjIg1_i6t8kCHKm45_Qph.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto'), local('Roboto-Regular'), url('https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4mxM.woff2') format('woff2');
}

/* --- FONT SCALE for HEADINGS (responsive) --- */
@media (max-width: 600px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.21rem; }
  h3 { font-size: 1.06rem; }
}

/* --- VISUAL ACCENTS & SHADOWS (industrial, metallic) --- */
.feature, .card, .testimonial-card, .blog-preview-list article {
  border-radius: 13px;
  box-shadow: 0 2.5px 18px rgba(24,36,41,0.09), 0 0.7px 2px #8883 inset;
  border: 1px solid #313d45;
}

/* --- ANIMATION: Cards & Features --- */
.feature, .card, .testimonial-card, .blog-preview-list article {
  transition: box-shadow 0.19s, border 0.12s, transform 0.11s;
}
.feature:hover, .card:hover, .testimonial-card:hover, .blog-preview-list article:hover,
.feature:focus, .card:focus, .testimonial-card:focus, .blog-preview-list article:focus {
  border-color: #62A440;
  box-shadow: 0 6px 34px #003E5245, 0 2.5px 19px rgba(25,44,50,0.13);
  transform: scale(1.018);
}

/**** SPACING CONSISTENCY: 20px MIN ****/
.card-container > *, .feature-grid > *, .content-grid > *, .blog-preview-list > *, .testimonial-list > * {
  margin-bottom: 20px;
}

/**** PREVENTING OVERLAPS ****/
.card, .feature, .testimonial-card, .blog-preview-list article {
  margin-bottom: 20px;
}

/**** FOCUS VISIBLE ****/
:focus {
  outline: 2.5px solid #62A440;
  outline-offset: 0.5px;
}

/**** RESPONSIVE SHAPES & FLEX ADAPTATION ****/
@media (max-width:580px) {
  .testimonials {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    padding: 18px 6px;
    min-width: 95%;
  }
}

/**** HIDE SCROLL FOR OVERFLOW ON MOBILE NAV ****/
.mobile-menu {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/**** HIDE MAIN NAV ON MOBILE, SHOW BURGER ****/
@media (max-width: 1020px) {
  header nav, header .primary-cta {
    display: none!important;
  }
}

/**** MISC. --- Fix for icons in contact and footer ****/
.text-section img, footer .text-section img {
  vertical-align: middle;
  margin-right: 6px;
}

/**** INDUSTRIAL MODERN: METALLIC LINES ****/
hr {
  border: none;
  border-top: 2px solid #333e43;
  margin: 36px 0;
}

/**** FORMS (when applicable) ****/
input, select, textarea {
  border-radius: 8px;
  border: 1.5px solid #333e43;
  background: #232D31;
  color: #F2F7F3;
  padding: 10px 14px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 18px;
  outline: none;
  transition: border 0.19s;
}
input:focus, select:focus, textarea:focus {
  border-color: #62A440;
}
label {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  margin-bottom: 4px;
}

/* --- END --- */
