/* ----- CSS RESET & BASE FONT SETUP ----- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.7;
  font-size: 1rem;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  position: relative;
  background: #F7F8F9;
}

/* ---------------------------------------------
   MONOCHROME SOPHISTICATED COLOR PALETTE BASED
---------------------------------------------- */
:root {
  --brand-primary: #155D90;
  --brand-secondary: #151515;
  --brand-accent: #C15800;
  --mono-black: #141414;
  --mono-dark: #18191B;
  --mono-charcoal: #333333;
  --mono-mid: #686868;
  --mono-gray: #AAAFB8;
  --mono-light: #EDEDED;
  --mono-white: #fff;
  --shadow: 0 4px 24px 0 rgba(20,20,20,0.06);
  --radius: 12px;
  --font-display: 'Montserrat', 'Roboto', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* ----- TYPOGRAPHY HIERARCHY ----- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--mono-black);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 { font-size: 2.75rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.5rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1.125rem; margin-bottom: 8px; }
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.125rem; }
}
p, li {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--mono-charcoal);
}
p { margin-bottom: 18px; }
strong {
  color: var(--mono-black);
  font-weight: 600;
}
a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: var(--brand-accent);
  text-decoration: underline;
}

/* ----- CONTAINER & SECTION LAYOUTS ----- */
.container {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {  /* Main container for section content */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 600px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .section {
    padding: 24px 4px;
    margin-bottom: 32px;
  }
  .content-wrapper {
    gap: 12px;
  }
  .text-section {
    gap: 10px;
  }
}

/* ----- HEADER & NAVIGATION ----- */
header {
  width: 100%;
  background: var(--mono-white);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px 24px 32px;
  position: relative;
  z-index: 10;
}
header img {
  height: 42px;
  max-width: 180px;
}
header nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
header nav a {
  font-family: var(--font-body);
  color: var(--mono-black);
  font-size: 1rem;
  font-weight: 500;
  padding: 2px 6px;
  transition: color .18s;
  border-radius: 4px;
}
header nav a:hover, header nav a:focus {
  color: var(--brand-primary);
  background: var(--mono-light);
  outline: none;
}
.cta.primary {
  background: var(--mono-black);
  color: var(--mono-white)!important;
  border: none;
  font-family: var(--font-display);
  font-size: 1.1rem;
  padding: 12px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  box-shadow: 0 2px 12px 0 rgba(33,33,33,0.07);
  margin-left: 24px;
  cursor: pointer;
  transition: background .2s, color .17s, box-shadow .2s;
  letter-spacing: 0.01em;
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--brand-primary);
  color: var(--mono-white);
  box-shadow: 0 2px 20px 0 rgba(21,93,144,0.11);
}
.cta.secondary {
  background: transparent;
  color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
  font-family: var(--font-display);
  border-radius: var(--radius);
  padding: 12px 30px;
  font-weight: 700;
  margin-top: 24px;
  transition: background .2s, color .2s, border .2s;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--brand-primary);
  color: var(--mono-white);
  border-color: var(--brand-primary);
}

@media (max-width: 900px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 10px 18px 10px;
  }
  header nav {
    gap: 14px;
    margin-top: 6px;
    margin-bottom: 5px;
    flex-wrap: wrap;
  }
  .cta.primary {
    margin-left: 0;
    margin-top: 10px;
  }
}

@media (max-width: 768px) {
  header nav,
  .cta.primary {
    display: none;
  }
  header {
    flex-direction: row;
    padding: 12px 6px;
  }
}

