/* ---------------------------------------------------
   CSS RESET & BASELINE
-----------------------------------------------------*/
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-size: 100%; font: inherit; vertical-align: baseline;
  box-sizing: border-box;
}
html { scroll-behavior: smooth; }
body {
  background: #fff;
  color: #1a1a1a;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased; /* Visual polish */
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
main, section, article, aside, nav, footer, header {
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: #313131;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #31445B;
  text-decoration: underline;
}
strong { font-weight: 700; }
::-webkit-input-placeholder { color: #888; opacity: 1; }
::-moz-placeholder { color: #888; opacity: 1; }
:-ms-input-placeholder { color: #888; opacity: 1; }
::placeholder { color: #888; opacity: 1; }

/* ---------------------------------------------------
   TYPOGRAPHY
-----------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #222;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 24px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 24px;
  line-height: 1.2;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #31445B;
}
p, ul, ol {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #232323;
  font-size: 1rem;
  margin-bottom: 16px;
  font-weight: 400;
}
ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
}
ul li:before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: #31445B;
  font-size: 1.1em;
  top: 0.1em;
}
ul li strong, ol li strong {
  color: #222;
}

/* Headings dramatic contrast */
h1, h2 {
  color: #171717;
  text-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

/* Typography scale for monochrome_sophisticated */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.1rem; }
}

/* ---------------------------------------------------
   LAYOUT & CONTAINER
-----------------------------------------------------*/
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 36px;
    padding: 28px 8px;
  }
  .container { padding: 0 8px; }
}

.card-container, .content-grid, .features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 22px rgba(0,0,0,0.14), 0 1.5px 6px rgba(0,0,0,0.05);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}
.card:hover, .card:focus {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 8px 32px rgba(49,68,91,0.19), 0 1.5px 6px rgba(0,0,0,0.09);
  z-index: 1;
}

.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: stretch; gap: 20px; }
}

.card-content, .feature-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
}
.feature-item { align-items: flex-start; }

/* ---------------------------------------------------
   HEADER & NAVIGATION
-----------------------------------------------------*/
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(30,30,30,0.03);
  width: 100%;
  z-index: 101;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
}
.main-nav img {
  height: 42px;
  width: auto;
  margin-right: 28px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #232323;
  opacity: 0.88;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #31445B;
  background: #ececec;
}
.main-nav .cta-primary {
  background: #222;
  color: #fff;
  border-radius: 24px;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 10px 28px;
  margin-left: 12px;
  box-shadow: 0 2px 16px rgba(49,68,91,0.10);
  transition: background 0.23s, color 0.23s, box-shadow 0.23s;
}
.main-nav .cta-primary:hover, .main-nav .cta-primary:focus {
  background: #31445B;
  color: #fff;
  box-shadow: 0 6px 32px rgba(49,68,91,0.16)  ;
}

.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 23px;
  top: 22px;
  background: none;
  border: none;
  color: #232323;
  font-size: 2.1rem;
  cursor: pointer;
  z-index: 111;
  transition: color 0.16s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: #31445B;
}
@media (max-width: 1024px) {
  .main-nav { font-size: 1rem; gap:12px; }
  .main-nav img {margin-right: 16px; height: 34px; }
}
@media (max-width: 900px) {
  .main-nav { gap: 7px; font-size: 0.95rem; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ----- MOBILE MENU (Hamburger) ----- */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; left: 0; bottom: 0;
  background: rgba(34,34,34,0.96);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.86,.01,.13,.99);
  visibility: hidden;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
}
.mobile-menu-close {
  font-size: 2.4rem;
  background: none;
  color: #fff;
  border: none;
  cursor: pointer;
  margin: 19px 24px 0 0;
  padding: 4px 0 0 0;
  align-self: flex-end;
  z-index: 10001;
  transition: color .16s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #E5AF3C;
}
.mobile-nav {
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 34px 0 32px;
  gap: 20px;
  margin-top: 12px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  padding: 12px 0;
  border-radius: 6px;
  font-weight: 500;
  width: 100%;
  transition: background .19s, color .19s;
  letter-spacing: 0.01em;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #232323;
  color: #E5AF3C;
  text-decoration: none;
}
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display:none !important; }
}

/* ---------------------------------------------------
   BUTTONS & CTA
-----------------------------------------------------*/
.cta-primary, .cta-secondary {
  display: inline-block;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.13rem;
  border: none;
  border-radius: 22px;
  padding: 11px 34px;
  text-align: center;
  font-weight: 600;
  letter-spacing: .015em;
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s, border .2s;
  color: #fff;
  margin-top: 16px;
  box-shadow: 0 2px 14px rgba(44,44,44,0.07);
}
.cta-primary {
  background: #171717;
}
.cta-primary:hover, .cta-primary:focus {
  background: #31445B;
  color: #fff;
  box-shadow: 0 8px 24px rgba(49,68,91,.18);
}
.cta-secondary {
  background: #fff;
  color: #31445B;
  border: 2px solid #31445B;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #31445B;
  color: #fff;
  border-color: #31445B;
}
@media (max-width: 768px) {
  .cta-primary, .cta-secondary { font-size: 1rem; padding: 8px 18px; }
}

