/* --- CSS RESET & NORMALIZATION --- */
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;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img, svg {
  display: inline-block;
  max-width: 100%;
  vertical-align: middle;
  border: 0;
}
button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
input, textarea, select {
  font: inherit;
}

/* --- ROOT VARIABLES: COLORS & BRAND --- */
:root {
  --primary: #18435A;
  --secondary: #F4F7FA;
  --accent: #27A0A8;
  --dark-bg: #10151A;
  --mid-bg: #1B232B;
  --panel-bg: #222C35;
  --border-metal: #5B686F;
  --text-main: #F4F7FA;
  --text-mid: #BFC9D1;
  --text-dark: #22303A;
  --accent-hover: #157178;
  --shadow1: 0 4px 24px 0 rgba(10, 30, 44, 0.12);
  --shadow2: 0 1.5px 6px 0 rgba(26, 43, 55, 0.10);
  --radius-card: 16px;
  --radius-btn: 8px;
  --section-gap: 60px;
  --industrial-font: 'Montserrat', 'Roboto', Arial, sans-serif;
  --industrial-body: 'Roboto', Arial, sans-serif;
}
@media (max-width: 768px) {
  :root {
    --section-gap: 40px;
    --radius-card: 12px;
    --radius-btn: 7px;
  }
}

/* --- GLOBAL BASE STYLES --- */
html, body {
  background: var(--dark-bg);
  color: var(--text-main);
  font-family: var(--industrial-body);
  min-height: 100vh;
  font-size: 16px;
}
body {
  margin: 0;
  background: var(--dark-bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--industrial-font);
  color: var(--text-main);
  letter-spacing: 0.01em;
  margin-bottom: 16px;
  line-height: 1.1;
  font-weight: 700;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1.125rem; margin-bottom: 8px; }

p, ul, ol, address {
  font-size: 1rem;
  color: var(--text-mid);
  margin-bottom: 16px;
  line-height: 1.7;
}
strong, b { color: var(--accent); }

section {
  background: none;
  width: 100%;
}
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: none;
}
@media (max-width: 768px) {
  .container { padding-left: 12px; padding-right: 12px; }
}

/* ---- SPACING & FLEXBOX ALIGNMENT ---- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--panel-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow2);
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  max-width: 380px;
  border: 1.5px solid var(--border-metal);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(39, 160, 168, 0.11), var(--shadow1);
  border-color: var(--accent);
  transform: translateY(-4px) scale(1.01);
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F4F7FA;
  color: #22303A;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow2);
  margin-bottom: 20px;
  border-left: 6px solid var(--accent);
  font-size: 1.1rem;
  transition: box-shadow 0.18s, border-color 0.18s;
  min-width: 0;
}
.testimonial-card p {
  color: #10151A;
}
.testimonial-card strong { color: var(--primary); font-weight: 700; font-size: 1rem; margin-left: 16px; }
.testimonial-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 24px 0 rgba(24,67,90,0.11);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 24px;
  background: var(--panel-bg);
  border-radius: var(--radius-card);
}

/* FLEX LAYOUTS FOR GRIDS (Feature & Blog) */
.feature-grid, .blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div, .blog-list article {
  flex: 1 1 220px;
  min-width: 210px;
  max-width: 270px;
  background: var(--panel-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow2);
  border: 1.2px solid var(--border-metal);
  padding: 24px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.2s;
}
.feature-grid > div:hover, .blog-list article:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 28px 0 rgba(24,67,90,0.14), var(--shadow1);
  transform: translateY(-3px) scale(1.01);
  background: #25303D;
}
.feature-grid img, .blog-list article img {
  width: 40px; height: 40px;
  margin-bottom: 8px;
}

