/* -------------------- 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, 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;
}
html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
body { background: #151B21; color: #F4F6F8; min-height: 100vh; }
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; }
table { border-collapse: collapse; border-spacing: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
button, input, textarea, select { font-family: inherit; font-size: 100%; outline: none; }
button { background: none; border: none; cursor: pointer; padding: 0; }
:focus:not(:focus-visible) { outline: none; }
::-webkit-input-placeholder { color: #A3ADB7; }
::-moz-placeholder { color: #A3ADB7; }
:-ms-input-placeholder { color: #A3ADB7; }
::placeholder { color: #A3ADB7; }

/* ----------------- BRAND & BASE TYPOGRAPHY ----------------- */
:root {
  --primary: #01407E;
  --secondary: #21A1D9;
  --accent: #F4F6F8;
  --metal-700: #383F45;
  --metal-600: #21262A;
  --metal-500: #485159;
  --metalic-mid: #6C757D;
  --danger: #d32f2f;
  --focus: #21A1D9;
  --success: #43a047;
  --shadow-dark: 0 4px 24px 0 rgba(1,64,126,0.22), 0 1px 2px 0 rgba(33,161,217,0.10);
  --shadow-card: 0 2px 8px rgba(21,27,33,0.12);
  --radius: 12px;
  --transition: 0.2s cubic-bezier(.55,.11,.69,.76);
  --font-display: 'Montserrat', Arial, 'Trebuchet MS', Verdana, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  background: #151B21;
  color: var(--accent);
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.02em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--accent);
  text-shadow: 0 2px 4px rgba(21,27,33,.15);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; line-height: 1.1; }
h2 { font-size: 2rem; line-height: 1.15; }
h3 { font-size: 1.25rem; line-height: 1.2; }
h4 { font-size: 1.1rem; line-height: 1.25; }

p, ul, li, blockquote, dd {
  font-size: 1rem;
  color: #CEDEE6;
  margin-bottom: 14px;
  font-family: var(--font-body);
}

strong, b { font-weight: 700; color: var(--accent); }

