/* --- 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;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background-color: #fff;
  color: #111;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s;
}
ul, ol {
  margin-left: 1.3em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #181818;
  line-height: 1.1;
}

/* --- TYPOGRAPHY SCALE --- */
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  letter-spacing: -1px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}
h4, h5, h6 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}
p, li, dd {
  font-size: 1rem;
  color: #262626;
  margin-bottom: 12px;
  line-height: 1.7;
}
strong {
  color: #181818;
  font-weight: 700;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(60,60,60,0.10);
}
th, td {
  text-align: left;
  padding: 16px;
  border-bottom: 1px solid #e8e8ea;
}
th {
  background: #f7f7f9;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}
tr:last-child td {
  border-bottom: none;
}
dl {
  margin-bottom: 24px;
}
dt {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  margin-top: 18px;
  font-size: 1.05rem;
}
dd {
  margin-left: 0;
  margin-bottom: 8px;
  color: #393939;
}

/* --- BRAND COLOR PALETTE (MONOCHROME SOPHISTICATED) --- */
:root {
  --color-primary-dark: #181818;
  --color-primary: #22242f;
  --color-text: #25272C;
  --color-accent: #fff;
  --color-gray: #dee1e6;
  --color-secondary: #bcbec4;
  --color-action: #1F3766; /* brand primary */
  --color-success: #1BA256; /* brand secondary */
  --color-link: #1F3766;
  --radius-m: 12px;
  --shadow: 0 4px 30px rgba(30,30,30, 0.07);
  --shadow-elevated: 0 8px 38px rgba(24,24,24, 0.10);
  --transition: 0.22s cubic-bezier(.5,.1,.1,1);
}

body {
  background: #fff;
  color: var(--color-text);
}

/* --- LAYOUT CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  /* Ensures non-wrapping by default; child wrappers can use flex-wrap if needed */
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow);
}

/* --- FLEXBOX SPACING PATTERNS (MANDATED) --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition);
}
.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: #f7f8fa;
  border: 1px solid #e6e8eb;
  box-shadow: 0 2px 14px rgba(40,40,40,0.05);
  border-radius: var(--radius-m);
  margin-bottom: 20px;
  color: #1e1e22;
  transition: background var(--transition), box-shadow var(--transition);
}
.testimonial-card:hover {
  background: #fff;
  box-shadow: var(--shadow-elevated);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* --- HEADER --- */
header {
  background: #fff;
  border-bottom: 1px solid #ECECEC;
  box-shadow: 0 1px 8px rgba(20,20,20,0.03);
  position: relative;
  z-index: 30;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 20px;
  height: 84px;
}
header a img {
  height: 38px;
  width: auto;
  margin-right: 20px;
  display: block;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 26px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #23242b;
  padding: 7px 6px;
  border-radius: 7px;
  position: relative;
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-action);
  background: #e6eaf0;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  height: 48px;
  background: var(--color-action);
  color: #fff;
  border-radius: 30px;
  font-size: 1.07rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.3px;
  box-shadow: 0 1px 8px rgba(25, 30, 35, 0.05);
  border: none;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), color var(--transition), transform var(--transition);
  margin-left: 14px;
}
.cta-btn:hover, .cta-btn:focus {
  background: #151a26;
  color: var(--color-accent);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 2px 16px rgba(31,55,102,0.10);
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #26242a;
  cursor: pointer;
  padding: 8px 13px;
  margin-left: 12px;
  border-radius: 8px;
  transition: background var(--transition);
  z-index: 40;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #e6e8ed;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 92vw;
  max-width: 370px;
  height: 100vh;
  background: #f7f7fa;
  box-shadow: -8px 2px 32px rgba(30,30,35,0.17);
  z-index: 120;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px 28px 24px 28px;
  gap: 23px;
  transform: translateX(100%);
  transition: transform 0.39s cubic-bezier(.82,.03,.23,.99);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.3rem;
  color: #191a1e;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  color: #23242b;
  font-size: 1.12rem;
  padding: 12px 5px;
  border-radius: 7px;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #e6eaf0;
  color: var(--color-action);
}
@media (max-width: 1020px) {
  header .container {
    gap: 6px;
  }
  .main-nav {
    gap: 10px;
  }
  .cta-btn {
    margin-left: 4px;
  }
}
@media (max-width: 820px) {
  .main-nav a {
    font-size: 0.96rem;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  header .container {
    height: 60px;
    gap: 10px;
    padding: 0 12px;
  }
  .cta-btn {
    height: 40px;
    padding: 0 16px;
    font-size: 0.97rem;
  }
  .mobile-menu {
    padding: 17px 13px 20px 20px;
    max-width: 100vw;
    width: 100vw;
  }
}

/* --- SECTIONS & SPACING --- */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
section:last-child {
  margin-bottom: 0;
}
.text-section {
  margin-bottom: 26px;
  background: #fafbfc;
  border-radius: 10px;
  padding: 22px 18px 12px 18px;
  box-shadow: 0 1px 6px rgba(40,40,40,0.05);
}
/* Special .card and .card-container use above, with shadows and gaps */

/* --- HERO AREA --- */
.content-wrapper > h1:first-child, .content-wrapper h1 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 2.25rem;
  color: #1b1b1d;
}
.content-wrapper > p:first-of-type {
  margin-bottom: 24px;
  color: #353540;
}

