/* 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, menu, 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, 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 {
  line-height: 1.15; 
  -webkit-text-size-adjust: 100%;
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  background: #fff;
  color: #111217;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #fff;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
  background: transparent;
  transition: color 0.2s;
}
ul, ol {
  list-style-type: none;
}

/* VARIABLES - with fallbacks */
:root {
  --primary: #111217; /* almost black for mono sophistication */
  --secondary: #fff;
  --mid: #ccccce;
  --gray-light: #f5f5f7;
  --gray: #e6e6e7;
  --gray-medium: #888a91;
  --brand: #294270;
  --accent: #B56819;
}

/* GENERAL CONTAINERS & BODY */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

main {
  flex: 1 1 0%;
  width: 100%;
  margin-top: 0;
}

/* HEADER/NAVIGATION */
header {
  background: var(--secondary);
  border-bottom: 1px solid #e0e0e0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 20px;
}
header img {
  height: 48px;
}
nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
}
nav a {
  position: relative;
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 500;
  color: var(--primary);
  font-size: 16px;
  padding: 6px 0;
  transition: color 0.18s;
}
nav a:after {
  display: block;
  content: '';
  border-bottom: 2px solid var(--primary);
  transform: scaleX(0);
  transition: transform 0.24s cubic-bezier(.54,0,.18,1);
  margin-top: 3px;
}
nav a:hover, nav a:focus {
  color: var(--brand);
}
nav a:hover:after, nav a:focus:after {
  transform: scaleX(1);
}

.cta {
  background: var(--primary);
  color: var(--secondary);
  border-radius: 8px;
  padding: 10px 28px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 12px 0 rgba(16, 19, 22, 0.08);
  border: none;
  cursor: pointer;
  display: inline-block;
  transition: background 0.15s, color 0.15s, box-shadow 0.21s;
  margin-left: 20px;
}
.cta:hover, .cta:focus {
  background: var(--brand);
  color: var(--secondary);
  box-shadow: 0 6px 32px 0 rgba(16, 19, 22, 0.12);
  outline: none;
}
.cta.secondary {
  background: var(--secondary);
  color: var(--primary);
  border: 2px solid var(--primary);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--primary);
  color: var(--secondary);
}

/* === MOBILE BURGER MENU === */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: var(--secondary);
  border-radius: 6px;
  font-size: 28px;
  padding: 6px 18px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  margin-left: 8px;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--accent);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--secondary);
  box-shadow: 0 6px 28px 1px rgba(16, 19, 22, 0.22);
  transform: translateX(-100vw);
  transition: transform 0.37s cubic-bezier(.78,0,.18,1);
  z-index: 12000;
  padding: 0;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: transparent;
  color: var(--primary);
  border: none;
  font-size: 32px;
  align-self: flex-end;
  margin: 32px 32px 0 0;
  cursor: pointer;
  transition: color 0.21s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 60px;
  gap: 24px;
}
.mobile-nav a {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  padding: 12px 32px;
  border-radius: 6px;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--gray-light);
  color: var(--brand);
}

@media (max-width: 1000px) {
  header .container {
    gap: 12px;
  }
  nav {
    gap: 16px;
  }
}
@media (max-width: 860px) {
  nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* === HERO SECTION / TITLES === */
.hero {
  background: linear-gradient(93deg, #f5f5f8 65%, #f0f1f3 100%);
  border-bottom: 1px solid var(--gray);
}
.hero .container {
  align-items: center;
  justify-content: center;
  min-height: 360px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  margin: 0 auto;
}
.hero h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--primary);
  margin-bottom: 16px;
  margin-top: 0;
  max-width: 900px;
  text-shadow: 0 2px 12px rgba(41, 66, 112, 0.04);
}
.hero p {
  font-size: 20px;
  color: var(--gray-medium);
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 760px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  margin-top: 0;
}
h2 {
  font-size: 32px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 22px;
  font-weight: 650;
}
h4 {
  font-size: 18px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--secondary);
  border-radius: 18px;
  box-shadow: 0 4px 48px 0 rgba(41, 66, 112, 0.03);
}
/* Force proper spacing if used */
.section:not(:last-child) {
  margin-bottom: 60px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 12px;
}

