/* ==========================================================================
   CSS RESET & NORMALIZE - mobile-first responsive, margin & border reset
   ==========================================================================
*/
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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #161617;
  min-height: 100vh;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, picture {
  max-width: 100%;
  display: block;
  height: auto;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #1851a0;
  outline-offset: 2px;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
input, textarea {
  font-family: inherit;
  border: 1px solid #bbb;
  border-radius: 5px;
  padding: 10px;
  background: #fafbfc;
  transition: border 0.2s;
}
input:focus, textarea:focus {
  border-color: #1851a0;
  outline: none;
}
strong, b {
  font-weight: 700;
}

/* ==========================
   BRAND COLOR VARIABLES
   ==========================
*/
:root {
  --primary: #161617;
  --primary-light: #222325;
  --brand-blue: #1851a0;
  --brand-turquoise: #3fd2b1;
  --gray-dark: #161617;
  --gray-mid: #232325;
  --gray-light: #ececec;
  --gray-bg: #f5f7fa;
  --white: #fff;
  --black: #000;
  --border: #e3e4e8;
  --shadow: 0 4px 24px rgba(34, 34, 34, 0.08), 0 1.5px 4px 0 rgba(0,0,0,0.03);
  --radius: 12px;
  --transition: 0.25s cubic-bezier(.5, .2, .1, 1);
  --focus: #1851a0;

  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

/* ==========================
   TYPOGRAPHY
   ==========================
*/
h1 {
  font-family: var(--font-display);
  font-size: 2.2rem; /* 36px */
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -1px;
  margin-bottom: 20px;
  line-height: 1.2;
}
@media (min-width: 640px) {
  h1 {
    font-size: 2.8rem; /* 45px */
  }
}
h2 {
  font-family: var(--font-display);
  font-size: 1.4rem; /* 24px */
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 18px;
  line-height: 1.22;
  letter-spacing: -0.5px;
}
@media (min-width: 640px) {
  h2 {
    font-size: 2rem; /* 32px */
  }
}
h3 {
  font-family: var(--font-display);
  font-size: 1.15rem; /* 18px */
  font-weight: 700;
  color: var(--gray-dark);
  margin-bottom: 10px;
  line-height: 1.24;
}

h4, h5, h6 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
}
p, li, span, label, input, textarea {
  font-family: var(--font-body);
  line-height: 1.58;
  color: #222325;
  font-size: 1rem;
}
.text-section p, .content-wrapper p {
  margin-bottom: 12px;
}
.text-section strong, .content-wrapper strong {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary);
}
ul, ol {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 12px;
}
textarea {
  resize: vertical;
  min-height: 90px;
}

/* ==========================
   CONTAINER & UTILITIES
   ==========================
*/
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.text-section {
  max-width: 700px;
}
.gap-20 { gap: 20px !important; }
.gap-24 { gap: 24px !important; }
.gap-32 { gap: 32px !important; }
.flex-row {
  display: flex;
  flex-direction: row;
}
.flex-col {
  display: flex;
  flex-direction: column;
}
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
/* For layout-specific flex overrides, see below */

/* ==========================
   HEADER / NAVIGATION
   ==========================
*/
header {
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  box-shadow: 0 2px 12px rgba(22,22,23,0.03);
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 68px;
}
header img {
  height: 34px;
  margin-right: 18px;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
header nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--primary);
  font-weight: 500;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
}
header nav a:hover, header nav a.active {
  background: var(--gray-bg);
  color: var(--brand-blue);
}
.btn-primary {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--brand-blue);
  border-radius: 32px;
  padding: 9px 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.2px;
  margin-left: 14px;
  margin-right: 8px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: none;
  position: relative;
  z-index: 2;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--brand-blue);
  color: #fff;
  box-shadow: 0 2px 24px rgba(24,81,160,0.11);
}