button, .cta-primary, .cta-secondary {
  transition: background .2s, color .2s, box-shadow .2s;
}

/* ---------------------------------------------------
   CARDS & FLEX CONTENT
-----------------------------------------------------*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(49,68,91,0.12);
  margin-bottom: 20px;
  position: relative;
  padding: 20px 22px;
  min-width: 240px;
  flex: 1 1 260px;
}
.card-content { display: flex; flex-direction: column; gap: 8px; justify-content: center; }

@media (max-width: 1100px) {
  .card-container {flex-direction: column;gap:18px;}
}

@media (max-width: 768px) {
  .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .card {
    width: 100%;
    min-width: unset;
    padding: 18px 10px;
  }
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  flex: 1 0 0%;
}
@media (max-width: 900px) {
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px 18px 28px;
  margin-bottom: 20px;
  background: #f2f2f2;
  color: #191919;
  border-radius: 13px;
  box-shadow: 0 2px 16px rgba(80,80,80,0.09);
  max-width: 480px;
  min-width: 220px;
  /* For contrast: light bg, dark text */
}
.testimonial-card strong {
  color: #31445B;
  font-size: 1.06rem;
  margin-top: 2px;
}
.testimonial-card p {
  font-style: italic;
  color: #232323;
  font-size: 1rem;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 8px 36px rgba(34,44,55,0.14);
  background: #e7e7e7;
}
@media (max-width: 900px) {
  .testimonial-card { max-width: 100%; }
}

/* ---------------------------------------------------
   FOOTER
-----------------------------------------------------*/
footer {
  background: #171717;
  color: #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 38px 0 28px 0;
  margin-top: 28px;
}
footer > div {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  margin-bottom: 8px;
}
footer img {
  width: 38px;
  height: auto;
}
footer p {
  color: #ccc;
  margin-bottom: 0;
  font-size: 0.97rem;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top:8px;
  font-size: 0.97rem;
}
footer nav a {
  color: #ccc;
  padding: 0 4px;
  opacity: .9;
  transition: color 0.18s;
}
footer nav a:hover, footer nav a:focus {
  color: #E5AF3C;
}
@media (max-width: 800px) {
  footer > div {flex-direction: column; gap:4px;}
}

/* ---------------------------------------------------
   HERO SECTIONS
-----------------------------------------------------*/
section:first-of-type {
  min-height: 29vh;
  background: #F7F7F7;
  box-shadow: 0px 3px 36px 0 rgba(0,0,0,0.03);
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  padding-top: 32px;
}
section:first-of-type h1 {
  color: #222;
  text-shadow: 0 3px 18px rgba(49,68,91,0.06);
}
@media (max-width: 768px) { section:first-of-type {min-height: 18vh; margin-bottom: 36px; padding-top: 22px;} }

