/* --- CSS RESET & NORMALIZE --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
  font-size: 16px;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background-color: #182C3A;
  color: #F3F6FA;
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: 0.01em;
  scroll-behavior: smooth;
  position: relative;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #56B8C1;
  text-decoration: none;
  transition: color 0.2s;
  word-break: break-word;
}
a:hover, a:focus {
  color: #ffffff;
  text-decoration: underline;
}
ul,
ol {
  padding-left: 1.4em;
  margin-bottom: 1em;
}
li + li {
  margin-top: 0.5em;
}
strong, b {
  font-weight: 700;
  color: #F3F6FA;
}

/* --- VARIABLE FALLBACKS --- */
:root {
  --primary: #182C3A;
  --secondary: #56B8C1;
  --accent: #F3F6FA;
  --metallic: #8A99A2;
  --background-dark: #1D2328;
  --background-card: #232D36;
  --hover-dark: #223747;
}

/* --- TYPOGRAPHY SCALE --- */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  letter-spacing: 0.02em;
  color: #F3F6FA;
  margin-bottom: 24px;
  line-height: 1.1;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: #56B8C1;
  margin-bottom: 18px;
  line-height: 1.15;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: #F3F6FA;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
h4, .h4 {
  font-size: 1.1rem;
  font-weight: 500;
  color: #F3F6FA;
}
.subheadline {
  color: #8A99A2;
  font-size: 1.125rem;
  margin-bottom: 20px;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}
p {
  margin-bottom: 16px;
  color: #F3F6FA;
}

/* --- GENERAL LAYOUT WRAPPERS --- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: none;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: 18px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- FLEX LAYOUTS PER DESIGN --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 300px;
  background: #232D36;
  border-radius: 14px;
  box-shadow: 0 5px 24px 0 rgba(20,24,31,0.15);
  border: 1px solid #2e3a46;
  min-width: 260px;
  overflow: hidden;
}
.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 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #F3F6FA;
  color: #1D2328;
  border-radius: 14px;
  box-shadow: 0 4px 22px 0 rgba(28,34,41,0.12);
  border: 1px solid #8A99A2;
  font-size: 1.05rem;
  font-style: italic;
  position: relative;
  transition: box-shadow 0.22s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 26px 0 rgba(47,64,82,0.17);
}
.testimonial-card p {
  color: #1D2328;
  margin-bottom: 6px;
}
.testimonial-footer {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  color: #223747;
  font-style: normal;
  font-weight: 500;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 270px;
  background: #232D36;
  border: 1px solid #2e3a46;
  border-radius: 12px;
  padding: 32px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  box-shadow: 0 3px 12px 0 rgba(50,60,70,0.09);
  transition: box-shadow 0.22s, border 0.22s;
}
.feature-grid > div:hover {
  border: 1.5px solid #56B8C1;
  box-shadow: 0 6px 24px 0 rgba(80,130,140,0.17);
}
.feature-grid img,
.content-grid img {
  width: 38px;
  height: 38px;
  filter: grayscale(40%) contrast(130%);
  margin-bottom: 4px;
}

/* --- BUTTONS & LINKS --- */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  min-height: 44px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  border-radius: 24px;
  padding: 0 32px;
  margin: 8px 0 8px 0;
  transition: background 0.18s, color 0.18s, box-shadow 0.23s, border 0.18s;
  cursor: pointer;
  border: none;
  outline: none;
  text-align: center;
  box-shadow: 0 2px 9px 0 rgba(56, 75, 82, 0.1);
  letter-spacing: 0.01em;
}
.btn-primary {
  background: #56B8C1;
  color: #182C3A;
  border: 2px solid #56B8C1;
}
.btn-primary:hover, .btn-primary:focus {
  background: #1D2328;
  color: #F3F6FA;
  border: 2px solid #8A99A2;
}
.btn-secondary {
  background: transparent;
  color: #56B8C1;
  border: 2px solid #56B8C1;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #56B8C1;
  color: #232D36;
  border: 2px solid #56B8C1;
}

/* --- HEADER --- */
header {
  width: 100%;
  background: #232D36;
  border-bottom: 2px solid #2e3a46;
  padding: 0;
  box-shadow: 0 2px 16px 0 rgba(20,24,31,0.10);
  position: relative;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
  gap: 16px;
}
header img {
  height: 52px;
  width: auto;
  margin-right: 12px;
}
.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  color: #8A99A2;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  padding: 3px 8px;
  border-radius: 7px;
  transition: background 0.15s, color 0.15s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: #F3F6FA;
  background: #223747;
}
/* Mobile menu burger button */
.mobile-menu-toggle {
  display: none;
  background: none;
  color: #F3F6FA;
  font-size: 2.3rem;
  border: none;
  cursor: pointer;
  padding: 13px 16px;
  margin-left: 8px;
  border-radius: 8px;
  transition: background 0.15s;
  z-index: 203;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #223747;
  color: #56B8C1;
}