/* LISTS & CHECKS */
ul, ol {
  margin-left: 24px;
  color: var(--primary);
  font-size: 16px;
  margin-bottom: 6px;
}
ul li, ol li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 0.7em;
  line-height: 1.7;
}
ul li:before {
  content: '\2022';
  position: absolute;
  left: -1em;
  color: var(--accent);
  font-size: 1.32em;
}

/* SERVICE-LIST */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 24px;
}
.service-list > div {
  flex: 1 1 260px;
  background: var(--gray-light);
  border-radius: 13px;
  box-shadow: 0 1px 12px 0 rgba(60,62,67,0.04);
  padding: 30px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 245px;
  max-width: 350px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.service-list > div:hover, .service-list > div:focus-within {
  box-shadow: 0 8px 40px 0 rgba(41,66,112,0.08);
  transform: translateY(-4px) scale(1.02);
}
.service-list h3 {
  font-size: 20px;
  margin-bottom: 7px;
  color: var(--primary);
}
.service-list p {
  color: var(--gray-medium);
  font-size: 16px;
  margin-bottom: 8px;
}
.price {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--accent);
  background: #fff;
  border-radius: 8px;
  padding: 2px 12px;
  margin-top: 10px;
  box-shadow: 0 1px 4px 0 rgba(41, 66, 112, 0.09);
}

/* TESTIMONIAL CARDS */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 32px 20px 32px;
  margin-bottom: 20px;
  border-radius: 15px;
  background: #ffffff;
  border: 1px solid var(--gray);
  box-shadow: 0px 3px 18px 0 rgba(24, 33, 42, 0.05);
  max-width: 680px;
  transition: box-shadow 0.17s, transform 0.18s;
}
.testimonial-card p {
  font-size: 17px;
  color: var(--primary);
  line-height: 1.65;
}
.testimonial-author {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--gray-medium);
  font-size: 15px;
  letter-spacing: 0.01em;
}
.testimonial-card:hover {
  box-shadow: 0 6px 44px 0 rgba(41,66,112,0.10);
  transform: translateY(-2px) scale(1.02);
}

/* CARDS, CARD-GRIDS, FEATURE-LIST */
.card-container, .card-grid, .feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 20px 0 rgba(41,66,112,0.04);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.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;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--gray-light);
  border-radius: 12px;
  padding: 28px 20px;
  margin-bottom: 20px;
}

/* GLOBAL SPACING PATTERNS ENFORCED BELOW */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; margin-bottom: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* BUTTON & LINK GENERAL */
button, .cta {
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.18s;
}

a {
  transition: color 0.16s;
}
a:focus {
  outline: 2px solid var(--accent);
}

/* FORM STYLES - where present */
input, textarea, select {
  font-family: inherit;
  font-size: 16px;
  color: #23242a;
  background: var(--gray-light);
  border: 1px solid var(--gray);
  border-radius: 7px;
  padding: 10px 12px;
  margin-bottom: 15px;
  transition: border 0.16s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--brand);
  outline: none;
}

/* FOOTER */
footer {
  background: var(--primary);
  color: var(--secondary);
  padding: 48px 0 24px 0;
  margin-top: 48px;
}
footer .container {
  align-items: flex-start;
  flex-direction: row;
  justify-content: space-between;
  gap: 36px;
}
footer img {
  height: 42px;
  margin-bottom: 12px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
}
footer nav a {
  color: var(--secondary);
  font-size: 16px;
  font-weight: 500;
  opacity: 0.88;
  transition: opacity 0.16s;
}
footer nav a:hover, footer nav a:focus {
  opacity: 1;
  text-decoration: underline;
}
footer p {
  font-size: 15px;
  color: var(--gray);
  opacity: 0.82;
  margin-top: 20px;
}