/* Hamburger button [mobile-menu-toggle] */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--gray-dark);
  background: none;
  border: none;
  padding: 6px 12px;
  border-radius: 7px;
  margin-left: 8px;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition);
  z-index: 101;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--gray-bg);
  color: var(--brand-blue);
  box-shadow: 0 4px 16px 0 rgba(22,81,160,0.06);
}

@media (min-width: 992px) {
  .mobile-menu-toggle { display: none; }
}

/* ==========================
   MOBILE MENU
   ==========================
*/
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(30,32,34,0.97);
  color: #fff;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s cubic-bezier(.68,-0.55,.27,1.55), opacity .25s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  font-size: 2.2rem;
  background: none;
  color: #fff;
  align-self: flex-end;
  margin: 24px 30px 0 0;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(85,85,85, 0.20);
  color: var(--brand-turquoise);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 17px;
  padding: 40px 36px 0 36px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.5;
  font-weight: 600;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color var(--transition);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--brand-turquoise);
}

@media (min-width: 992px) {
  .mobile-menu { display: none !important; }
}

/* Hide main desktop menu/btn on mobile, show burger */
@media (max-width: 991px) {
  header nav, .btn-primary { display: none; }
}

/* ==========================
   MAIN SECTIONS & LAYOUTS
   ==========================
*/
main {
  background: var(--white);
}
section {
  margin-bottom: 60px;
  padding: 40px 0 42px 0;
  background: var(--white);
}
@media (max-width: 767px) {
  section {
    padding-top: 30px;
    padding-bottom: 32px;
    margin-bottom: 36px;
  }
  .container { padding-left: 12px; padding-right: 12px; }
}

/* FLEX LAYOUTS (required patterns): */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--gray-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 220px;
  flex: 1 1 220px;
  border: 1px solid var(--border);
}
.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: 20px;
  }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px 24px 28px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 2px 24px rgba(20,20,21,0.10);
  border: 1px solid var(--gray-light);
  min-width: 240px;
  max-width: 420px;
  flex: 1 1 240px;
  position: relative;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 24px;
}

/* ==========================
   HOMEPAGE & FEATURES UL/LIs
   ==========================
*/
.feature-item img, .content-wrapper ul img {
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  border-radius: 7px;
  box-shadow: 0 2px 6px rgba(34,34,40,0.04);
  background: var(--gray-bg);
}
.content-wrapper ul {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 12px;
  align-items: stretch;
}
.content-wrapper ul li {
  background: var(--gray-bg);
  border-radius: var(--radius);
  box-shadow: 0 1.5px 6px 0 rgba(34,34,34,0.02);
  border: 1px solid var(--border);
  padding: 18px 14px 18px 14px;
  min-width: 210px;
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), border-color var(--transition), background var(--transition);
}
.content-wrapper ul li:hover {
  box-shadow: 0 4px 16px rgba(34,34,34,0.10);
  border-color: var(--brand-blue);
  background: #fafbfc;
}
.content-wrapper ul li strong {
  font-family: var(--font-display);
  font-size: 1.07rem;
  color: var(--brand-blue);
  margin-bottom: 3px;
}

/* ==========================
   TESTIMONIAL CARDS
   ==========================
*/
.testimonial-card {
  border-left: 6px solid var(--brand-blue);
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 36px rgba(17,17,20,0.06);
  font-family: var(--font-body);
  font-size: 1rem;
}
.testimonial-card p {
  color: var(--primary);
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: #4a4a4b;
  font-family: var(--font-display);
}
.testimonial-card strong {
  color: var(--brand-blue);
}
.testimonial-card img {
  height: 20px;
  width: 20px;
  margin-bottom: -4px;
  display: inline-block;
}

