/* ========================== */
/*     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, 
main, 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, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, select, textarea {
  font: inherit;
}

[tabindex="-1"]:focus:not(:focus-visible) {
  outline: none;
}

/* ===================================== */
/*         INDUSTRIAL MODERN VARS        */
/* ===================================== */
:root {
  --color-primary: #253448;
  --color-secondary: #24A4D6;
  --color-accent: #E1DFE9;
  --color-bg-dark: #22282f;
  --color-bg-medium: #353d47;
  --color-bg-light: #414957;
  --color-metalic: #7C8693;
  --color-white: #f5f7fa;
  --color-black: #11131A;

  --text-main: #e1dfe9;
  --text-light: #f5f7fa;
  --text-dark: #22272f;
  --text-muted: #A3A8B3;

  --shadow-sm: 0 2px 8px rgba(50,56,66,0.10);
  --shadow-md: 0 4px 16px rgba(35,38,45,0.10);
  --shadow-lg: 0 8px 32px rgba(35,38,45,0.15);
  --border-radius: 12px;
  --border-radius-sm: 7px;
  --border-radius-lg: 16px;
  --card-border: 1px solid #353d47;
  --footer-border: 1px solid #262D33;
  --nav-link-underline: 2px solid var(--color-secondary);
  --transition: .23s cubic-bezier(.56,.1,.17,1.19);
  --focus-outline: 2px solid var(--color-secondary);
}

@media (max-width: 768px) {
  html {
    font-size: 100%;
  }
}

/* ===================== */
/*     TYPOGRAPHY        */
/* ===================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;800&family=Roboto:wght@400;500;700&display=swap');

body {
  background: var(--color-bg-dark);
  color: var(--text-main);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.02em;
  min-height: 100vh;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: var(--text-light);
  letter-spacing: 0.03em;
  line-height: 1.22;
  font-weight: 800;
}
h1 { font-size: 2.5rem; margin-bottom: 22px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: .95rem; }
p, li, address {
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: 16px;
  font-weight: 400;
}
strong { font-weight: 700; color: var(--color-secondary); }

ul, ol {
  margin-left: 22px;
  margin-bottom: 18px;
}
li {
  margin-bottom: 8px;
  color: var(--text-main);
}

@media (max-width: 768px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.3rem; }
}

/* ===================== */
/*        LAYOUT         */
/* ===================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: flex-start;
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background-color: rgba(37,52,72,0.96);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0;
}
@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  width: 100%;
}
.card {
  background: var(--color-bg-medium);
  border: var(--card-border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
  position: relative;
  padding: 26px 20px;
  transition: box-shadow var(--transition), transform var(--transition);
  min-width: 260px;
  max-width: 325px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px) scale(1.03);
}
.card h3 { color: var(--color-secondary); }

.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: flex-start;
    gap: 18px;
  }
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: var(--color-bg-light);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 22px 18px 18px 18px;
  width: calc(50% - 14px);
  min-width: 200px;
  max-width: 290px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-grid > div:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px) scale(1.035);
}
.feature-grid img {
  width: 42px; height: 42px;
  margin-bottom: 10px;
  filter: grayscale(0.15) contrast(1.22) drop-shadow(0 1px 2px rgba(31,41,51,.15));
}
@media (max-width: 768px) {
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div {
    width: 100%;
    max-width: unset;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--color-accent);
  color: var(--text-dark);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
}

/* Testimonial accessibility: dark text on light bg */
.testimonial-card p,
.testimonial-card strong,
.testimonial-card span {
  color: #27313f;
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--color-bg-medium);
  border-radius: var(--border-radius-sm);
  padding: 12px 18px;
  margin: 12px 0;
}
.contact-info img {
  display: inline-block;
  width: 20px; height: 20px;
  vertical-align: middle;
  margin-right: 8px;
  filter: grayscale(0.17) contrast(1.3);
}

/* Ensure minimum spacing between content sections */
section + section {
  margin-top: 30px;
}