/* ======================== COOKIE BANNER & MODAL ========================= */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #111217e6;
  color: #fff;
  z-index: 13000;
  box-shadow: 0 -2px 32px 0 rgba(41,66,112,0.20);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 32px;
  animation: cookie-slide-up 0.7s cubic-bezier(.66,0,.15,1);
}
@keyframes cookie-slide-up {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: #fff;
  font-size: 16px;
  flex: 1;
  margin-bottom: 0;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial;
  font-size: 15px;
  border-radius: 6px;
  border: none;
  padding: 10px 20px;
  margin: 0 2px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.13s, color 0.13s, box-shadow 0.16s;
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 1px 6px 0 rgba(41,66,112,0.06);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--accent);
  color: #fff;
}
.cookie-btn.settings {
  background: var(--gray);
  color: var(--primary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--brand);
  color: #fff;
}

/* Cookie modal overlay and modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 14000;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(36,38,41,0.65);
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #fff;
  color: var(--primary);
  border-radius: 18px;
  box-shadow: 0 16px 96px 10px rgba(41,66,112,0.16);
  max-width: 400px;
  width: 94vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 38px 36px 20px 36px;
  gap: 20px;
  animation: modal-fade-in 0.53s cubic-bezier(.74,0,.13,1);
}
@keyframes modal-fade-in {
  0% { transform: scale(0.92); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}
.cookie-category label {
  margin-left: 8px;
  font-size: 15px;
}
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: var(--gray);
  border-radius: 16px;
  transition: background 0.13s;
}
.cookie-switch input:checked + .cookie-slider {
  background: var(--brand);
}
.cookie-slider:before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: 0.19s;
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(17px);
  background: var(--brand);
}
.cookie-modal-actions {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 22px; right: 22px;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--accent);
}

/* === UTILITIES & EFFECTS === */
.rounded {
  border-radius: 12px;
}
.shadow {
  box-shadow: 0 2px 40px 0 rgba(41,66,112,0.09);
}
.mono-bg {
  background: var(--gray-light);
}
.primary {
  color: var(--primary)!important;
}
.hide {
  display: none !important;
}

/* TYPOGRAPHY SCALE ENFORCED */
h1 { font-size: 48px; }
h2 { font-size: 32px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
p, li, ul, ol, .testimonial-author { font-size: 16px; }
small { font-size: 14px; }

/* RESPONSIVE - MOBILE FIRST */
@media (max-width: 1150px) {
  .container {
    max-width: 96vw;
  }
  .service-list > div {
    min-width: 210px;
    max-width: 290px;
    padding: 20px 12px;
  }
}
@media (max-width: 950px) {
  .feature-item, .service-list > div {
    min-width: 170px;
    max-width: 98vw;
  }
  .testimonial-card {
    max-width: 100vw;
    padding-right: 18px; padding-left: 18px;
  }
  .content-wrapper {
    gap: 18px;
  }
  footer .container {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
  }
}
@media (max-width: 768px) {
  .hero h1 {
    font-size: 33px;
  }
  h2 { font-size: 23px; }
  h3 { font-size: 18px; }
  .section {
    margin-bottom: 38px;
    padding: 26px 3vw;
    border-radius: 9px;
  }
  .content-wrapper {
    gap: 12px;
    padding: 0;
  }
  .service-list {
    flex-direction: column;
    gap: 14px;
  }
  .feature-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 13px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 10px;
    margin-bottom: 15px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 8px;
  }
  footer .container {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    padding: 0 8px;
  }
}
@media (max-width: 470px) {
  .container {
    max-width: 100vw;
    padding: 0 3vw;
  }
  .hero h1 { font-size: 22px; }
  h2 { font-size: 16px; }
  h3, .service-list h3 { font-size: 15px; }
  .cta {
    padding: 8px 10vw;
  }
  .service-list > div {
    padding: 10px 3vw;
    min-width: 0;
    max-width: 99vw;
  }
  .testimonial-card { padding: 10px 6px; }
}

/* =================== PRINT FRIENDLY ===================== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  main, .container { width: 100% !important; padding: 0 !important; }
  .section { box-shadow: none; border-radius: 0; }
}