/* ===========================
   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, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *::before, *::after { 
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  background: #fff;
  color: #222;
  -webkit-font-smoothing: antialiased;
}
img, picture {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol { list-style: none; }
button, input, select, textarea {
  font-family: inherit; 
  font-size: 100%;
}

/* ===========================
   BRAND COLORS & TYPOGRAPHY
   =========================== */
:root {
  --mono-black: #131313;
  --mono-gray-dk: #222;
  --mono-gray: #474747;
  --mono-gray-md: #888;
  --mono-gray-lt: #d8dae2;
  --mono-white: #fff;
  --primary: #1B3556;
  --secondary: #F5F7FA;
  --accent: #0A4B44;
  --brand-accent: #157A72;
  --box-radius: 14px;
  --shadow: 0 2px 16px rgba(30,34,36,0.08);
  --shadow-elevated: 0 4px 24px rgba(30,34,36,0.13);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: var(--mono-black);
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; font-weight: 600; }
h4, h5, h6 { font-size: 1rem; font-weight: 600; }

p, li, span, a, td, th, label {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 400;
  color: var(--mono-gray-dk);
  font-size: 1rem;
  line-height: 1.68;
  letter-spacing: 0.01em;
}
p { margin-bottom: 16px; }

strong {
  font-weight: 700;
  color: var(--mono-black);
}
.subheadline {
  font-size: 1.125rem;
  color: var(--mono-gray);
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}

/* ===========================
   LAYOUT STRUCTURE
   =========================== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.section,
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--mono-white);
  border-radius: var(--box-radius);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
section:last-child { margin-bottom: 0; }

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card { 
  background: var(--mono-white);
  border-radius: var(--box-radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  margin-bottom: 20px;
  flex: 1 1 320px;
  position: relative;
  transition: box-shadow 0.23s, transform 0.18s;
  display: flex;
  flex-direction: column;
  min-width: 260px;
}
.card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-4px);
}

.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: var(--secondary);
  border-left: 4px solid var(--primary);
  border-radius: var(--box-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 480px;
  transition: box-shadow 0.2s, border-color 0.18s;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-elevated);
  border-left-color: var(--accent);
}
.testimonial-card p {
  color: var(--mono-black);
  font-style: italic;
  margin-bottom: 6px;
}
.testimonial-card span { font-size: 0.98rem; color: var(--mono-gray); }

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

/* Feature grid for index */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 18px;
}
.feature-grid li {
  background: var(--mono-white);
  border-radius: var(--box-radius);
  box-shadow: var(--shadow);
  padding: 28px 22px 18px 22px;
  flex: 1 1 210px;
  min-width: 230px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  transition: box-shadow 0.15s;
}
.feature-grid li:hover {
  box-shadow: var(--shadow-elevated);
}
.feature-grid img {
  margin-bottom: 10px;
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: grayscale(1) brightness(0.2);
}

/* Blog teasers */
.blog-teasers {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.blog-teasers article {
  background: var(--secondary);
  border-radius: var(--box-radius);
  box-shadow: var(--shadow);
  flex: 1 1 260px;
  min-width: 230px;
  max-width: 340px;
  padding: 30px 18px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
  transition: box-shadow 0.19s, transform 0.12s;
  position: relative;
}
.blog-teasers article:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-4px);
}
.blog-teasers h3 {
  font-size: 1.15rem;
  color: var(--mono-black);
  margin-bottom: 10px;
}
.blog-teasers a {
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.21s;
  margin-top: 8px;
}
.blog-teasers a:hover,
.blog-teasers a:focus { color: var(--accent); text-decoration: underline; }

/* ===========================
   BUTTONS & CALLS TO ACTION
   =========================== */
.cta-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 14px 32px;
  border: none;
  border-radius: 40px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.13rem;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background 0.19s, transform 0.13s, box-shadow 0.2s;
  margin-top: 8px;
  outline: none;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-elevated);
}

button, .button {
  background: var(--mono-black);
  color: #fff;
  border-radius: 40px;
  border: none;
  padding: 11px 22px;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.19s, color 0.15s, box-shadow 0.15s, transform 0.12s;
  outline: none;
}
button:hover, .button:hover, button:focus, .button:focus {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-elevated);
  transform: scale(1.04);
}

/* ===========================
   HEADER & NAVIGATION
   =========================== */
