/* ===========================
   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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #fff;
  color: #181B1F;
  min-height: 100vh;
}
ol, ul {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  background: transparent;
}
img {
  border-style: none;
  max-width: 100%;
  height: auto;
}
button, input {
  font-family: inherit;
  font-size: inherit;
}

/* ===========================
   FONT FACE
   =========================== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700&display=swap');

body {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 16px;
  background: #fff;
  color: #181B1F;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #181B1F;
  letter-spacing: -0.02em;
}
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

p, li, ul {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 1.05rem;
  color: #26292C;
}
p {
  margin-bottom: 16px;
}
strong {
  color: #181B1F;
  font-weight: 700;
}

/* ===============================
   COLOR VARIABLES (with fallbacks)
   =============================== */
:root {
  --color-primary: #181B1F;
  --color-secondary: #fff;
  --color-gray-100: #f8f8f8;
  --color-gray-200: #e1e1e1;
  --color-gray-300: #c9cdd3;
  --color-gray-400: #959595;
  --color-accent: #567E5C;
  --color-accent-pale: #EFF5F1;
  --color-main-brand: #16405F;
  --color-light-bg: #FAFAFA;
  --color-shadow: rgba(24,27,31,0.08);
}

/* ===========================
   LAYOUT CONTAINERS & SPACING
   =========================== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature-grid,
.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div,
.service-grid > div {
  background: var(--color-gray-100);
  border-radius: 20px;
  box-shadow: 0 4px 20px var(--color-shadow);
  padding: 28px 24px;
  flex: 1 1 270px;
  min-width: 240px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.28s cubic-bezier(.45,.05,.55,.95), background 0.18s;
}
.feature-grid > div:hover,
.service-grid > div:hover {
  background: #fff;
  box-shadow: 0 8px 32px rgba(20,22,30,0.10);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  margin-bottom: 20px;
  border-radius: 18px;
  box-shadow: 0 6px 24px var(--color-shadow);
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.24s;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 24px;
}
/* Spacing for section-content blocks */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 820px;
}

/* ===========================
   BUTTONS & CTA STYLES
   =========================== */
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  padding: 14px 34px;
  background: var(--color-main-brand);
  color: #fff;
  border: none;
  border-radius: 32px;
  box-shadow: 0 2px 16px var(--color-shadow);
  transition: background 0.15s, color 0.15s, box-shadow 0.18s;
  cursor: pointer;
  outline: none;
  margin: 14px 0 0 0;
  letter-spacing: 0.02em;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 24px rgba(86,126,92,0.14);
  text-decoration: none;
}

/* ===========================
   HEADER & NAVIGATION
   =========================== */
header {
  background: #fff;
  box-shadow: 0 1px 28px rgba(24,24,36,0.09);
  padding: 0;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1030;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 20px;
  min-height: 74px;
}
.desktop-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.desktop-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #181B1F;
  font-weight: 600;
  font-size: 1rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.16s, border-bottom 0.2s;
}
.desktop-nav a:hover, .desktop-nav a:focus {
  color: var(--color-main-brand);
  border-bottom: 2px solid var(--color-main-brand);
}
header img {
  height: 40px;
  width: auto;
  margin-right: 12px;
}

/* ===========================
   MOBILE NAVIGATION
   =========================== */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  color: var(--color-main-brand);
  border: none;
  font-size: 2.2rem;
  padding: 0 6px;
  margin-left: 8px;
  cursor: pointer;
  z-index: 1201;
  transition: color 0.14s;
  outline: none;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: var(--color-accent);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(9,12,18, 0.96);
  color: #fff;
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.66,.02,.26,.97);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0 0 0 0;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: transparent;
  color: #fff;
  font-size: 2.5rem;
  border: none;
  margin: 32px 28px 16px 0;
  align-self: flex-end;
  cursor: pointer;
  z-index: 2010;
  transition: color 0.14s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 64px 30px 0 40px;
  width: 100vw;
  font-family: 'Montserrat', Arial, sans-serif;
}
.mobile-nav a {
  color: #fff;
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  transition: color 0.15s;
  padding: 6px 0;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ===========================
   MAIN & FLEX LAYOUTS
   =========================== */
main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===========================
   TESTIMONIALS & CARDS
   =========================== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f8f8f8;
  border-radius: 18px;
  padding: 20px 28px;
  box-shadow: 0 2px 16px var(--color-shadow);
  margin-bottom: 20px;
  max-width: 760px;
  color: #161616;
  font-size: 1.13rem;
  transition: box-shadow 0.18s, background 0.18s;
}
.testimonial-card strong {
  color: #16405F;
  font-weight: 700;
  font-size: 1rem;
}
.testimonial-card:hover {
  box-shadow: 0 8px 30px rgba(22,64,95,0.15);
  background: #fff;
}

/* ===========================
   LISTS
   =========================== */
ul, ol {
  margin-left: 2em;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
  font-size: 1rem;
}
ul li::marker, ol li::marker {
  color: #567E5C;
}

/* ===========================
   AWARDS, FOOTER, ETC.
   =========================== */
