/* ==== 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, 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;
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}
body {
  background: #fff;
  color: #212121;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  min-height: 100vh;
}
*, *:before, *:after {
  box-sizing: inherit;
}
alink, a:visited {
  color: inherit;
  text-decoration: none;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
table {
  border-collapse: collapse;
  width: 100%;
}

/* ==== VARIABLES (with fallbacks) ==== */
:root {
  --color-bg: #fff;
  --color-bg-dark: #18191a;
  --color-primary: #212121;
  --color-secondary: #3B3C36;
  --color-accent: #F1F6F3;
  --color-brand: #2670A3;
  --color-gray: #dedede;
  --color-light: #fbfbfb;
  --color-border: #eaeaea;
  --color-shadow: rgba(34,34,34,0.04);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --radius: 12px;
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
  --shadow: 0 2px 12px rgba(34,34,34,0.045);
  --shadow-intense: 0 8px 32px rgba(0,0,0,0.14);
}

@media (prefers-color-scheme: dark) {
  body {
    background: var(--color-bg-dark);
    color: #fafafa;
  }
  .section, .content-wrapper, .card, .testimonial-card, .service-card, .text-section, table {
    background: #202122;
    color: #f3f4f5;
  }
  .footer-info, .footer-nav {
    background: #18191a;
    color: #cacaca;
  }
  .cookie-consent-banner, .cookie-modal {
    background: #232425;
    color: #fff;
  }
}

/* ==== TYPOGRAPHY ==== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.8px;
}
h1 { font-size: 2.8rem; margin-bottom: 24px; line-height: 1.12; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.45rem; margin-bottom: 12px; }
h4 { font-size: 1.12rem; margin-bottom: 8px; }
p, ul, ol, li, small, span, table, th, td {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-secondary);
}
strong { font-weight: 700; color: var(--color-primary); }
small { font-size: 0.95em; color: #222; opacity: .84; }
em { color: var(--color-primary); font-style: italic; }

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

/* ==== LAYOUT CONTAINERS ==== */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .section {
    padding: 32px 10px;
    margin-bottom: 38px;
  }
}

@media (max-width: 520px) {
  .section {
    padding: 18px 4px;
    margin-bottom: 24px;
    border-radius: 7px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-intense);
  transform: translateY(-2px) 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: flex-start;
    gap: 18px;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 2px 18px rgba(30,30,30, 0.07);
  border: 1px solid #e6e6e6;
  min-width: 220px;
  max-width: 580px;
  transition: box-shadow var(--transition);
}
.testimonial-card p {
  color: #111;
  font-size: 1.06rem;
}
.testimonial-card small {
  color: #2670A3;
  font-weight: bold;
  opacity: .89;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-intense);
}
@media (max-width: 700px) {
  .testimonial-card {
    padding: 14px 10px;
    gap: 12px;
  }
}

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

.text-section {
  background: transparent;
  margin-bottom: 20px;
}

.service-card {
  background: #fcfcfc;
  border: 1px solid #eaeaea;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 30px 22px 18px 22px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  transition: box-shadow var(--transition), transform var(--transition);
}
.service-card span {
  font-size: 1.06rem;
  color: var(--color-brand);
  font-weight: 600;
  margin-top: 6px;
}
.service-card:hover {
  box-shadow: var(--shadow-intense);
  transform: translateY(-2px) scale(1.012);
}

/* ==== NAVIGATION & HEADER ==== */
header {
  background: #fff;
  border-bottom: 1px solid #ebebeb;
  box-shadow: 0 1px 12px rgba(30,30,30, 0.01);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}
.logo img {
  height: 36px;
  width: auto;
  display: block;
}
nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
nav a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1rem;
  opacity: 0.88;
  position: relative;
  padding: 6px 10px;
  border-radius: 7px;
  transition: background var(--transition), color var(--transition);
}
nav a:hover, nav a:focus {
  background: var(--color-accent);
  color: var(--color-brand);
  opacity: 1;
  outline: none;
}
nav .cta.primary {
  background: var(--color-brand);
  color: #fff !important;
  padding: 9px 22px;
  border-radius: var(--radius);
  text-shadow: 0 2px 8px rgba(30,30,30,0.03);
  font-weight: 700;
  font-size: 1.09rem;
  transition: background var(--transition), box-shadow var(--transition), color var(--transition), transform var(--transition);
}
nav .cta.primary:hover, nav .cta.primary:focus {
  background: #113C59;
  color: #e1eafe !important;
  box-shadow: 0 4px 25px rgba(38,112,163, 0.23);
  transform: scale(1.04) translateY(-2px);
}