header {
  background: var(--mono-white);
  box-shadow: 0 1px 8px 0 rgba(0,0,0,0.04);
  position: relative;
  z-index: 99;
}
header .container {
  flex-direction: row;
  gap: 0;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px 18px;
  min-height: 74px;
}
header img[src$='.svg'] {
  height: 40px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  color: var(--mono-gray);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 2px 2px 2px 2px;
  position: relative;
  transition: color 0.18s;
}
.main-nav a::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: var(--primary);
  border-radius: 1.5px;
  transition: width 0.22s cubic-bezier(0.57,0.02,0.62,1.39);
  margin-top: 3px;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--mono-black);
}
.main-nav a:hover::after,
.main-nav a:focus::after { width: 70%; }

.cta-primary {
  margin-left: 24px;
}

/* ===========================
   MOBILE MENU
   =========================== */
.mobile-menu-toggle {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2.2rem;
  padding: 5px 12px;
  margin-left: 18px;
  display: none;
  cursor: pointer;
  transition: color 0.22s, transform 0.1s;
}
.mobile-menu-toggle:focus {
  color: var(--accent);
  outline: 2px solid var(--primary);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(18,18,18,0.98);
  color: #fff;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.7,.02,.44,1.03);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  gap: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  margin: 18px 22px 0 0;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.12s, transform 0.08s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--brand-accent);
  outline: 2px solid var(--brand-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-top: 60px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 8px 0;
  border-radius: 5px;
  transition: background 0.16s, color 0.18s, transform 0.11s;
  display: inline-block;
  width: 100%;
  text-align: center;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-accent);
  color: #fff;
  outline: none;
  transform: scale(1.04);
}

/* ===========================
   FOOTER
   =========================== */
footer {
  background: var(--mono-black);
  color: #fff;
  padding: 54px 0 22px 0;
  box-shadow: 0 -2px 12px 0 rgba(0,0,0,0.08);
}
footer .container {
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.85;
  transition: color 0.16s, opacity 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--brand-accent);
  opacity: 1;
}
.footer-contact {
  font-size: 0.98rem;
  opacity: 0.90;
  color: #d8dae2;
}
.footer-contact p {
  margin-bottom: 7px;
  color: #d8dae2;
  font-size: 0.98rem;
}

/* ===========================
   TABLE STYLING
   =========================== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0 24px 0;
  font-size: 1rem;
  background: var(--mono-white);
  box-shadow: var(--shadow);
  border-radius: var(--box-radius);
  overflow: hidden;
}
th, td {
  padding: 13px 14px;
  text-align: left;
}
th {
  background: var(--secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
td {
  font-size: 1rem;
  border-bottom: 1px solid var(--mono-gray-lt);
}
tr:last-child td {
  border-bottom: none;
}

/* ===========================
   LISTS & CONTENT
   =========================== */
ul, ol {
  padding-left: 1.2em;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 8px;
  color: var(--mono-gray-dk);
  font-size: 1rem;
}
ul li img {
  vertical-align: middle;
  margin-right: 10px;
}
dt strong {
  color: var(--mono-black);
}
dd {
  color: var(--mono-gray);
  margin-bottom: 14px;
  margin-left: 0.6em;
}

/* ===========================
   FORMS (Newsletter etc.)
   =========================== */
input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 13px 10px;
  border: 1px solid var(--mono-gray-lt);
  border-radius: 7px;
  background: var(--secondary);
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--mono-black);
  outline: none;
  box-shadow: none;
  transition: border 0.13s, box-shadow 0.12s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border: 1.5px solid var(--accent);
  box-shadow: 0 2px 6px rgba(21,122,114,0.08);
  background: #fff;
}
label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

/* ===========================
   VISUAL ELEMENTS
   =========================== */
hr {
  border: none;
  border-top: 1px solid var(--mono-gray-lt);
  margin: 36px 0;
}
section img.icon, .feature-item img, ul li img {
  width: 38px;
  height: 38px;
  filter: grayscale(1) brightness(0.2);
}

/* ===========================
   MICRO-INTERACTIONS
   =========================== */