/* ===================== */
/*        HEADER         */
/* ===================== */
header {
  width: 100%;
  background: var(--color-bg-medium);
  box-shadow: var(--shadow-sm);
  border-bottom: 2px solid var(--color-metalic);
  margin-bottom: 0;
  position: relative;
  z-index: 30;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px;
  gap: 24px;
  min-height: 68px;
}
header img {
  height: 38px;
  width: auto;
}
nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: var(--text-main);
  padding: 4px 0 2px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-bottom var(--transition);
  letter-spacing: 0.02em;
  position: relative;
}
nav a:focus,
nav a:hover {
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary);
}

@media (max-width: 980px) {
  header .container { flex-direction: row; gap: 8px; }
  nav { gap: 12px; }
}

@media (max-width: 768px) {
  nav {
    display: none;
  }
  header .container {
    padding: 15px 8px 8px 8px;
  }
}

/* ===================== */
/*      CTA BUTTONS      */
/* ===================== */
.cta, .primary, .cookie-btn {
  display: inline-block;
  background: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  border-radius: var(--border-radius-sm);
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 12px 30px;
  margin-top: 12px;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.cta.primary:focus, .primary:focus, .cookie-btn:focus {
  outline: var(--focus-outline);
}
.cta.primary:hover, .primary:hover, .cookie-btn:hover {
  background: #26b6f0;
  color: #22272f;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px) scale(1.03);
}

/* Secondary ghost button for cookies/settings */
.cta.secondary, .cookie-btn.secondary {
  background: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
  margin-left: 14px;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.cta.secondary:hover, .cookie-btn.secondary:hover {
  background: var(--color-bg-light);
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* ===================== */
/*         FOOTER        */
/* ===================== */
footer {
  width: 100%;
  padding: 0;
  background: var(--color-bg-medium);
  border-top: var(--footer-border);
  color: var(--text-muted);
}
footer .container {
  margin-top: 0;
  padding: 36px 20px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
footer .content-wrapper {
  gap: 22px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 1rem;
}
footer nav a {
  color: var(--color-accent);
  transition: color var(--transition), border-bottom var(--transition);
}
footer nav a:hover {
  color: var(--color-secondary);
  border-bottom: var(--nav-link-underline);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}
.footer-legal a {
  font-size: 0.98rem;
  color: var(--color-metalic);
  transition: color var(--transition);
}
.footer-legal a:hover {
  color: var(--color-secondary);
}
footer address {
  font-style: normal;
  color: var(--color-accent);
  font-size: 1rem;
  line-height: 1.5;
}
@media (max-width: 768px) {
  footer nav, .footer-legal {
    flex-direction: column;
    gap: 8px;
  }
  footer .container {
    padding: 24px 6px 20px 6px;
  }
}

/* ========================= */
/*      MOBILE BURGER MENU   */
/* ========================= */
.mobile-menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    color: var(--color-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    margin-left: auto;
    margin-top: -4px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    transition: background var(--transition), color var(--transition);
    z-index: 101;
  }
  .mobile-menu-toggle:focus {
    outline: var(--focus-outline);
  }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(31,35,42,0.98);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.77,.1,.17,1.04);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  color: var(--color-secondary);
  font-size: 2.2rem;
  margin: 14px 16px 0 0;
  cursor: pointer;
  transition: color var(--transition);
}
.mobile-menu-close:focus {
  outline: var(--focus-outline);
}
.mobile-menu-close:hover {
  color: #ffffff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: 28px 0 0 30px;
  width: 85%;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.24rem;
  color: var(--color-accent);
  font-weight: 700;
  padding: 6px 0 6px 3px;
  border-bottom: 2px solid transparent;
  border-left: 4px solid transparent;
  border-radius: var(--border-radius-sm);
  transition: background var(--transition), color var(--transition), border-left var(--transition), border-bottom var(--transition);
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  color: var(--color-secondary);
  background: rgba(50,60,72,0.18);
  border-left: 4px solid var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary);
}

@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--color-bg-light);
  color: var(--color-accent);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 20px 16px;
  z-index: 250;
  box-shadow: 0 0 16px rgba(35,38,45,0.14);
  border-top: 2px solid var(--color-metalic);
  transition: transform .28s cubic-bezier(.4,1.44,.56,1);
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.cookie-banner p {
  color: var(--color-accent);
  font-size: 1rem;
  margin-bottom: 0;
  flex: 1 1 40%;
  max-width: 500px;
}
.cookie-btn { margin-top: 0; margin-bottom: 0; }
.cookie-btn:not(:last-child) { margin-right: 10px; }

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 8px;
  }
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(35,38,45,0.88);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s cubic-bezier(.36,1.2,.49,1);
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: var(--color-bg-light);
  color: var(--color-accent);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 0 20px 0 rgba(40,45,58,0.21);
  padding: 32px 30px 26px 30px;
  max-width: 420px;
  width: 94vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  animation: appearIn .26s var(--transition);
}
@keyframes appearIn {
  from { transform: scale(0.98) translateY(32px); opacity: 0.1;}
  to { transform: scale(1) translateY(0); opacity: 1;}
}
.cookie-modal-content h3 {
  font-size: 1.2rem;
  color: var(--color-secondary);
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-switch {
  width: 34px; height: 18px; border-radius: 11px;
  background: #333d4d;
  border: none; appearance: none;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background .17s;
}
.cookie-switch:checked {
  background: var(--color-secondary);
}
.cookie-switch:before {
  content: "";
  display: block;
  position: absolute;
  left: 3px; top: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 2px 6px rgba(45,52,61,0.17);
  transition: left .20s cubic-bezier(.62,1.5,.43,1.09);
}
.cookie-switch:checked:before {
  left: 16px;
  background: #fff;
}
.cookie-modal-content .cookie-btn {
  margin-top: 0;
  margin-right: 10px;
}
.cookie-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: transparent;
  border: none;
  color: var(--color-secondary);
  font-size: 1.35rem;
  cursor: pointer;
  z-index: 2;
  transition: color var(--transition);
}
.cookie-modal-close:hover { color: #fff; }

@media (max-width: 600px) {
  .cookie-modal-content {
    padding: 20px 6vw 18px 6vw;
    max-width: 98vw;
    font-size: .97rem;
  }
  .cookie-modal-close { right: 9px; top: 7px; }
}

/* ================ */
/*     ANIMATION    */
/* ================ */
a, button, .cta {
  transition: color var(--transition), background var(--transition), box-shadow var(--transition), border var(--transition), transform var(--transition);
}

.card, .feature-grid > div, .testimonial-card, .cta {
  transition: box-shadow var(--transition), transform var(--transition);
}

/* Micro-interactions for focus/active */
*:focus-visible { outline: var(--focus-outline); }

/* =============== */
/*     UTILS       */
/* =============== */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 32px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

/* =============== */
/*   ACCESSIBILITY */
/* =============== */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation-duration: 0ms !important;
  }
}