ul, ol { padding-left: 1.4em; margin-bottom: 14px; }
ul li, ol li { margin-bottom: 8px; color: #CEDEE6; position: relative; }

.text-section ul, .content-wrapper ul { margin-left: 0; padding-left: 1.6em; }
.text-section ul li::before, .content-wrapper ul li::before {
  content: '';
  position: absolute;
  left: -1.6em;
  top: 0.65em;
  background: var(--secondary);
  box-shadow: 0 0 5px 1px #222;
  width: 6px; height: 6px;
  border-radius: 50%;
}

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

/* ----------------- CONTAINER & MAIN LAYOUTS ----------------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--metal-600);
  border-radius: var(--radius);
}

@media (max-width: 768px) {
  .section { padding: 24px 8px; margin-bottom: 32px; }
}

/* ---------------------- HEADER & NAVIGATION --------------------- */
header {
  background: #191E24;
  border-bottom: 2px solid var(--primary);
  box-shadow: 0 4px 8px rgba(1,64,126,0.05);
  position: sticky;
  top: 0;
  z-index: 120;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  min-height: 72px;
  position: relative;
  gap: 0;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
header a {
  font-family: var(--font-body);
  font-weight: 500;
  color: #CEDEE6;
  font-size: 1rem;
  padding: 8px 4px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
header nav a:hover, header nav a.active {
  color: var(--secondary);
  background: #28303e;
}
header .btn-primary {
  margin-left: 20px;
}
header img {
  height: 38px;
  margin-right: 22px;
}

/* ---------------------- BURGER MENU (MOBILE) --------------------- */
.mobile-menu-toggle {
  display: none;
  color: var(--accent);
  background: none;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  margin-left: 12px;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover { background: #232A31; color: var(--secondary); }

.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #191E24;
  z-index: 9999;
  padding: 36px 24px 24px 24px;
  transform: translateX(-100vw);
  opacity: 0;
  transition: all 0.35s cubic-bezier(.5,.15,.58,1.2);
  box-shadow: 0 8px 16px rgba(21,27,33,0.18);
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: var(--accent);
  border: none;
  font-size: 2rem;
  padding: 8px;
  margin-bottom: 12px;
  border-radius: 6px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { color: var(--secondary); background: #232A31; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mobile-nav a {
  font-size: 1.15rem;
  color: var(--accent);
  font-family: var(--font-body);
  padding: 12px 0;
  border-radius: 6px;
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #28303e;
  color: var(--secondary);
}

@media (max-width: 1100px) {
  header nav, header .btn-primary { display: none; }
  .mobile-menu-toggle { display: flex; }
}
@media (min-width: 1101px) {
  .mobile-menu, .mobile-menu-toggle { display: none!important; }
  header nav, header .btn-primary { display: flex; }
}

/* ---------------------- BUTTONS --------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, var(--primary) 70%, var(--secondary));
  color: #F4F6F8;
  font-family: var(--font-display);
  font-size: 1.10rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px 0 rgba(33,161,217,0.16);
  padding: 13px 38px;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0.04em;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.btn-primary:focus,.btn-primary:hover {
  background: linear-gradient(90deg, var(--secondary) 53%, var(--primary));
  color: #FFF;
  box-shadow: 0 4px 14px 0 rgba(1,64,126,0.25);
  outline: 2px solid var(--focus);
  transform: translateY(-2px) scale(1.035);
}

/* ------------------- CARDS, FEATURES, TESTIMONIALS ------------------- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin: 32px 0;
}
.feature-grid > div {
  background: #232A31;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 32px 18px 28px 18px;
  min-width: 260px;
  flex: 1 1 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border: 1px solid #29343e;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.feature-grid > div:hover {
  border-color: var(--secondary);
  box-shadow: 0 4px 20px var(--primary), 0 1px 2px 0 rgba(33,161,217,0.20);
  transform: scale(1.03);
}
.feature-grid img {
  width: 40px; height: 40px;
  filter: grayscale(30%) contrast(130%) brightness(120%);
}
.feature-grid h3 {
  color: var(--secondary);
  margin-bottom: 2px;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

@media (max-width: 900px) {
  .feature-grid { gap: 16px; }
  .feature-grid > div { min-width: 45%; }
}
@media (max-width: 597px) {
  .feature-grid { flex-direction: column; gap: 18px; }
  .feature-grid > div { min-width: unset; width: 100%; }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 32px;
  background: #F4F6F8;
  color: #21262A;
  border-radius: var(--radius);
  box-shadow: 0 1px 5px 0 rgba(33,161,217,0.09);
  margin-bottom: 20px;
  position: relative;
  border-left: 6px solid var(--primary);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.testimonial-card:hover {
  border-color: var(--secondary);
  box-shadow: 0 2px 16px rgba(1,64,126,0.09);
  transform: scale(1.015);
}
.testimonial-card blockquote {
  flex: 1 1 auto;
  font-style: italic;
  font-size: 1.08rem;
  color: #151B21;
  margin: 0 0 8px 0;
  line-height: 1.5;
  font-family: var(--font-body);
}
.testimonial-card footer {
  font-size: 0.98rem;
  color: var(--secondary);
  font-weight: 500;
}

/* CARD CONTAINER FLEX STYLES */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
  padding: 22px 18px 20px 18px;
  background: #232A31;
  border: 1px solid #303844;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.card:hover { box-shadow: 0 4px 20px var(--primary); border-color: var(--secondary); }

/* GENERIC FLEX LAYOUTS */
.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) {
  .content-grid, .text-image-section { flex-direction: column; gap: 20px; }
}

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

/* ------------------------------------- FOOTER ------------------------------------- */
footer {
  background: #1d2227;
  border-top: 2px solid #232A31;
  padding: 40px 0 0 0;
  margin-top: 60px;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px 0;
  padding-bottom: 20px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
footer nav a {
  color: #B4C4D4!important;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  transition: color var(--transition);
}
footer nav a:focus,footer nav a:hover {
  color: var(--secondary);
}
footer img {
  height: 36px;
  margin-bottom: 16px;
}
footer .contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.98rem;
  color: #9EB5CC;
}
footer .contact-info div {
  display: flex;
  align-items: center;
  gap: 8px;
}
footer .contact-info img {
  height: 20px;
  width: 20px;
  margin: 0 6px 0 0;
}
@media (max-width: 900px) {
  footer .container { flex-direction: column; align-items: stretch; gap: 22px; }
}

/* ------------------- FAQ, DT & DD, SECTION SPACING ------------------- */
dl { margin-bottom: 24px; }
dt { font-family: var(--font-display); font-size: 1.09rem; color: var(--secondary); font-weight: 600; margin-top: 18px; margin-bottom: 7px; }
dd { margin: 0 0 10px 0; font-size: 1rem; color: #CEDEE6; }

/* ------------------- ACCENT LINK ------------------- */
a.accent-link, .content-wrapper a.accent-link {
  color: var(--secondary);
  text-decoration: underline;
  font-weight: 500;
  transition: color var(--transition);
}
a.accent-link:hover { color: var(--primary); }

/* ------------------- RESPONSIVE & MEDIA ------------------- */
@media (max-width: 600px) {
  .container, .content-wrapper { padding: 0 6px; }
  .section { padding: 18px 3px; min-width: unset; }
  .testimonial-card { flex-direction: column; gap: 6px; padding: 13px 8px; }
  footer { padding: 30px 0 0 0; }
}

/* ----------------- COOKIE CONSENT BANNER & MODAL ----------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #181E25;
  color: #F4F6F8;
  box-shadow: 0 -2px 18px rgba(1,64,126,0.15);
  z-index: 16000;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
  padding: 18px 43px;
  font-size: 1rem;
  border-top: 3px solid var(--primary);
  transition: transform .26s cubic-bezier(.55,.11,.7,.8), opacity .2s linear;
}
.cookie-banner.hide {
  transform: translateY(130%); opacity: 0;
}
.cookie-banner__text {
  color: var(--accent);
  max-width: 400px;
  flex: 1 1 320px;
}
.cookie-banner__actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  padding: 11px 24px;
  background: var(--primary);
  color: #F4F6F8;
  cursor: pointer;
  margin: 0;
  box-shadow: 0 2px 8px 0 rgba(21,27,33,0.10);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.cookie-btn:focus, .cookie-btn:hover {
  background: var(--secondary); color: #151B21; transform: translateY(-2px) scale(1.04);
}
.cookie-btn.cookie-btn--reject { background: #22282F; color: #CEDEE6; border: 1.5px solid var(--metalic-mid); }
.cookie-btn.cookie-btn--reject:hover, .cookie-btn.cookie-btn--reject:focus {
  background: #383F45; color: var(--secondary); border-color: var(--secondary);
}
.cookie-btn.cookie-btn--settings { background: var(--accent); color: var(--primary); border: 1.5px solid var(--secondary); }
.cookie-btn.cookie-btn--settings:hover, .cookie-btn.cookie-btn--settings:focus {
  background: var(--secondary); color: #191E24; border-color: var(--primary);
}
@media (max-width: 900px) {
  .cookie-banner {
    flex-direction: column; align-items: flex-start; gap: 16px; padding: 14px 12px;
  }
  .cookie-banner__text { max-width: unset; }
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 17000;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(34, 44, 59, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.active {
  opacity: 1; pointer-events: auto;
}
.cookie-modal {
  background: #232A31;
  border-radius: var(--radius);
  box-shadow: var(--shadow-dark);
  padding: 36px 30px 28px 30px;
  min-width: 310px;
  max-width: 98vw;
  color: var(--accent);
  display: flex;
  flex-direction: column;
  gap: 19px;
  align-items: flex-start;
  position: relative;
  animation: cookieModalShow 0.36s cubic-bezier(.67,.14,.31,1.02);
}
@keyframes cookieModalShow {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.cookie-modal-close {
  position: absolute;
  right: 16px; top: 16px;
  font-size: 1.7rem;
  background: none;
  color: var(--accent);
  border: none;
  border-radius: 6px;
  padding: 4px 7px;
  transition: background var(--transition), color var(--transition);
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #29343e; color: var(--secondary);
}
.cookie-modal h2 {
  font-size: 1.2rem; color: var(--secondary); margin-top: 0; margin-bottom: 13px;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 10px;
}
.cookie-modal-category {
  display: flex; align-items: center; gap: 12px;
}
.cookie-modal-category input[type=checkbox] {
  accent-color: var(--secondary);
  width: 19px; height: 19px;
}
.cookie-modal-category label {
  font-family: var(--font-body); font-size: 1.07rem; color: #CEDEE6;
}
.cookie-modal-category--essential label {
  font-weight: 600; color: var(--accent);
}
.cookie-modal-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

@media (max-width: 600px) {
  .cookie-modal {
    min-width: 0; width: 98vw; padding: 24px 10px; gap: 12px;
  }
}

/* --------------- ACCESSIBILITY/FOCUS -------------- */
.btn-primary:focus, .btn-primary:active, a:focus, a:active, .cookie-btn:focus, .cookie-btn:active, .mobile-menu-toggle:focus, .mobile-menu-toggle:active, .mobile-menu-close:focus, .mobile-menu-close:active {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(33,161,217,0.22);
}

/* ---------- TRANSITIONS, SHADOWS, HIERARCHY ---------- */
.card, .feature-grid > div, .testimonial-card {
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.section, .feature-grid > div, .testimonial-card, .card {
  margin-bottom: 24px;
}

/* ---------- CUSTOM MICRO-INTERACTIONS ---------- */
.btn-primary, .cookie-btn {
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.card:active, .feature-grid > div:active, .testimonial-card:active {
  transform: scale(0.98);
}

/* ---------- SPACING CLASSES ---------- */
.mt-32 { margin-top: 32px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mb-60, .section { margin-bottom: 60px; }
@media (max-width: 600px) {
  .mb-60, .section { margin-bottom: 32px; }
  .mt-32 { margin-top: 14px !important; }
  .mb-24 { margin-bottom: 13px !important; }
}

/* --------- DARK/LIGHT TEXT ADJUST FOR CONTRAST --------- */
.testimonial-card,
footer nav a,
.card, .feature-grid > div, .section,
.text-section, .content-wrapper {
  color: #151B21;
}
body, header, .cookie-banner, .cookie-modal {
  color: #F4F6F8;
}

/* --------- SECTION BACKGROUND & URBAN FEEL TOUCH --------- */
.section {
  background: linear-gradient(108deg, #21262A 90%, #232A31 100%);
  border: 1.5px solid #232A31;
  box-shadow: 0 2px 12px rgba(21,27,33,0.13);
}

/* -------- INDUSTRIAL FONT/URBAN TOUCH FOR MAIN TITLES -------- */
h1, h2, h3, h4 {
  letter-spacing: 0.012em;
  text-transform: none;
  font-weight: 700;
  font-family: var(--font-display), Arial, "Trebuchet MS", Verdana, sans-serif;
}
h1 {
  text-shadow: 0 2px 14px #1a2433, 0 0.5px 0.5px #333344;
}
h2 {
  text-shadow: 0 1px 6px #191E24;
}

/* ---------- FOR TABLES (e.g., comparison) ---------- */
table {
  width: 100%;
  background: #191E24;
  color: #F4F6F8;
  border-radius: var(--radius);
  border: 1.5px solid #232A31;
  margin-bottom: 26px;
  box-shadow: var(--shadow-dark);
}
th, td {
  padding: 13px 15px;
  border-bottom: 1px solid #29343e;
}
th { background: #222933; color: var(--secondary); font-family: var(--font-display); font-weight: 700; }
td { background: #151B21; }

/* ---------- MISC (404 / EMPTY PAGE) ---------- */
.empty-state {
  width: 100%;
  text-align: center;
  color: #AEBBCD;
  padding: 54px 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.45rem;
}

/* ----------- PRINT OPTIMIZATION ------------- */
@media print {
  * { color: #151B21 !important; background: none !important; }
  header, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
}