/* ==========================
   FOOTER
   ==========================
*/
footer {
  background: var(--gray-mid);
  color: #fff;
  border-top: 2px solid #18181b;
  font-size: 1rem;
  padding: 0;
  letter-spacing: .03em;
}
footer .container {
  padding-top: 44px;
  padding-bottom: 40px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 36px 26px;
  flex-direction: column;
}
.footer-logo img {
  height: 36px;
  margin-bottom: 9px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  margin-bottom: 8px;
}
footer nav a {
  color: #eaeaea;
  font-family: var(--font-display);
  font-size: 1rem;
  transition: color var(--transition);
}
footer nav a:hover, footer nav a:focus {
  color: var(--brand-turquoise);
}
.footer-contact, .footer-contact a {
  color: #dedede;
  font-size: 0.95rem;
}
.footer-contact a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-social {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-top: 8px;
}
.footer-social a img {
  width: 28px;
  opacity: 0.89;
  transition: opacity var(--transition), filter var(--transition);
}
.footer-social a:hover img {
  opacity: 1;
  filter: brightness(1.35);
}
@media (min-width: 700px) {
  footer .content-wrapper {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px 48px;
  }
  .footer-logo { order: 1; }
  footer nav { order: 2; }
  .footer-contact { order: 3; }
  .footer-social { order: 4; justify-content: flex-end; }
}

/* ==========================
   RESPONSIVE ADJUSTMENTS
   ==========================
*/
@media (max-width: 991px) {
  header .container {
    min-height: 58px;
  }
  .content-wrapper ul {
    gap: 14px;
  }
}
@media (max-width: 767px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.12rem; }

  .content-wrapper {
    gap: 13px;
  }
  .testimonial-card {
    padding: 16px 10px 16px 16px;
    min-width: 90%;
    border-left: 4px solid var(--brand-blue);
  }
}

/* ==========================
   MISC UI ELEMENTS
   ==========================
*/
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}
.social-links a img {
  width: 28px;
  opacity: 0.85;
  transition: opacity .18s, filter .2s;
}
.social-links a:hover img {
  opacity: 1;
  filter: brightness(1.25);
}
input[type="text"] {
  width: 100%;
  max-width: 340px;
  font-size: 1.02rem;
  border: 1.5px solid var(--border);
  margin-bottom: 14px;
  transition: border var(--transition);
}
input[type="text"]:focus {
  border-color: var(--brand-blue);
}

/* ==========================
   COOKIE CONSENT BANNER
   ==========================
*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100%;
  background: #232325;
  color: #fff;
  box-shadow: 0 -2px 24px rgba(21,21,21,0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2001;
  padding: 25px 12px 18px 12px;
  gap: 18px;
  font-size: 1.06rem;
  transition: transform var(--transition), opacity var(--transition);
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.cookie-banner__text {
  text-align: center;
  max-width: 700px;
  font-size: 1.04rem;
  color: #fff;
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  justify-content: center;
}
.cookie-btn {
  font-family: var(--font-display);
  padding: 8px 23px;
  font-weight: 600;
  border-radius: 24px;
  font-size: 1rem;
  border: 2px solid var(--brand-blue);
  color: var(--brand-blue);
  background: #fff;
  margin: 0 7px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.cookie-btn:active, .cookie-btn:focus {
  outline: 2px solid var(--brand-turquoise);
}
.cookie-btn.accept {
  background: var(--brand-blue);
  color: #fff;
  border: 2px solid var(--brand-blue);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #0a284f;
}
.cookie-btn.reject {
  background: #fff;
  color: var(--primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #ededed;
  color: #222;
}
.cookie-btn.settings {
  background: transparent;
  color: var(--brand-turquoise);
  border: 2px solid var(--brand-turquoise);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--brand-turquoise);
  color: #fff;
}

/* Cookie preferences modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(28,28,35,0.90);
  z-index: 2100;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}
.cookie-modal.active {
  pointer-events: all;
  opacity: 1;
}
.cookie-modal__content {
  background: #fff;
  color: #18181b;
  border-radius: var(--radius);
  box-shadow: 0 12px 48px rgba(10,20,30,0.21);
  padding: 38px 28px 26px 28px;
  max-width: 400px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.cookie-modal__title {
  font-family: var(--font-display);
  font-size: 1.33rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 5px;
}
.cookie-modal__category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 12px 0 7px 0;
}
.cookie-modal__category label {
  font-size: 1rem;
  color: var(--primary);
  margin-right: 10px;
}
.cookie-modal__toggle {
  min-width: 44px;
  height: 24px;
  position: relative;
  display: inline-block;
}
.cookie-modal__toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal__slider {
  position: absolute;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: #ced2d3;
  border-radius: 12px;
  transition: background .25s;
}
.cookie-modal__toggle input:checked + .cookie-modal__slider {
  background: var(--brand-turquoise);
}
.cookie-modal__slider:before {
  content: '';
  position: absolute;
  left: 4px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform .25s;
}
.cookie-modal__toggle input:checked + .cookie-modal__slider:before {
  transform: translateX(18px);
}
.cookie-modal__category .always-on {
  color: #999;
  font-size: 0.93rem;
  font-style: italic;
}
.cookie-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 16px;
}
.cookie-modal__close {
  position: absolute;
  top: 11px;
  right: 14px;
  background: none;
  color: var(--brand-turquoise);
  font-size: 1.6rem;
  border: none;
  cursor: pointer;
  opacity: 0.8;
}
.cookie-modal__close:hover {
  color: var(--primary);
  opacity: 1;
}

/* ==========================
   ANIMATIONS & HOVER EFFECTS
   ==========================
*/
.card, .testimonial-card, .content-wrapper ul li {
  transition: box-shadow 0.27s, border 0.25s, background 0.21s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 8px 40px rgba(20,40,70,0.14);
  border-color: var(--brand-turquoise);
}
.btn-primary, .cookie-btn {
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), border var(--transition);
}
.btn-primary:active, .cookie-btn:active {
  transform: scale(0.96);
}