/* ==== MOBILE MENU ==== */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--color-brand);
  cursor: pointer;
  padding: 4px 12px;
  margin-left: 14px;
  z-index: 201;
  border-radius: 8px;
  transition: background var(--transition);
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-accent);
}
@media (max-width: 950px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(22,23,24, 0.98);
  z-index: 200;
  transform: translateX(100vw);
  transition: transform 0.38s cubic-bezier(.45,0,.25,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100vw;
  height: 100vh;
  box-shadow: 0 0 60px 0 rgba(34,34,34,0.13);
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}
.mobile-menu-close {
  font-size: 2.25rem;
  background: none;
  border: none;
  color: #fff;
  position: absolute;
  top: 22px;
  right: 26px;
  z-index: 201;
  cursor: pointer;
  transition: color var(--transition);
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--color-brand);
  background: #181D21;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 90px 0 0 38px;
  width: 84vw;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.32rem;
  font-family: var(--font-display);
  font-weight: 700;
  opacity: .95;
  padding: 11px 3px 11px 0;
  border-left: 4px solid transparent;
  border-radius: 0 11px 11px 0;
  letter-spacing: -0.5px;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-brand);
  border-left: 4px solid var(--color-brand);
  background: #232f3c;
  outline: none;
}
@media (min-width: 951px) {
  .mobile-menu { display: none !important; }
}

/* ==== BUTTONS ==== */
.cta, .btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 9px 30px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 10px rgba(20,20,21, .04);
  position: relative;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  text-align: center;
  margin-top: 8px;
}
.cta.primary {
  background: var(--color-brand);
  color: #fff;
  border: 1px solid var(--color-brand);
}
.cta.primary:hover, .cta.primary:focus {
  background: #113C59;
  color: #e0effa;
  box-shadow: 0 4px 32px 0 rgba(38,112,163, 0.17);
  outline: none;
  transform: scale(1.04) translateY(-2px);
}
.cta.secondary {
  background: #fff;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--color-accent);
  color: var(--color-brand);
  border-color: var(--color-brand);
}
.btn-outline {
  background: none;
  color: var(--color-primary);
  border: 1.5px solid var(--color-brand);
}
.btn-outline:hover, .btn-outline:focus {
  background: var(--color-brand);
  color: #fff;
}

/* ==== TABLES ==== */
table {
  width: 100%;
  background: #fff;
  border-radius: 13px;
  box-shadow: var(--shadow);
  font-size: 1rem;
  margin-bottom: 20px;
  overflow: hidden;
}
thead tr {
  background: #f5f7fa;
  color: var(--color-primary);
}
th, td {
  padding: 18px 14px;
  text-align: left;
}
th {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.6px;
}
tbody tr:nth-child(odd) {
  background: #fafafa;
}
tbody tr:hover {
  background: #f0f4f9;
}

/* ==== FOOTER ==== */
footer {
  background: #18181B;
  color: #fff;
  padding: 36px 0 0 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-nav, .footer-info {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: flex-start;
  font-size: 0.99rem;
}
.footer-nav a {
  color: #cfcfcf;
  font-family: var(--font-body);
  opacity: 0.92;
  padding: 4px 10px;
  border-radius: 7px;
  transition: color var(--transition), background var(--transition);
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
  background: #22262b;
}
.footer-info span {
  color: #fff;
  font-size: 0.99rem;
  opacity: .83;
  margin-right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-info a {
  color: #c0e5ff;
  font-family: var(--font-body);
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 1px dotted #7bcfff;
  transition: color var(--transition), border-bottom-color var(--transition);
}
.footer-info a:hover {
  color: #fff;
  border-bottom: 1px solid #fff;
}
footer img {
  height: 30px;
  width: auto;
  filter: grayscale(100%) contrast(1.2);
}

@media (max-width: 600px) {
  .footer-nav, .footer-info, footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
  }
  .footer-info span {
    margin-right: 0;
  }
}

/* ==== FORM ELEMENTS ==== */
input, textarea, select {
  appearance: none;
  border: 1.5px solid #cdd4dc;
  background: #fafbfc;
  padding: 10px 13px;
  font-size: 1rem;
  border-radius: 8px;
  font-family: var(--font-body);
  color: #222;
  outline: none;
  transition: border-color 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-brand);
}
label {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 6px;
  display: block;
}

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