/* ----- MOBILE MENU (BURGER NAVIGATION) ----- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--mono-black);
  position: absolute;
  top: 26px;
  right: 20px;
  z-index: 40;
  transition: color .22s;
}
.mobile-menu-toggle:hover,.mobile-menu-toggle:focus {
  color: var(--brand-primary);
  outline: none;
}
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(20,20,20,0.97);
  color: var(--mono-white);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.86,.01,.4,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 45px;
  padding-left: 34px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 22px;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--mono-white);
  cursor: pointer;
  z-index: 10001;
  transition: color .23s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--brand-accent);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--mono-white);
  text-decoration: none;
  padding: 10px 0;
  border-radius: 8px;
  transition: color .18s, background .18s;
  font-weight: 600;
  line-height: 1.4;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--brand-accent);
  background: rgba(255,255,255,.05);
  outline: none;
}

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

/* ---------- MAIN CONTENT FLEX SPACING UTILITIES ---------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative; /* allowed for outer card, prevents content overlap */
  background: var(--mono-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 22px;
  min-width: 260px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

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

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--mono-light);
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: 0 2px 8px 0 rgba(40,40,40,0.04);
  flex-direction: column;
  min-width: 230px;
  max-width: 540px;
}
.testimonial-card blockquote {
  color: var(--mono-black);
  font-size: 1.14rem;
  font-family: var(--font-display);
  font-style: italic;
  margin-bottom: 12px;
  line-height: 1.5;
}
.testimonial-card span {
  color: var(--mono-mid);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

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

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.service-list > div {
  flex: 1 1 200px;
  background: var(--mono-white);
  border-radius: var(--radius);
  box-shadow: 0 2px 14px 0 rgba(20,20,20,0.08);
  padding: 22px 16px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow .19s, transform .17s;
}
.service-list > div:hover {
  box-shadow: 0 4px 28px 0 rgba(33,33,33,0.17);
  transform: translateY(-3px) scale(1.03);
}
.service-list h3 {
  font-size: 1.225rem;
  margin-bottom: 8px;
  color: var(--mono-black);
}
.service-list p {
  color: var(--mono-charcoal);
  font-size: 1rem;
}

/* ---------- LIST & TABLES ---------- */
ul {
  margin: 0 0 16px 22px;
  padding: 0;
  color: var(--mono-charcoal);
  font-size: 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
ul li {
  padding-left: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 1.8em;
}
ul li img {
  width: 1.25em;
  height: 1.25em;
  margin-right: 6px;
  filter: grayscale(1) contrast(1.1);
  opacity: 0.75;
  position: relative;
  top: 2px;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--mono-white);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px 0 rgba(33,33,33,0.05);
}
table thead {
  background: var(--mono-dark);
}
table th, table td {
  padding: 16px 14px;
  text-align: left;
  font-size: 1rem;
}
table th {
  color: var(--mono-white);
  letter-spacing: 0.01em;
  font-family: var(--font-display);
  font-weight: 700;
}
table td {
  color: var(--mono-black);
  border-bottom: 1px solid var(--mono-light);
}
table tr:last-child td {
  border-bottom: none;
}

/* ----- FOOTER STYLING ----- */
footer {
  background: var(--mono-black);
  color: var(--mono-white);
  padding: 44px 0 18px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
footer img {
  height: 42px;
  margin-bottom: 12px;
}
footer nav {
  display: flex;
  gap: 22px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
footer nav a {
  color: var(--mono-light);
  font-weight: 500;
  font-size: 1rem;
  transition: color .19s;
}
footer nav a:hover { color: var(--brand-accent); }
footer p {
  color: var(--mono-gray);
  font-size: 0.97rem;
}

@media (max-width: 600px) {
  footer {
    padding: 30px 0 14px 0;
    gap: 14px;
  }
  footer img {
    height: 32px;
  }
  footer nav {
    gap: 10px;
    font-size: 0.97rem;
  }
}

/* ----- FORMS (OPTIONAL, FOR FUTURE) ----- */
input, textarea, select {
  border: 1px solid var(--mono-gray);
  background: var(--mono-white);
  padding: 12px 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--mono-black);
  border-radius: 6px;
  transition: border .18s;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--brand-primary);
}

/* ----- COOKIE BANNER ----- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 10001;
  padding: 22px 18px;
  background: var(--mono-black);
  color: var(--mono-white);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 30px;
  box-shadow: 0 -2px 22px 0 rgba(20,20,20,0.13);
  font-size: 1.02rem;
  transition: transform .36s cubic-bezier(.62,.01,.5,1);
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner__text {
  flex: 1 1 260px;
  color: var(--mono-white);
}
.cookie-banner__actions {
  display: flex;
  gap: 18px;
}
.cookie-btn, .cookie-banner button {
  background: var(--brand-primary);
  color: var(--mono-white);
  border: none;
  border-radius: 7px;
  padding: 9px 20px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background .18s, color .17s;
  font-family: var(--font-display);
}
.cookie-btn:active, .cookie-btn:focus {
  outline: 2px solid var(--brand-accent);
}
.cookie-btn.settings {
  background: transparent;
  color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
  transition: background .2s;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--brand-primary);
  color: var(--mono-white);
}
.cookie-btn.reject {
  background: var(--mono-mid);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--mono-black);
  color: var(--brand-accent);
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.97rem;
    padding: 18px 7px;
  }
  .cookie-banner__actions {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }
}

/* ----- COOKIE MODAL POPUP ----- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 11000;
  left: 0; right: 0; top: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(20,20,20,0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .32s;
}
.cookie-modal {
  background: var(--mono-white);
  color: var(--mono-black);
  padding: 34px 22px 28px 22px;
  border-radius: var(--radius);
  box-shadow: 0 8px 42px 0 rgba(44,44,44,0.26);
  max-width: 420px;
  min-width: 260px;
  width: 90vw;
  position: relative;
  animation: popInCookie .25s cubic-bezier(.7,0,.6,1.21);
}
@keyframes popInCookie {
  0% {transform: scale(.95); opacity: 0.2;}
  100% {transform: scale(1); opacity: 1;}
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 12px;
  background: none;
  border: none;
  color: var(--mono-mid);
  font-size: 1.7rem;
  cursor: pointer;
  transition: color .15s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--brand-accent);
  outline: none;
}
.cookie-modal h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  font-family: var(--font-display);
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 8px 0px;
}
.cookie-category strong {
  font-size: 1rem;
  color: var(--mono-black);
  font-family: var(--font-display);
}
.cookie-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
}
.cookie-toggle input {
  opacity: 0;
  width: 36px;
  height: 22px;
  position: absolute;
  left: 0;
  top: 0;
}
.cookie-toggle span {
  width: 38px;
  height: 22px;
  background: var(--mono-gray);
  display: block;
  border-radius: 12px;
  margin-left: 4px;
  transition: background .17s;
  position: relative;
}
.cookie-toggle input:checked + span {
  background: var(--brand-primary);
}
.cookie-toggle span::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: var(--mono-white);
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 4px 0 rgba(30,30,30,0.09);
}
.cookie-toggle input:checked + span::after {
  transform: translateX(16px);
}
.cookie-category small {
  margin-left: 10px;
  color: var(--mono-mid);
  font-size: 0.95rem;
}
.cookie-modal .cookie-btn {
  margin-top: 16px;
  width: 100%;
  padding: 10px 0;
}

/* ----- MICRO INTERACTIONS, SHADOWS, TRANSITIONS ----- */
.card, .service-list > div {
  transition: box-shadow .18s cubic-bezier(.43,.07,.33,1), transform .18s cubic-bezier(.68,0,.33,1);
}
.card:focus-within, .card:hover,
.service-list > div:focus-within, .service-list > div:hover {
  box-shadow: 0 4px 32px 0 rgba(44,44,44,0.10);
  transform: translateY(-3px) scale(1.02);
}

.cta.primary, .cta.secondary, .cookie-btn, .cookie-btn.settings,
.mobile-menu-toggle, .mobile-menu-close {
  transition: background .18s, color .2s, box-shadow .15s, opacity .14s;
}

/* ---------- MISC: IMAGES & ICONS ---------- */
img {
  max-width: 100%;
  height: auto;
}

/* ---------- RESPONSIVE LAYOUTS ---------- */
@media (max-width: 1100px) {
  .container {
    max-width: 94vw;
  }
}
@media (max-width: 990px) {
  .service-list {
    flex-direction: column;
    gap: 18px;
  }
  .service-list > div {
    min-width: 180px;
    width: 100%;
  }
  .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 600px) {
  .testimonial-card {
    padding: 14px 7px;
    min-width: 170px;
    font-size: 0.95rem;
  }
  .card {
    padding: 12px 8px;
    font-size: 0.98rem;
    min-width: 130px;
  }
}

/* ---------- SELECTION COLOR ---------- */
::selection {
  background: #222;
  color: #fff;
}

/* ---------- OVERRIDES for ACCESSIBILITY ---------- */
.testimonial-card blockquote, .testimonial-card span {
  color: #121212;     /* Always strong contrast */
}

/* ---------- HIDE/SHOW UTILS ---------- */
.hide {
  display: none!important;
}
section {
  padding: 15px;
}
/* -- END CSS -- */