.card, .blog-teasers article, .feature-grid li, .testimonial-card {
  transition: box-shadow 0.18s, transform 0.14s;
}
.card:hover, .blog-teasers article:hover, .feature-grid li:hover, .testimonial-card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-3px) scale(1.02);
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 1100px) {
  .container { max-width: 94vw; }
}
@media (max-width: 900px) {
  .container { max-width: 99vw; }
  .main-nav { gap: 20px; }
  section, .section { padding: 32px 10px; }
}
@media (max-width: 768px) {
  
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 10px 8px 7px 8px;
    min-height: 54px;
    gap: 8px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: relative;
    z-index: 1030;
  }
  .cta-primary {
    margin-left: 8px;
    padding: 12px 18px;
    font-size: 1rem;
  }
  section,
  .section {
    padding: 24px 4px;
    margin-bottom: 36px;
  }
  .feature-grid,
  .blog-teasers {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .content-wrapper {
    gap: 15px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card, .blog-teasers article, .feature-grid li, .card {
    max-width: 98vw;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  footer .container {
    gap: 16px;
    padding: 0 8px;
  }
  .footer-nav { gap: 12px; }
}
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.08rem; }
  .cta-primary {
    padding: 10px 12px;
    font-size: 1rem;
  }
  table, th, td {
    font-size: 0.96rem;
  }
}

/* ===========================
   COOKIE CONSENT BANNER
   =========================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #161616;
  color: #fff;
  padding: 22px 18px 18px 18px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 1rem;
}
.cookie-banner p {
  margin-right: 16px;
  margin-bottom: 6px;
  max-width: 420px;
  font-size: 1rem;
  color: #fff;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-banner button,
.cookie-banner .button {
  border-radius: 22px;
  padding: 9px 22px;
  margin: 0 4px;
  box-shadow: none;
  border: none;
  background: var(--brand-accent);
  color: #fff;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.17s, color 0.13s;
}
.cookie-banner button.accept-all { background: var(--brand-accent); color: #fff; }
.cookie-banner button.reject-all { background: #333; color: #fff; }
.cookie-banner button.settings {
  background: none;
  color: var(--brand-accent);
  text-decoration: underline;
  border: 2px solid var(--brand-accent);
  padding: 9px 18px;
  transition: background 0.14s, color 0.16s;
}
.cookie-banner button:hover,
.cookie-banner .button:hover,
.cookie-banner button:focus {
  background: var(--primary);
  color: #fff;
}
.cookie-banner button.settings:hover,
.cookie-banner button.settings:focus {
  background: var(--brand-accent);
  color: #fff;
  border-color: var(--brand-accent);
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    font-size: 0.97rem;
    align-items: flex-start;
  }
  .cookie-banner p { margin: 0 0 9px 0; max-width: none; }
}

/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed; left:0; top:0; right:0; bottom:0;
  background: rgba(18,18,18,0.72);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.23s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.cookie-modal {
  background: #fff;
  color: var(--mono-black);
  border-radius: 18px;
  max-width: 430px;
  width: 96vw;
  padding: 36px 22px 28px 22px;
  box-shadow: var(--shadow-elevated);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  position: relative;
  animation: cookieModalSlideIn 0.31s cubic-bezier(.47,.5,.25,1.28) backwards;
}
@keyframes cookieModalSlideIn {
  0% { transform: translateY(75px) scale(.94); opacity: 0; }
  85% { transform: translateY(-8px) scale(1.04); }
  100% { transform: none; opacity:1; }
}
.cookie-modal h2, .cookie-modal h3 {
  color: var(--primary);
  margin-bottom: 4px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.04rem;
  margin-bottom: 0;
}
.cookie-modal input[type='checkbox'] {
  accent-color: var(--brand-accent);
  width: 1em;
  height: 1em;
  border-radius: 2px;
  margin-top: 0;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}
.cookie-modal .button, .cookie-modal button {
  padding: 9px 22px;
  border-radius: 22px;
  font-size: 1rem;
  font-weight: 700;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 9px;
  right: 15px;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.45rem;
  cursor: pointer;
}
.cookie-modal .modal-close:hover,
.cookie-modal .modal-close:focus {
  color: var(--accent);
}

/* ===========================
   UTILITY SPACING
   =========================== */
.mt-0 { margin-top: 0 !important; }
.mt-20 { margin-top: 20px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-20 { margin-bottom: 20px !important; }
.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }

/* ===========================
   OVERRIDES FOR ACCESSIBILITY & CONTRAST
   =========================== */
.testimonial-card {
  background: var(--secondary);
  color: var(--mono-black);
  box-shadow: var(--shadow);
}
.testimonial-card p, .testimonial-card span, .testimonial-card strong {
  color: var(--mono-black);
}

/* ===========================
   PRINT STYLING (minimal)
   =========================== */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  body, section, .container { background: #fff !important; color: #000 !important; }
  .card, .testimonial-card, .feature-grid li, .blog-teasers article {
    box-shadow: none !important;
    border: 1px solid #222;
  }
}