/* --- FEATURES, PROCESS, FAQ LIST --- */
ul, ol {
  padding-left: 1.2em;
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 10px;
  font-size: 1.01rem;
  color: #161a20;
}
ol {
  list-style-type: decimal;
}
ul {
  list-style: disc inside;
}

/* --- FOOTER --- */
footer {
  background: #131313;
  color: #f3f3f8;
  border-top: 1px solid #23242b;
  padding: 40px 0 28px 0;
  margin-top: 50px;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-left: 10px;
}
.footer-nav a {
  color: #e4e7ee;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  transition: color var(--transition);
  margin-bottom: 2px;
}
.footer-nav a:hover {
  color: #bcbec4;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.97rem;
  color: #ccccd0;
  margin-left: 20px;
}
footer a img {
  height: 36px;
  filter: grayscale(100%) contrast(1.15);
  opacity: 0.94;
  margin-right: 16px;
}
@media (max-width: 800px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .footer-nav {
    margin-left: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
  }
  .footer-contact {
    margin-left: 0;
  }
}
@media (max-width:500px) {
  footer {
    padding: 24px 0 20px 0;
  }
  .footer-nav {
    gap: 8px;
  }
}

/* --- TABLES --- */
table {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 18px;
}
th, td {
  padding: 14px 10px;
}
th {
  background: #f5f6fa;
  color: #23242b;
}

/* --- MOBILE RESPONSIVE LAYOUT <768px --- */
@media (max-width: 768px) {
  .container {
    padding: 0 7px;
    max-width: 100vw;
  }
  section, .section {
    padding: 24px 0px;
  }
  .content-wrapper {
    gap: 12px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .content-grid, .card-container, .feature-item {
    flex-direction: column !important;
    gap: 18px !important;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px !important;
  }
  .card {
    margin-bottom: 18px;
  }
  footer .container {
    gap: 18px;
  }
}

/* --- BUTTON, FORM, LINK STYLES --- */
button, .cta-btn {
  outline: none;
  border: none;
}
button:active, button:focus-visible, .cta-btn:focus-visible {
  outline: 2.5px solid var(--color-success);
  outline-offset: 2px;
}
a {
  transition: color 0.16s, border-color 0.14s;
}
a:focus-visible {
  outline: 2px solid var(--color-success);
  outline-offset: 2px;
}
/* Paragraph and inline links */
p a, .text-section a:not(.cta-btn) {
  color: var(--color-link);
  text-decoration: underline;
  font-weight: 600;
}
p a:hover, .text-section a:not(.cta-btn):hover {
  color: var(--color-success);
}

/* --- FORM ELEMENTS (for contact forms, etc.) --- */
input, textarea, select {
  border: 1.5px solid #dadbea;
  border-radius: 8px;
  padding: 11px 16px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-success);
  box-shadow: 0 2px 10px rgba(27,162,86,0.06);
}

/* --- CARD VISUALS --- */
.card {
  background: #f6f7fb;
  border: 1.5px solid #e4e5ea;
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  border-color: var(--color-action);
  box-shadow: var(--shadow-elevated);
}

/* --- TESTIMONIALS (ensure contrast) --- */
.testimonial-card {
  background: #f7f9fb;
  color: #181a22;
  border: 1.4px solid #d7dae2;
}
.testimonial-card p {
  color: #181a22;
  font-style: italic;
  font-size: 1.07rem;
}
.testimonial-card strong {
  color: #191d29;
}