/* ==========================
   VISUAL ENHANCEMENTS & DECORATION
   ==========================
*/
section {
  border-bottom: 1px solid #ececec;
}
section:last-child {
  border-bottom: none;
}
.content-wrapper ul li, .card, .testimonial-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-light);
}

/* ==========================
   MONOCHROME SOPHISTICATED DETAILS
   ==========================
*/
body {
  background: var(--gray-bg);
  color: var(--primary);
}
header, footer, main, .container, section {
  background: var(--white);
}
h1, h2, h3, h4 {
  color: var(--primary);
  /* Dramatic, elegant contrasts */
}
.btn-primary {
  background: var(--white);
  color: var(--brand-blue);
  border-color: var(--brand-blue);
  letter-spacing: 0.5px;
  box-shadow: 0 2.5px 12px rgba(24,81,160,0.07);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--brand-blue);
  color: #fff;
  outline: none;
}

.card, .content-wrapper ul li {
  background: var(--gray-bg);
  color: var(--primary);
  border: 1.2px solid #e4e6ea;
  box-shadow: 0 2px 18px rgba(38,38,43,0.06);
}
.card:hover { background: #f9fafd; border-color: var(--brand-blue); }

.testimonial-card {
  background: #fff;
  border-left: 6px solid var(--brand-blue);
}

.content-wrapper ul li {
  background: #f4f6f8;
  color: #1a1b1d;
}

footer {
  background: #141416;
  color: #eaeaea;
}

/* ==========================
   OVERRIDES FOR MONOCHROME CONTRASTS
   ==========================
*/
footer nav a,
.footer-contact, .footer-contact a {
  color: #c7d0e5;
}
.footer-logo img { filter: grayscale(25%); }

/* ==========================
   GENERAL SPACING OVERRIDES
   ==========================
*/
section, .card, .testimonial-card, .content-wrapper ul li {
  margin-bottom: 20px;
}
.card-container, .content-grid {
  gap: 24px;
}
.content-wrapper ul {
  gap: 24px;
}
@media (min-width: 900px) {
  .content-wrapper ul {
    gap: 36px;
  }
}

/* ==========================
   MISC FIXES
   ==========================
*/
::-webkit-scrollbar {
  width: 6px;
  background: #f9fafd;
}
::-webkit-scrollbar-thumb {
  background: #ededed;
  border-radius: 8px;
}

/* ==========================
   END
   ==========================
*/