/* --- MOBILE MENU (SLIDE-OVER) --- */
.mobile-menu {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: #182C3A;
  color: #F3F6FA;
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(-100vw);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.36s cubic-bezier(.49,.22,.15,1.12), opacity 0.25s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  box-shadow: 8px 0 26px 0 rgba(36,44,60,0.15);
}
.mobile-menu-close {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: #56B8C1;
  background: none;
  border: none;
  font-size: 2.8rem;
  padding: 16px 19px 1px 16px;
  align-self: flex-end;
  margin: 6px 6px 12px 0;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.17s, color 0.13s;
  z-index: 300;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #F3F6FA;
  background: #223747;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 23px;
  align-items: flex-start;
  width: 100%;
  padding: 30px 30px 40px 36px;
}
.mobile-nav a {
  color: #F3F6FA;
  font-size: 1.35rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 8px 0;
  border-radius: 7px;
  transition: background 0.13s, color 0.13s;
  min-width: 98px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #223747;
  color: #56B8C1;
}

/* --- MAIN LAYOUT --- */
main {
  min-height: calc(100vh - 230px);
  padding-bottom: 36px;
}

/* --- FOOTER --- */
footer {
  background: #1D2328;
  color: #F3F6FA;
  padding: 48px 0 20px 0;
  border-top: 2px solid #2e3a46;
  margin-top: 48px;
  font-size: 1rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 28px;
}
.footer-nav nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #8A99A2;
  font-family: 'Montserrat', Arial, sans-serif;
  text-decoration: none;
  transition: color 0.12s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #56B8C1;
}
.footer-legal-social {
  display: flex;
  flex-direction: row;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.footer-address {
  font-size: 0.98rem;
  color: #F3F6FA;
  opacity: 0.96;
  margin-bottom: 4px;
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 17px;
  align-items: center;
}
.footer-social img {
  height: 26px;
  width: 26px;
  filter: grayscale(80%) brightness(1.5);
  transition: filter 0.2s;
  cursor: pointer;
}
.footer-social img:hover {
  filter: grayscale(0%) brightness(1.1) drop-shadow(0 0 5px #56B8C1);
}
.footer-copyright {
  border-top: 1px solid #2e3a46;
  padding-top: 12px;
  text-align: left;
  font-size: 0.96rem;
  color: #8A99A2;
  opacity: 0.85;
}

/* --- CONTACT INFO LIST --- */
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 16px 0 12px 0;
}
.contact-info-list div {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #F3F6FA;
  font-size: 1.04rem;
}
.contact-info-list img {
  width: 28px;
  height: 28px;
  filter: grayscale(50%) contrast(120%);
}

/* --- SPECIAL ELEMENTS --- */
ul {
  margin-bottom: 16px;
}
ul li {
  margin-bottom: 6px;
  color: #F3F6FA;
  font-size: 1.03rem;
}
.text-section ul li strong {
  color: #56B8C1;
}

/* --- SPACING OVERRIDES & GAPS --- */
section:not(:last-child) {
  margin-bottom: 60px;
}
section:last-child {
  margin-bottom: 0;
}

/* --- RESPONSIVE --- */
@media (max-width: 1000px) {
  .container {
    max-width: 96vw;
  }
  .feature-grid > div, .card {
    min-width: 180px;
  }
}
@media (max-width: 900px) {
  .footer-nav {
    gap: 18px;
  }
  .footer-legal-social {
    flex-direction: column;
    gap: 13px;
  }
}
@media (max-width: 768px) {
  h1, .h1 {
    font-size: 2rem;
    margin-bottom: 20px;
  }
  h2, .h2 {
    font-size: 1.5rem;
    margin-bottom: 13px;
  }
  .section {
    margin-bottom: 38px;
    padding: 24px 8px;
  }
  .content-grid, .feature-grid, .footer-nav {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid > div, .card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    gap: 17px;
    align-items: flex-start;
  }
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  header .btn-primary {
    display: none;
  }
  .footer-legal-social {
    flex-direction: column;
    gap: 9px;
  }
}
@media (max-width: 520px) {
  header .container {
    padding: 8px 7px;
  }
  .footer-social img {
    height: 22px;
    width: 22px;
  }
  .mobile-nav {
    padding: 23px 10vw 35px 18vw;
    gap: 16px;
  }
}

/* --- TRANSITIONS & MICRO-INTERACTIONS --- */
.card, .feature-grid > div, .testimonial-card {
  transition: box-shadow 0.18s, border 0.18s;
}

/* --- SHADOWS & BORDERS --- */
.card, .feature-grid > div, .testimonial-card {
  box-shadow: 0 2px 10px 0 rgba(34,40,47,0.10);
}
.testimonial-card {
  box-shadow: 0 4px 22px 0 rgba(28,34,41,0.12);
  border: 1px solid #8A99A2;
}

/* --- METALLIC ACCENTS --- */
h2, .feature-grid > div h3 {
  text-shadow: 0 1px 0 #8A99A211, 0 1px 9px #8A99A230;
}
.feature-grid > div, .card {
  border: 1px solid #8A99A21a;
}

/* --- COOKIE CONSENT BANNER & MODAL --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: #232D36;
  color: #F3F6FA;
  box-shadow: 0 -4px 22px rgba(29,35,40,0.12);
  padding: 24px 24px 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  border-radius: 16px 16px 0 0;
  transition: transform 0.4s, opacity 0.18s;
}
.cookie-banner.hide {
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #56B8C1;
  color: #1D2328;
  border: none;
  padding: 10px 21px;
  font-size: 1.07rem;
  border-radius: 18px;
  font-weight: 700;
  cursor: pointer;
  margin: 0 2px;
  transition: background 0.22s, color 0.15s;
  box-shadow: 0 2px 6px rgba(86,184,193,0.08);
}
.cookie-banner button.cookie-reject {
  background: transparent;
  color: #56B8C1;
  border: 1.5px solid #56B8C1;
}
.cookie-banner button.cookie-settings {
  background: #8A99A2;
  color: #232D36;
  margin-left: 0;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #223747;
  color: #F3F6FA;
}

.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10009;
  background: #182C3ADE;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.29s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.cookie-modal {
  background: #232D36;
  color: #F3F6FA;
  border-radius: 20px;
  box-shadow: 0 7px 38px 0 rgba(28,34,41,0.19);
  padding: 36px 36px 30px 36px;
  min-width: 314px;
  max-width: 97vw;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 19px;
  position: relative;
  z-index: 10010;
}
.cookie-modal h3 {
  color: #56B8C1;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 13px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
}
.cookie-modal .cookie-cat-label {
  min-width: 152px;
  font-size: 1.05rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal .cookie-cat-toggle input[type="checkbox"] {
  appearance: none;
  width: 36px;
  height: 18px;
  background: #8A99A2;
  border-radius: 9px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
}
.cookie-modal .cookie-cat-toggle input[type="checkbox"]:checked {
  background: #56B8C1;
}
.cookie-modal .cookie-cat-toggle input[type="checkbox"]::after {
  content: '';
  position: absolute;
  left: 3px; top: 2px;
  width: 14px; height: 14px;
  background: #F3F6FA;
  border-radius: 50%;
  transition: left 0.2s, background 0.18s;
}
.cookie-modal .cookie-cat-toggle input[type="checkbox"]:checked::after {
  left: 19px;
  background: #232D36;
}
.cookie-modal .cookie-cat-desc {
  font-size: 0.94rem;
  color: #B2C0CB;
  opacity: 0.88;
  margin-left: 4px;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.cookie-modal .cookie-close {
  position: absolute;
  right: 22px; top: 15px;
  background: none;
  border: none;
  color: #56B8C1;
  font-size: 2.1rem;
  cursor: pointer;
  z-index: 3;
  border-radius: 7px;
  transition: background 0.13s, color 0.13s;
}
.cookie-modal .cookie-close:hover, .cookie-modal .cookie-close:focus {
  background: #223747;
  color: #F3F6FA;
}

@media (max-width: 520px) {
  .cookie-modal {
    min-width: 90vw;
    padding: 15px 5vw 18px 5vw;
  }
  .cookie-banner {
    padding: 17px 4vw 11px 4vw;
    font-size: 0.99rem;
  }
}

/* --- UTILITY HELPERS --- */
.mt-0 {margin-top: 0!important;} .mb-0 {margin-bottom: 0!important;}
.mt-1 {margin-top: 8px!important;} .mb-1{margin-bottom:8px!important;}
.mt-2 {margin-top: 16px!important;} .mb-2{margin-bottom:16px!important;}
.mt-3 {margin-top: 24px!important;} .mb-3{margin-bottom:24px!important;}
.mt-4 {margin-top: 32px!important;} .mb-4{margin-bottom:32px!important;}

/* --- INDUSTRIAL MODERN: ACCENTS & FLAIR --- */
hr {
  border: none; border-top: 1.5px solid #8A99A2;
  margin: 24px 0;
}
::-webkit-scrollbar-thumb { background: #232D36; border-radius: 6px; }
::-webkit-scrollbar { width: 8px; background: #182C3A; }

/* --- FORM ELEMENTS (if ever added) --- */
input, textarea {
  background: #232D36;
  color: #F3F6FA;
  border: 1px solid #8A99A255;
  border-radius: 6px;
  padding: 11px 15px;
  font-size: 1.02rem;
  font-family: 'Roboto', Arial, sans-serif;
  transition: border 0.19s;
}
input:focus, textarea:focus {
  outline: 2px solid #56B8C1;
  border: 1.5px solid #56B8C1;
}
button:active {transform: scale(0.97);}

/* --- OVERRIDES FOR CODE SAFETY: NO GRID, NO ABSOLUTE FOR CARDS --- */
.card, .content-grid, .feature-grid, .footer-nav, .footer-legal-social, .testimonial-card, .container, .text-image-section, .contact-info-list {
  position: static !important;
}

/* --- REMOVE OUTLINE ONLY ON MOUSE, KEEP FOR KEYBOARD --- */
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2px solid #56B8C1;
  outline-offset: 3px;
}

/* --- HIDE MOBILE MENU BY DEFAULT ON DESKTOP --- */
@media (min-width: 769px) {
  .mobile-menu { display: none!important; }
}