/* --- FAQ / Accordions --- */
dt {
  margin-top: 16px;
  font-weight: 600;
  color: #191a21;
  font-size: 1.08rem;
}
dd {
  margin-bottom: 6px;
  margin-left: 0;
  color: #53545e;
  line-height: 1.71;
}

/* --- ANIMATION KEYFRAMES --- */
@keyframes slideInBottom {
  from { transform: translateY(110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInRight {
  from { transform: translateX(100%); opacity:0; }
  to { transform: translateX(0); opacity:1; }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #181a23;
  color: #fafafd;
  box-shadow: 0 -2px 42px rgba(26,26,32,0.24);
  z-index: 5123;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 34px 20px 24px;
  gap: 36px;
  font-size: 1rem;
  border-top-left-radius: 17px;
  border-top-right-radius: 17px;
  animation: slideInBottom 0.49s cubic-bezier(.45,0,.1,1);
}
.cookie-consent-banner p {
  color: #fafafc;
  margin: 0;
  font-size: 1rem;
}
.cookie-consent-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
.cookie-btn {
  border: none;
  padding: 0 22px;
  height: 44px;
  border-radius: 24px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: 0;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: 0 1px 8px rgba(20,20,30,0.04);
}
.cookie-btn.accept {
  background: var(--color-success);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #183d2a;
  color: #fff;
}
.cookie-btn.reject {
  background: #bcbec4;
  color: #181818;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #23242f;
  color: #fff;
}
.cookie-btn.settings {
  background: #fff;
  color: #1F3766;
  border: 1px solid #c4c4cc;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #f2f4f8;
  color: #1BA256;
}
@media (max-width: 768px) {
  .cookie-consent-banner {
    flex-direction: column;
    gap: 18px;
    padding: 18px 8px 18px 8px;
    font-size: 0.97rem;
    border-radius: 0;
  }
  .cookie-consent-actions {
    gap: 10px;
  }
}

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 6200;
  background: rgba(24,28,36,0.77);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.33s cubic-bezier(.42,0,.03,1);
}
.cookie-modal-content {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 50px rgba(28,30,35,0.18);
  padding: 42px 40px 28px 40px;
  min-width: 340px;
  max-width: 92vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
}
.cookie-modal-header h2 {
  font-size: 1.26rem;
  color: #18191f;
}
.cookie-modal-close {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #181a23;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 12px;
  transition: background var(--transition);
}
.cookie-modal-close:hover {
  background: #e3e6ea;
}
.cookie-switch {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-switch input[type="checkbox"] {
  width: 36px;
  height: 20px;
  accent-color: var(--color-success);
  margin: 0 5px 0 0;
}
.cookie-switch label {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  color: #1a1a1e;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 10px;
}
.cookie-modal-btn {
  padding: 0 20px;
  height: 40px;
  border-radius: 21px;
  border: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  background: #1F3766;
  color: #fff;
  transition: background var(--transition);
}
.cookie-modal-btn:hover, .cookie-modal-btn:focus {
  background: #151a26;
}
@media (max-width: 480px) {
  .cookie-modal-content {
    padding: 22px 8px 18px 8px;
    min-width: 0;
  }
}

/* --- UTILITIES, MICRO-ANIMATIONS, ETC. --- */
.shadow-sm {
  box-shadow: 0 2px 10px rgba(23,26,34,0.07);
}
.rounded-l {
  border-radius: 16px;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.bold {
  font-weight: 700;
}
.uppercase {
  text-transform: uppercase;
}

/* --- VISUAL HIERARCHY CLASSES --- */
.section-titles h1, .section-titles h2, .section-titles h3 {
  margin-bottom: 14px;
}
.section-titles p {
  color: #55585e;
  margin-bottom: 14px;
}

/* --- WHITE SPACE --- */
.spacing-xs { margin-bottom: 8px; }
.spacing-s  { margin-bottom: 14px; }
.spacing-m  { margin-bottom: 24px; }
.spacing-l  { margin-bottom: 40px; }

/* --- PRINT AND SELECTION --- */
::selection {
  background: #bcbec4;
  color: #181818;
}
@media print {
  header, footer, .mobile-menu-toggle, .cookie-consent-banner, .cookie-modal {
    display: none !important;
  }
}

/* --- ACCESSIBILITY --- */
.sr-only {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- BRAND FONTS --- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500|Open+Sans:400,600,700&display=swap');

/* --- END Monochrome Sophisticated Brand CSS --- */