/* ---------------------------------------------------
   LISTS, FAQ & TABS
-----------------------------------------------------*/
ul, ol { margin-bottom: 18px; }
ul li, ol li {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #232323;
  padding-left: 8px;
}
ul li a { text-decoration: underline; color: #31445B; transition: color .18s; }
ul li a:hover, ul li a:focus { color: #E5AF3C; }

/* ---------------------------------------------------
   FORMS & INPUTS (if later used)
-----------------------------------------------------*/
input, textarea, select {
  border: 1px solid #bbb;
  border-radius: 6px;
  padding: 9px 12px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  width: 100%;
  margin-bottom: 18px;
  background: #f8f8f8;
  color: #1a1a1a;
  outline: none;
  transition: border .17s;
}
input:focus, textarea:focus, select:focus {
  border: 1.6px solid #31445B;
}
label { display: block; margin-bottom: 5px; color: #31445B; font-weight: 600; }

/* ---------------------------------------------------
   ICONS INSIDE TEXT
-----------------------------------------------------*/
p img[src*='icon-'] {
  width: 1.1em;
  margin: 0 8px 0 0;
  vertical-align: middle;
  opacity: 0.89;
}

/* ---------------------------------------------------
   COOKIE CONSENT BANNER
-----------------------------------------------------*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #222;
  color: #fff;
  padding: 26px 16px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 12000;
  box-shadow: 0 -4px 32px rgba(30,30,30,0.21);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: all;
}
.cookie-banner p {
  font-size: 1.085rem;
  margin-bottom: 16px;
  color: #fff;
}
.cookie-banner .cookie-btn-row {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}
.cookie-banner button {
  border: none;
  border-radius: 20px;
  padding: 9px 24px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .19s, color .19s;
  box-shadow: 0 1px 6px rgba(34,44,55,0.06);
}
.cookie-banner .accept {
  background: #E5AF3C;
  color: #222;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #D09E2E;
  color: #fff;
}
.cookie-banner .reject {
  background: #f7f7f7;
  color: #171717;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #e7e7e7;
  color: #31445B;
}
.cookie-banner .settings {
  background: none;
  color: #E5AF3C;
  border: 2px solid #E5AF3C;
  padding: 9px 20px;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #E5AF3C;
  color: #222;
}
@media (max-width: 480px) {
  .cookie-banner { padding: 15px 8px 11px 8px; }
  .cookie-banner .cookie-btn-row { flex-direction: column; gap:7px; }
}

/* ---- COOKIE MODAL ---- */
.cookie-modal-overlay {
  position: fixed; left: 0; right:0; top:0; bottom:0;
  background: rgba(34,34,34,0.84);
  z-index: 12499;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s;
}
.cookie-modal-overlay.visible {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  color: #171717;
  border-radius: 12px;
  box-shadow: 0 8px 36px rgba(30,44,55,0.18);
  max-width: 420px;
  padding: 36px 28px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  min-width: 270px;
}
.cookie-modal h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: #31445B;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-modal .cookie-category label {
  margin-bottom: 0;
  color: #232323;
  font-weight: 500;
}
.cookie-modal .cookie-category input[type=checkbox] {
  accent-color: #31445B;
  width: 18px;
  height: 18px;
  margin-right: 7px;
}
.cookie-modal .cookie-footer {
  display: flex;
  gap: 13px;
  margin-top: 26px;
  justify-content: flex-end;
}
.cookie-modal .cookie-save {
  background: #E5AF3C;
  color: #222;
  border: none;
  border-radius: 18px;
  padding: 8px 28px;
  font-family: 'Montserrat';
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.cookie-modal .cookie-save:hover, .cookie-modal .cookie-save:focus {
  background: #31445B;
  color: #fff;
}
.cookie-modal .cookie-dismiss {
  background: none;
  color: #31445B;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0 0 0 8px;
  transition: color .17s;
}
.cookie-modal .cookie-dismiss:hover, .cookie-modal .cookie-dismiss:focus { color: #E5AF3C; }
.cookie-modal .cookie-close {
  position: absolute;
  top: 12px; right: 18px;
  border: none;
  background: none;
  font-size: 2rem;
  color: #31445B;
  cursor: pointer;
  transition: color .17s;
}
.cookie-modal .cookie-close:hover, .cookie-modal .cookie-close:focus { color: #E5AF3C; }

@media (max-width: 480px) {
  .cookie-modal { padding: 22px 9px 16px 12px; }
}

/* ---------------------------------------------------
   RESPONSIVE SPACING
-----------------------------------------------------*/
@media (max-width: 1020px) {
  .container { max-width: 99vw; }
}
@media (max-width: 768px) {
  .container { max-width: 100vw; padding: 0 6px; }
  section, .section { margin-bottom: 36px; padding: 18px 3px; }
}

/* ---------------------------------------------------
   MICRO-INTERACTIONS & TRANSITIONS
-----------------------------------------------------*/
.button, .cta-primary, .cta-secondary, .mobile-menu-toggle, .mobile-menu-close, .cookie-banner button, .cookie-modal .cookie-close {
  transition: background 0.23s, color 0.23s, box-shadow 0.20s, transform 0.18s;
}
.card, .testimonial-card {
  transition: box-shadow 0.17s, background 0.19s, transform 0.17s;
}

/* ---------------------------------------------------
   MONOCHROME SOPHISTICATED EXTRAS
-----------------------------------------------------*/
section {
  background: #fafbfc;
  border-radius: 12px;
  box-shadow: 0 2.5px 18px rgba(68,68,68,0.027);
}
section:nth-of-type(2n) {
  background: #fff;
}

/* for strong contrasts/table cards in sections */
section.dark, section[data-dark='true'] {
  background: #1a1a1a;
  color: #f5f5f5;
}

/* ---------------------------------------------------
   ACCESSIBILITY
-----------------------------------------------------*/
:focus-visible {
  outline: 2px solid #E5AF3C;
  outline-offset: 2px;
}

@media (max-width: 600px) {
  h1, h2, h3 {text-align: left !important;}
  .content-wrapper {padding:0; gap:16px;}
}
