/* ==== 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, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { font-size: 16px; }
body { 
  line-height: 1.5; 
  background-color: #fff; 
  color: #222;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
*::before,
*::after {
  box-sizing: border-box;
}
img, svg { display: block; max-width: 100%; height: auto; border: 0; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul, ol { list-style: none; }
button { background: none; border: none; font: inherit; cursor: pointer; }
strong { font-weight: 600; }

/* ==== CSS VARIABLES FOR COLOR SCHEME ==== */
:root {
  --mono-black: #181818;
  --mono-dark: #232832;
  --mono-gray-dark: #44505c;
  --mono-gray: #a6a6a6;
  --mono-light: #f6f6f7;
  --mono-white: #fff;

  --brand-primary: #181818;
  --brand-secondary: #9BB1BF;
  --brand-accent: #fff;
  --brand-highlight: #36505f;
  --brand-cta-bg: #181818;
  --brand-cta-fg: #fff;

  --shadow-card: 0 4px 20px 0 rgba(0,0,0,0.09);
  --shadow-elevated: 0 6px 24px rgba(30,44,75,0.13);
}

/* ==== TYPOGRAPHY ==== */
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: var(--brand-primary);
  font-size: 1rem; /* 16px */
  background: var(--mono-white);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.18;
  color: var(--brand-primary);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
h1 { font-size: 2.7rem; margin-bottom: 16px; /* 43px */ }
h2 { font-size: 2rem;  }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.95rem; }
p, li, blockquote {
  font-size: 1.13rem; /* 18px */
  color: var(--mono-black);
  margin-bottom: 18px;
}
p:last-child,
li:last-child {
  margin-bottom: 0;
}
blockquote {
  font-style: italic;
  color: var(--brand-highlight);
  border-left: 4px solid var(--brand-highlight);
  padding-left: 20px;
  margin-bottom: 0;
  background: var(--mono-light);
}

/* ==== CONTAINERS & LAYOUT ==== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}
.section {
  background: var(--mono-white);
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
}
/* Alignment helpers */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--mono-white);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 28px 22px;
  min-width: 250px;
  flex: 1 1 240px;
  transition: box-shadow 0.22s;
}
.card:hover {
  box-shadow: var(--shadow-elevated);
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--mono-light);
  border-left: 5px solid var(--brand-highlight);
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  max-width: 600px;
  color: var(--mono-black);
}
.testimonial-attribution {
  font-size: 0.98rem;
  color: var(--mono-gray-dark);
  margin-left: 16px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ==== HEADER & NAVIGATION ==== */
header {
  background: var(--mono-white);
  box-shadow: 0 2px 8px rgba(30,44,75,0.03);
  padding: 0 0 1px 0;
  z-index: 20;
  position: relative;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0 14px 0;
  gap: 18px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
header nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--mono-gray-dark);
  letter-spacing: 0.4px;
  position: relative;
  padding: 3px 2px;
  transition: color 0.15s;
}
header nav a:hover,
header nav a:focus {
  color: var(--brand-highlight);
}
header .cta-btn {
  margin-left: 16px;
}
/* Burger */
.mobile-menu-toggle {
  display: none;
  background: var(--brand-primary);
  color: #fff;
  font-size: 2.1rem;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 18px;
  right: 28px;
  z-index: 105;
  transition: background 0.13s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus { outline: 2px dashed var(--brand-highlight); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(24,24,24, 0.96);
  transform: translateX(105%);
  transition: transform 0.32s cubic-bezier(.42,.19,.16,1);
  z-index: 2002;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 34px 22px 20px 22px;
  gap: 30px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  color: var(--mono-white);
  background: rgba(85,85,85,0.09);
  font-size: 2.3rem;
  align-self: flex-end;
  margin-bottom: 20px;
  border-radius: 7px;
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.mobile-menu-close:focus { outline: 2px solid var(--brand-highlight); }
.mobile-menu nav.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  width: 100%;
}
.mobile-menu nav.mobile-nav a {
  color: var(--brand-accent);
  font-size: 1.3rem;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.1em;
  padding: 7px 0;
  transition: color 0.15s, text-shadow 0.15s;
}
.mobile-menu nav.mobile-nav a:hover,
.mobile-menu nav.mobile-nav a:focus {
  color: var(--brand-secondary);
  text-shadow: 0 2px 18px rgba(118,118,118,0.18);
}

/* ==== MAIN BUTTONS ==== */
.cta-btn {
  display: inline-block;
  background: var(--brand-cta-bg);
  color: var(--brand-cta-fg);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.07rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 33px;
  padding: 13px 32px;
  box-shadow: 0 3px 18px 0 rgba(24,24,24,0.04);
  border: 2px solid var(--brand-cta-bg);
  transition: background 0.15s, color 0.13s, border 0.13s, box-shadow 0.18s;
  cursor: pointer;
  margin-top: 10px;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--brand-secondary);
  color: var(--brand-primary);
  border: 2px solid var(--brand-secondary);
  box-shadow: 0 5px 22px 0 rgba(30,44,75,0.08);
}