/* --- HERO/BANNER --- */
.hero {
  background: linear-gradient(120deg, #18435A 70%, #22303A 100%);
  padding: 80px 0 60px 0;
  color: var(--text-main);
}
.hero .container { max-width: 1180px; }
.hero .content-wrapper {
  gap: 24px;
  align-items: flex-start;
  max-width: 620px;
}
.hero h1 {
  font-size: 2.7rem;
  line-height: 1.08;
  font-family: var(--industrial-font);
}
.hero p { font-size: 1.2rem; color: var(--text-mid); }
.hero .cta-btn {
  margin-top: 14px;
}

@media (max-width: 900px) {
  .hero {
    padding: 50px 0 30px 0;
  }
  .hero h1 { font-size: 2.1rem; }
  .hero .content-wrapper { max-width: 97vw; }
}
@media (max-width: 600px) {
  .hero {
    padding: 38px 0 14px 0;
  }
  .hero h1 { font-size: 1.35rem; }
}

/* --- BUTTONS & CTA --- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--industrial-font);
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: var(--radius-btn);
  box-shadow: 0 3px 16px 0 rgba(39,160,168,0.09);
  border: none;
  letter-spacing: 0.01em;
  margin-top: 8px;
  transition: background 0.18s, color 0.15s, box-shadow 0.18s, transform 0.13s;
  cursor: pointer;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 6px 24px 0 rgba(21,113,120,0.16);
  transform: translateY(-2px) scale(1.02);
}

button, .btn, .mobile-menu-close {
  font-family: var(--industrial-font);
  font-size: 1rem;
  border-radius: var(--radius-btn);
  padding: 10px 22px;
  color: var(--text-main);
  border: 1.2px solid transparent;
  background: var(--panel-bg);
  transition: background 0.15s, color 0.15s, border-color 0.13s;
}
button:hover, .btn:hover, .mobile-menu-close:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}


/* --- NAVIGATION --- */
header {
  width: 100%;
  background: var(--mid-bg);
  box-shadow: 0 2px 14px 0 rgba(24, 67, 90, 0.06);
  position: relative;
  z-index: 100;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding: 18px 0 14px 0;
}
header nav a {
  font-family: var(--industrial-font);
  color: var(--text-mid);
  font-size: 1rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 4px;
  letter-spacing: 0.01em;
  transition: background 0.15s, color 0.13s;
  display: flex;
  align-items: center;
}
header nav a:hover, header nav a:focus {
  background: var(--accent);
  color: #fff;
}
header nav a.cta-btn {
  margin-left: auto;
  margin-right: 0;
  font-size: 1.09rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-btn);
  padding: 12px 28px;
  box-shadow: 0 1.5px 8px 0 rgba(39,160,168,0.10);
  border: none;
  transition: background 0.17s, transform 0.15s;
}
header nav a.cta-btn:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px) scale(1.01);
}

header nav img {
  height: 38px;
  max-width: 150px;
  margin-right: 16px;
}

/* --- MOBILE MENU (BURGER MENU) --- */
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  color: var(--accent);
  background: none;
  border: none;
  margin-left: auto;
  margin-right: 8px;
  cursor: pointer;
  transition: color 0.16s;
  z-index: 9999;
  padding: 0 8px;
  border-radius: var(--radius-btn);
}
.mobile-menu-toggle:hover {
  color: var(--primary);
  background: rgba(24,67,90,0.10);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24, 67, 90, 0.98);
  z-index: 10010;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 2px 24px 0 rgba(21,113,120,0.08);
  overscroll-behavior: contain;
  padding-top: 30px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.1rem;
  background: none;
  color: #fff;
  margin-left: auto;
  margin-right: 20px;
  margin-bottom: 14px;
  border-radius: var(--radius-btn);
  z-index: 10012;
  align-self: flex-end;
  transition: color 0.2s, background 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--accent);
  background: #22303A;
}
.mobile-nav {
  display: flex !important;
  flex-direction: column;
  gap: 18px;
  width: 85vw;
  max-width: 380px;
  padding: 24px 22px;
}
.mobile-nav a {
  font-size: 1.23rem;
  color: #fff;
  background: none;
  padding: 14px 6px;
  border-radius: 4px;
  transition: background 0.14s, color 0.12s;
  font-weight: 600;
   display: flex !important;
}
.mobile-nav a:hover {
  background: var(--accent);
  color: #fff;
}
@media (max-width: 1050px) {
  header nav a:not(.cta-btn) { font-size: 0.95rem; }
}
@media (max-width: 920px) {
  header nav a, header nav img { display: none; }
  header nav a.cta-btn { display: none; }
  .mobile-menu-toggle { display: inline-block; }
}

/* When mobile menu is open, prevent body scroll */
body.menu-open {
  overflow: hidden;
}