/* ==== SPACING HELPERS ==== */
.mt-8 { margin-top: 8px !important; }
.mt-16 { margin-top: 16px !important; }
.mt-24 { margin-top: 24px !important; }
.mt-32 { margin-top: 32px !important; }
.mb-8 { margin-bottom: 8px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mb-32 { margin-bottom: 32px !important; }
.gap-20 { gap: 20px !important; }
.gap-24 { gap: 24px !important; }
@media (max-width: 800px) {
  .content-wrapper, .text-section, .feature-item, .testimonial-card, .service-card {
    margin-left: 0;
    margin-right: 0;
  }
}

/* ==== COOKIE CONSENT BANNER & MODAL ==== */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3000;
  background: #222325;
  color: #fff;
  padding: 17px 24px;
  box-shadow: 0 -2px 32px #2222;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(.42,0,.23,1);
}
.cookie-consent-banner.show {
  opacity: 1;
  pointer-events: auto;
}
.cookie-consent-banner .cookie-text {
  flex: 1 1 auto;
  color: #fff;
  max-width: 440px;
}
.cookie-consent-banner .cookie-buttons {
  display: flex;
  gap: 12px;
  flex: none;
  align-items: center;
}
.cookie-btn, .cookie-btn-settings {
  padding: 8px 21px;
  border-radius: 8px;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.98rem;
  cursor: pointer;
  border: none;
  outline: none;
  transition: background var(--transition), color var(--transition);
}
.cookie-btn.accept {
  background: var(--color-brand);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #113C59;
}
.cookie-btn.reject {
  background: #e9eaeb;
  color: #222;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #23282f;
  color: #fff;
}
.cookie-btn-settings {
  background: transparent;
  color: #fff;
  border: 1.3px solid #49525a;
}
.cookie-btn-settings:hover, .cookie-btn-settings:focus {
  background: #49525a;
  color: #fff;
}

/* ==== COOKIE PREFERENCE MODAL ==== */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,22,26,.67);
  z-index: 3050;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .38s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  max-width: 410px;
  width: 95vw;
  padding: 30px 28px 20px 28px;
  border-radius: 18px;
  box-shadow: 0 6px 48px rgba(8,13,24,0.23), 0 1px 2px rgba(0,0,0,0.03);
  color: #18181b;
  font-family: var(--font-body);
  font-size: 1rem;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeInScale .44s cubic-bezier(.32,.8,.4,1.22);
}
.cookie-modal h3 {
  font-size: 1.39rem;
  font-family: var(--font-display);
  margin-bottom: 9px;
  color: var(--color-primary);
}
.cookie-modal .cookie-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 10px;
}
.cookie-modal .cookie-option {
  display: flex;
  align-items: center;
  gap: 11px;
}
.cookie-modal .cookie-option label {
  font-weight: 500;
}
.cookie-modal .cookie-option input[type="checkbox"] {
  width: 19px; height: 19px;
  margin-left: 0;
}
.cookie-modal .cookie-btns {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  justify-content: flex-end;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 13px; right: 23px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #a7b0ba;
  cursor: pointer;
  transition: color var(--transition);
}
.cookie-modal .modal-close:hover,
.cookie-modal .modal-close:focus {
  color: #113C59;
}
@keyframes fadeInScale {
  0% { opacity: 0; transform: scale(.8); }
  100% { opacity: 1; transform: scale(1); }
}

/* ==== RESPONSIVE DESIGN ==== */
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  .content-wrapper {
    gap: 19px;
  }
  .card,.service-card,.testimonial-card {
    padding: 12px 6px;
    font-size: 0.97rem;
    border-radius: 7px;
  }
  nav a, .footer-nav a {
    font-size: 0.98rem;
    padding: 5px 6px;
  }
  th, td {
    padding: 10px 7px;
  }
}
@media (max-width: 420px) {
  h1{font-size:1.34rem;}
  h2{font-size:1.01rem;}
  footer .container, .footer-nav, .footer-info {
    gap: 4px;
  }
}

/* ==== UTILITY CLASSES ==== */
.text-center {
  text-align: center;
}
.w-100 { width: 100%; }
.w-auto { width: auto; }
.flex-row { display: flex; flex-direction: row; }
.flex-column { display: flex; flex-direction: column; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }

/* ==== Z-INDEX LAYERS ==== */
header { z-index: 100; }
.mobile-menu { z-index: 200; }
.cookie-consent-banner { z-index: 3000; }
.cookie-modal-overlay { z-index: 3050; }

/* ==== MONOCHROME-SOPHISTICATED EFFECTS ==== */
.card, .service-card, .testimonial-card, table {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card:hover, .service-card:hover, .testimonial-card:hover, table:hover {
  box-shadow: var(--shadow-intense);
}

/* ==== VISUAL HIERARCHY ==== */
.section:nth-child(odd),
.card-container>*,
.text-section, .feature-item, .testimonial-card {
  margin-bottom: 20px;
}
.section:last-child, .text-section:last-child, .testimonial-card:last-child, .feature-item:last-child {
  margin-bottom: 0;
}

/* ==== PRINT ==== */
@media print {
  header, footer, .mobile-menu, .cookie-consent-banner, .cookie-modal-overlay { display: none !important; }
  body { color: #000; background: #fff; }
  .section, .card, .service-card, table, .testimonial-card { background: #fff !important; box-shadow: none !important; color: #111 !important; }
}