.awards {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 1rem;
  color: #959595;
  font-family: 'Montserrat', Arial, sans-serif;
}
footer {
  width: 100%;
  background: #181B1F;
  color: #fff;
  padding: 46px 0 16px 0;
  margin-top: 60px;
  box-shadow: 0 -2px 14px rgba(24,24,31,0.07);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
footer nav {
  display: flex;
  gap: 28px;
  margin: 10px 0;
}
footer nav a {
  color: #e1e1e1;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.14s;
}
footer nav a:hover {
  color: #fff;
  text-decoration: underline;
}
footer .footer-meta {
  font-size: 0.96rem;
  color: #b7b7bb;
  margin-top: 16px;
}
footer img {
  height: 42px;
  width: auto;
}

/* ===========================
   COOKIES CONSENT BANNER
   =========================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: rgba(24,24,31,0.98);
  color: #fff;
  padding: 24px 16px 18px 16px;
  z-index: 4000;
  box-shadow: 0 -2px 20px rgba(24,24,31,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: cookieBannerFadeIn 0.6s;
}
@keyframes cookieBannerFadeIn {
  from { opacity: 0; transform: translateY(100px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner h4 {
  font-size: 1.15rem;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 7px;
}
.cookie-banner p {
  font-size: 0.99rem;
  color: #e1e1e1;
  margin-bottom: 0;
}
.cookie-banner-buttons {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}
.cookie-btn {
  padding: 10px 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 22px;
  transition: background 0.17s, color 0.15s;
  box-shadow: 0 1px 8px var(--color-shadow);
  outline: none;
  cursor: pointer;
}
.cookie-btn.accept {
  background: var(--color-accent);
  color: #fff;
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: #16405F;
  color: #fff;
}
.cookie-btn.reject {
  background: transparent;
  color: #fff;
  border: 1.5px solid #fff;
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: #232529;
  color: var(--color-accent);
}
.cookie-btn.settings {
  background: var(--color-main-brand);
  color: #fff;
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: #232529;
  color: #fff;
}

/* COOKIES PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 5000;
  background: rgba(24, 24, 31, 0.84);
  animation: fadeModalOverlay 0.28s;
  display: flex;
  align-items: center;
  justify-content: center;
}
@keyframes fadeModalOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #161616;
  border-radius: 22px;
  padding: 36px 28px 22px;
  width: 95vw;
  max-width: 410px;
  box-shadow: 0 8px 36px rgba(24,27,31,0.16);
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: scaleModalIn 0.28s;
  position: relative;
}
@keyframes scaleModalIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
.cookie-modal h4 {
  font-size: 1.22rem;
  color: #16405F;
  margin-bottom: 7px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  margin: 5px 0;
}
.cookie-category label {
  font-size: 1rem;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  color: #161616;
  user-select: none;
}
.cookie-switch {
  width: 38px;
  height: 22px;
  background: #e1e1e1;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  margin-right: 6px;
  transition: background 0.14s;
}
.cookie-switch input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cookie-switch .slider {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #c2ccd1;
  position: absolute;
  left: 1px;
  transition: left 0.19s, background 0.17s;
}
.cookie-switch input:checked + .slider {
  left: 17px;
  background: var(--color-accent);
}
.cookie-category .cookie-switch[aria-disabled="true"] {
  opacity: .53;
  pointer-events: none;
}
.cookie-modal-close {
  position: absolute;
  right: 17px;
  top: 16px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: #16405F;
  cursor: pointer;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: #567E5C;
}
.cookie-modal .cookie-btn {
  width: 100%;
  margin: 23px 0 0 0;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 800px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.08rem; }
  .section { padding: 28px 6px; margin-bottom: 40px; }
  .feature-grid, .service-grid { gap: 16px; }
  .feature-grid > div, .service-grid > div { padding: 18px 9px; }
  .content-wrapper { gap: 10px; }
  .text-section, .card-content { padding: 16px 0; }
  .testimonial-card { padding: 16px 10px; gap: 12px; }
  .awards { gap: 8px; }
}
@media (max-width: 600px) {
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  .feature-grid, .service-grid {
    flex-direction: column;
    gap: 12px;
  }
  .feature-grid > div, .service-grid > div {
    min-width: 0;
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }
  .testimonial-card { font-size: 1rem; }
  .text-image-section { flex-direction: column !important; gap: 18px; }
  .section { padding-left: 2px; padding-right: 2px; }
  header .container { flex-direction: row; flex-wrap: wrap; }
  footer .container { gap: 14px; }
}

/* ===========================
   FURTHER MICRO-INTERACTIONS
   =========================== */
.cta-primary:active,
.cookie-btn:active {
  filter: brightness(0.96);
}
.card:hover, .feature-grid > div:focus-within, .service-grid > div:focus-within {
  box-shadow: 0 14px 32px rgba(22,64,95,0.09);
  z-index: 2;
}
nav a:focus-visible, .cta-primary:focus-visible, .cookie-btn:focus-visible {
  outline: 2.5px solid var(--color-accent);
  outline-offset: 2px;
}

/* ===========================
   MISCELLANEOUS
   =========================== */
a {
  transition: color 0.18s, border-bottom 0.18s;
}
hr {
  border: 0;
  border-top: 1px solid #e1e1e1;
  margin: 32px 0;
}
input, textarea {
  border-radius: 7px;
  border: 1.5px solid #c9cdd3;
  padding: 9px 13px;
  font-size: 1.07rem;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  margin-bottom: 18px;
  background: #fff;
  transition: border 0.17s;
}
input:focus, textarea:focus {
  outline: none;
  border-color: #16405F;
}

/* ===========================
   PRINT OPTIMIZATION
   =========================== */
@media print {
  header, footer, .cookie-banner, .cookie-modal-overlay, .mobile-menu { display: none !important; }
  body { color: #111; background: #fff; }
  a { text-decoration: underline; }
  .section { padding: 10px 0; margin-bottom: 22px; }
}


/* ========== END OF CSS ========== */