/* --- FOOTER --- */
footer {
  background: var(--mid-bg);
  width: 100%;
  padding: 32px 0 24px 0;
  color: var(--text-mid);
  font-size: 0.99rem;
  margin-top: var(--section-gap);
  border-top: 2px solid var(--border-metal);
  box-shadow: 0 -2px 24px 0 rgba(24,67,90,0.09);
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
footer nav a {
  color: var(--accent);
  padding: 4px 11px;
  border-radius: 3px;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.11s, color 0.11s;
}
footer nav a:hover {
  background: var(--accent);
  color: #fff;
}
footer address {
  font-style: normal;
  color: var(--text-mid);
  margin-bottom: 10px;
  line-height: 1.55;
}
footer address img {
  width: 18px;
  height: 18px;
  margin-right: 7px;
  vertical-align: middle;
}
.footer-brand {
  color: var(--border-metal);
  font-size: 0.95rem;
  margin-top: 16px;
}

@media (max-width: 700px) {
  footer nav {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }
  .footer-brand {
    margin-top: 18px;
  }
}

/* --- LISTS & TYPO --- */
ul, ol {
  padding-left: 20px;
  margin-bottom: 18px;
  color: var(--text-mid);
}
ul li, ol li {
  padding-left: 3px;
  margin-bottom: 8px;
  line-height: 1.6;
}
ul li::marker {
  color: var(--accent);
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 1rem;
  color: var(--accent);
}
.category-filter span {
  font-weight: 600;
  color: var(--accent);
  background: #25303D;
  padding: 3px 10px;
  border-radius: 5px;
  margin-right: 2px;
}

.map-embed {
  box-shadow: var(--shadow2);
  background: var(--panel-bg);
  border-radius: 12px;
  padding: 20px 18px;
  margin-top: 16px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-mid);
}

.confirmation {
  background: var(--panel-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow1);
  padding: 28px 20px;
  color: var(--text-main);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* --- Accessibility Helpers --- */
:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* --- RESPONSIVE LAYOUTS --- */
@media (max-width: 900px) {
  .feature-grid, .blog-list {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div, .blog-list article {
    max-width: 100%;
    flex: 1 1 100%;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.1rem; }
  section, .section {
    padding: 25px 5px !important;
    margin-bottom: 32px !important;
  }
  .content-wrapper {
    gap: 15px;
  }
  .feature-grid, .blog-list {
    gap: 14px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 8px;
    padding: 13px 10px;
  }
  .card {
    padding: 12px;
    border-radius: 8px;
  }
  .map-embed {
    padding: 10px 6px;
    gap: 7px;
  }
  .confirmation {
    padding: 14px 8px;
  }
}

/* --- COOKIE CONSENT BANNER --- */
#cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  background: var(--panel-bg);
  color: var(--text-main);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 20px 10px;
  box-shadow: 0 -3px 18px 0 rgba(24,67,90,0.19);
  min-height: 62px;
  font-size: 1rem;
  animation: cookie-slide-in 0.33s cubic-bezier(.4,0,.2,1) both;
}
@keyframes cookie-slide-in {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
#cookie-banner button,
#cookie-banner .cta-btn, 
#cookie-banner .btn {
  margin-left: 12px;
  font-size: 1rem;
  border-radius: var(--radius-btn);
  padding: 10px 20px;
  border: 1.2px solid var(--border-metal);
  background: var(--panel-bg);
  color: var(--accent);
  transition: background 0.16s, color 0.13s, border 0.12s;
}
#cookie-banner .accept {
  background: var(--accent);
  color: #fff;
  border: none;
  font-weight: 700;
}
#cookie-banner .accept:hover { background: var(--accent-hover); }
#cookie-banner .reject {
  background: #E0E7ED;
  color: var(--primary);
  font-weight: 600;
  border: 1.2px solid var(--border-metal);
}
#cookie-banner .reject:hover {
  background: #CAD2D6;
  color: #18435A;
}
#cookie-banner .settings {
  background: var(--panel-bg);
  color: var(--accent);
}
#cookie-banner .settings:hover {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 600px) {
  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    font-size: 0.97rem;
    padding: 15px 8px 18px 8px;
  }
}

/* --- COOKIE SETTINGS MODAL --- */
#cookie-modal {
  display: none;
  position: fixed;
  z-index: 10100;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(24,67,90,0.80);
  justify-content: center;
  align-items: center;
  animation: fadeInModal 0.28s cubic-bezier(.4,0,.2,1);
}
#cookie-modal.open {
  display: flex;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