/* ========================= */
/*    SPECIAL ELEMENTS       */
/* ========================= */
/* Feature links */
.feature-grid a {
  color: var(--color-secondary);
  border-bottom: 1px dotted var(--color-secondary);
  transition: border-bottom var(--transition), color var(--transition);
}
.feature-grid a:hover {
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
}

.section a:not(.cta):not(.cookie-btn) {
  color: var(--color-secondary);
  transition: color var(--transition);
  border-bottom: 1px dotted var(--color-secondary);
}
.section a:not(.cta):not(.cookie-btn):hover {
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
}

/* Table style (if any appear) */
table {
  width: 100%;
  margin: 30px 0;
  border-collapse: collapse;
  background: var(--color-bg-medium);
  color: var(--color-accent);
  box-shadow: var(--shadow-sm);
  border-radius: var(--border-radius);
}
th, td {
  border: 1px solid var(--color-metalic);
  padding: 10px;
  text-align: left;
}
th {
  background: var(--color-bg-light);
  color: var(--color-secondary);
}

/* Address style */
address {
  font-style: normal;
  color: var(--color-accent);
}

/* ========================= */
/*    MISCELLANEOUS          */
/* ========================= */
::-webkit-scrollbar {
  width: 10px; height: 10px;
  background: var(--color-bg-light);
}
::-webkit-scrollbar-thumb {
  background: var(--color-metalic);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary);
}

/* Fallback for old browsers */
@media screen and (max-width: 420px) {
  h1, h2, h3 { font-size: 1rem !important; }
  .feature-grid img { width: 34px; height: 34px; }
  .cta, .primary, .cookie-btn { font-size: 0.98rem; padding: 11px 13px; }
}