/* ==== LISTS, ICONS, DETAILS ==== */
ul, ol {
  margin-left: 0;
  margin-bottom: 20px;
}
ul li, ol li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 14px;
  font-size: 1.14rem;
  color: var(--brand-primary);
}
ul li img, ul li svg {
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  display: inline-block;
  filter: grayscale(1) brightness(0.11) contrast(1.6);
}
ol li {
  padding-left: 0;
}
li strong {
  color: var(--brand-highlight);
  font-weight: 700;
}

/* ==== FOOTER ==== */
footer {
  background: var(--mono-black);
  color: var(--mono-light);
  padding: 44px 0 32px 0;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 36px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-nav, .footer-legal, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 150px;
}
.footer-nav a, .footer-legal a {
  color: var(--mono-light);
  font-size: 1rem;
  opacity: 0.84;
  transition: color 0.15s, opacity 0.15s;
}
.footer-nav a:hover, .footer-legal a:hover {
  color: var(--brand-secondary);
  opacity: 1;
}
.footer-contact {
  font-size: 0.97rem;
  color: var(--mono-gray);
}
footer strong {
  color: var(--mono-white);
}

/* ==== COOKIE BANNER (Fixed Bottom) ==== */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--mono-black);
  color: var(--mono-white);
  box-shadow: 0 -2px 16px rgba(0,0,0,0.14);
  z-index: 4560;
  padding: 20px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
  animation: slideupBanner 0.6s cubic-bezier(0.6,0,0.3,1);
}
@keyframes slideupBanner {
  from { transform: translateY(120%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1;  }
}
.cookie-consent-banner .cookie-banner-text {
  font-size: 1.1rem;
  color: var(--mono-light);
  margin-right: 10px;
  max-width: 350px;
}
.cookie-consent-banner .cookie-btn {
  background: var(--brand-secondary);
  color: var(--brand-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-radius: 28px;
  padding: 8px 26px;
  border: none;
  margin-left: 8px;
  margin-right: 4px;
  font-size: 1rem;
  transition: background 0.18s, color 0.13s;
  box-shadow: 0 2px 10px 0 rgba(56,56,76,0.03);
  cursor: pointer;
}
.cookie-consent-banner .cookie-btn:hover, .cookie-consent-banner .cookie-btn:focus {
  background: var(--brand-highlight);
  color: #fff;
}
.cookie-consent-banner .cookie-btn.reject {
  background: var(--mono-white);
  color: var(--brand-primary);
  border: 1.5px solid var(--brand-secondary);
}
.cookie-consent-banner .cookie-btn.reject:hover {
  background: var(--mono-gray);
  color: var(--brand-primary);
}
.cookie-consent-banner .cookie-btn.settings {
  background: var(--mono-gray-dark);
  color: #fff;
}
.cookie-consent-banner .cookie-btn.settings:focus {
  outline: 2px solid var(--brand-highlight);
}

/* ==== COOKIE BANNER: MODAL ==== */
.cookie-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 4561;
  background: rgba(30,30,30,0.64);
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cookie-modal.open {
  display: flex;
  animation: fadeinModal 0.22s cubic-bezier(.54,.06,.62,.99);
}
@keyframes fadeinModal {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal .cookie-modal-content {
  background: var(--mono-white);
  color: var(--brand-primary);
  border-radius: 18px;
  box-shadow: var(--shadow-elevated);
  padding: 34px 30px 28px 30px;
  max-width: 410px;
  min-width: 80vw;
  max-width: 96vw;
  display: flex;
  flex-direction: column;
  gap: 17px;
  font-size: 1.08rem;
  position: relative;
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  top: 12px;
  right: 15px;
  background: var(--mono-light);
  color: var(--mono-black);
  font-size: 1.7rem;
  border-radius: 10px;
  border: none;
  padding: 4px 12px;
  cursor: pointer;
  transition: background 0.17s;
}
.cookie-modal .close-cookie-modal:hover {
  background: var(--mono-gray);
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}
.cookie-modal .cookie-toggle {
  appearance: none;
  display: inline-block;
  width: 30px;
  height: 18px;
  background: var(--mono-light);
  border-radius: 9px;
  border: 1.5px solid var(--mono-gray);
  position: relative;
  transition: background 0.19s, box-shadow 0.17s;
  cursor: pointer;
}
.cookie-modal .cookie-toggle:checked {
  background: var(--brand-highlight);
  border-color: var(--brand-highlight);
}
.cookie-modal .cookie-toggle:before {
  content: '';
  display: block;
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 1.5px; left: 2px;
  box-shadow: 0 1px 7px 0 rgba(30,44,75,0.11);
  transition: left 0.19s;
}
.cookie-modal .cookie-toggle:checked:before {
  left: 14px;
}
.cookie-modal .cookie-category.disabled label { color: var(--mono-gray); }

.cookie-modal .modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.cookie-modal .modal-actions .cookie-btn {
  min-width: 120px;
}

/* ==== RESPONSIVE DESIGN ==== */
@media (max-width: 992px) {
  h1 { font-size: 2.05rem; }
  h2 { font-size: 1.41rem; }
  .container { padding: 0 12px; }
  .navbar nav { gap: 15px; }
}
@media (max-width: 768px) {
  .container {
    max-width: 98vw;
    padding: 0 8px;
  }
  .section {
    margin-bottom: 36px;
    padding: 30px 7px;
    border-radius: 11px;
  }
  .content-wrapper, .text-section {
    gap: 13px;
  }
  header .navbar { padding: 18px 0 9px 0; flex-direction: row; gap: 8px; }
  header nav { display: none; }
  .navbar .cta-btn { margin-left: 0; }
  .mobile-menu-toggle {
    display: flex;
  }
  .card-container, .content-grid, .footer .container {
    flex-direction: column;
    gap: 19px;
    align-items: stretch;
  }
  footer .container { gap: 15px 0; }
}
@media (max-width: 576px) {
  h1 { font-size: 1.375rem; }
  h2 { font-size: 1.07rem; }
  .cta-btn {
    font-size: 0.97rem;
    padding: 10px 14px;
  }
  .testimonial-card { padding: 15px 7px; margin-bottom: 14px; }
  .cookie-consent-banner { flex-direction: column; gap: 9px; align-items: stretch;  }
  .cookie-modal .cookie-modal-content { padding: 18px 6px 15px 9px; }
}
@media (max-width: 510px) {
  .testimonial-card { flex-direction: column; gap: 8px; }
  .card { padding: 12px 7px; }
}

.text-image-section {
  flex-direction: row;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 19px;
    align-items: stretch;
  }
}

/* ==== MICRO-INTERACTIONS & TRANSITIONS ==== */
.card, .section, .cta-btn, .cookie-consent-banner, .mobile-menu, .mobile-menu-close, .cookie-modal .close-cookie-modal {
  transition: box-shadow 0.17s, background 0.17s, color 0.14s, border 0.13s;
}
.cta-btn:active {
  background: var(--brand-highlight);
  color: #fff;
  box-shadow: 0 2px 6px 0 rgba(90,90,110,0.11);
}

/* ==== HIDE SCROLL BEHIND MODALS & MOBILE MENU ==== */
body.menu-open, body.cookie-modal-open {
  overflow: hidden;
}

/* ==== ACCESSIBILITY FOCUS STYLES ==== */
a:focus, button:focus, .cta-btn:focus {
  outline: 2px solid var(--brand-highlight);
  outline-offset: 2px;
  z-index: 12;
}

/* ==== VISUAL EXTRAS: SHADOWS & ELEMENTS ==== */
.card, .section, .testimonial-card, .cookie-modal-content {
  box-shadow: var(--shadow-card);
}

/* ==== ICON COLOR FILTER (svg in icons) ==== */
img[src$=".svg"], .footer-nav img, .footer-legal img {
  filter: grayscale(1) brightness(0.14) contrast(1.2);
}

/* ==== ENSURE NO ELEMENT OVERLAP ==== */
.card, .section, .testimonial-card, .content-wrapper, .footer-nav, .footer-legal, .footer-contact {
  margin-bottom: 20px;
}

/* ==== OVERRIDES FOR SPECIFIC CASES IF NEEDED ==== */
.content-wrapper > .testimonial-card:last-child { margin-bottom: 0; }
footer .footer-contact { margin-bottom: 0; }
footer .footer-nav, footer .footer-legal, footer .footer-contact {
  margin-bottom: 0;
}

/* ==== PRINT STYLES ==== */
@media print {
  .mobile-menu, .cookie-consent-banner, .cookie-modal { display: none !important; }
  header, footer, .section, .container { box-shadow: none !important; }
}

/* ==== END OF MONOCHROME SOPHISTICATED CSS ==== */