#cookie-modal .modal-content {
  background: var(--panel-bg);
  color: var(--text-main);
  border-radius: var(--radius-card);
  box-shadow: 0 5px 28px 0 rgba(24,67,90,0.19);
  min-width: 320px;
  max-width: 98vw;
  padding: 32px 18px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: grow-in-modal 0.2s cubic-bezier(.42, 0, .2, 1) both;
}
@keyframes grow-in-modal {
  from { transform: scale(0.95); opacity:0; }
  to { transform: scale(1); opacity:1; }
}
#cookie-modal .modal-content h3 {
  font-size: 1.32rem;
  color: var(--accent);
  margin-bottom: 12px;
}
#cookie-modal .cookie-category {
  margin-bottom: 18px;
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
}
#cookie-modal .cookie-toggle {
  margin-left: 12px;
}
.cookie-toggle input[type="checkbox"] {
  width: 34px;
  height: 18px;
  accent-color: var(--accent);
}
#cookie-modal .cookie-category span {
  font-weight: 600;
  color: var(--text-main);
}
#cookie-modal .modal-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 14px;
  justify-content: flex-end;
}
#cookie-modal .modal-close {
  position: absolute;
  top: 7px; right: 13px;
  font-size: 1.5rem;
  color: var(--text-mid);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 7px;
  padding: 2px 7px;
  transition: color 0.13s, background 0.13s;
}
#cookie-modal .modal-close:hover {
  color: var(--accent);
  background: #222C35;
}

@media (max-width: 540px) {
  #cookie-modal .modal-content {
    min-width: 90vw;
    padding: 20px 7px 13px 7px;
  }
  #cookie-modal .modal-content h3 {
    font-size: 1.1rem;
  }
}

/* --- MISC: BLOG CARDS, INPUTS, ETC. --- */
.blog-list {
  gap: 24px;
  margin-bottom: 20px;
}
.blog-list article {
  background: var(--panel-bg);
  border: 1.2px solid var(--border-metal);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow2);
  padding: 22px 18px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, background 0.13s, border-color 0.14s;
  color: var(--text-main);
  min-width: 0;
}
.blog-list article h3 {
  color: var(--accent);
  margin-bottom: 10px;
}
.blog-list article:hover {
  background: #25303D;
  border-color: var(--accent);
  box-shadow: 0 8px 32px 0 rgba(39,160,168,0.10), var(--shadow1);
}

address a {
  color: var(--accent);
  text-decoration: underline dotted;
  font-weight: 500;
  transition: color 0.18s;
}
address a:hover {
  color: var(--accent-hover);
}

/* --- SPECIALS: Cta-Section --- */
.cta-section {
  background: linear-gradient(90deg, #22303A 55%, #18435A 100%);
  box-shadow: var(--shadow1);
  border-radius: var(--radius-card);
  padding: 40px 24px;
  text-align: left;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.cta-section h2 {
  color: var(--accent);
  margin-bottom: 16px;
}
.cta-section p {
  color: var(--text-mid);
}
@media (max-width: 600px) {
  .cta-section {
    padding: 18px 8px;
  }
}

/* --- TRANSITIONS & MICRO-INTERACTIONS --- */
.card, .feature-grid > div, .blog-list article, .testimonial-card, .cta-btn, button, .btn {
  transition: box-shadow 0.22s, border-color 0.14s, background 0.14s, color 0.13s, transform 0.13s;
}

/* --- SCROLLBAR (Industrial feel) --- */
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-thumb {
  background: #25303D;
  border-radius: 7px;
  border: 2px solid #18435A;
}
::-webkit-scrollbar-track {
  background: #171D22;
}

/* --- Placeholder / Input styles --- */
input, textarea, select {
  background: var(--panel-bg);
  color: var(--text-main);
  border: 1px solid var(--border-metal);
  border-radius: 7px;
  padding: 10px 12px;
  font-size: 1rem;
  margin-bottom: 14px;
  transition: border-color 0.15s, background 0.16s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  background: #22303A;
}
::placeholder {
  color: var(--text-mid);
  opacity: 1;
}

/* --- INDUSTRIAL FONT LOADING FALLBACK --- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

body, html {
  font-family: var(--industrial-body);
}

/* --- Z-INDEX LAYERING FOR MENU & COOKIE --- */
header { z-index: 100; }
.mobile-menu { z-index: 10010; }
#cookie-banner { z-index: 10050; }
#cookie-modal { z-index: 10100; }

/* --- NO GRID! ONLY FLEXBOX! --- */
/* No grid, no columns, only display: flex and flex-wrap */

/* --- END OF INDUSTRIAL MODERN DESIGN CSS --- */