/* --- 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;
  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.5;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- BASE TYPOGRAPHY & GLOBALS --- */
:root {
  --color-bg: #FAFAFA;
  --color-bg-contrast: #212121;
  --color-card: #fff;
  --color-card-dark: #22242A;
  --color-primary: #234276;   /* Brand blue */
  --color-accent: #41B883;   /* Brand green */
  --color-secondary: #888;   /* Mid-gray accent */
  --color-border: #d8d8d8;   /* Subtle border */
  --color-shadow: rgba(0,0,0,0.05);
  --color-error: #ed4337;
  --color-heading: #191A1F;
  --color-body: #333;
  --color-link: #234276;
  --color-link-hover: #41B883;
  --radius: 12px;
  --radius-sm: 7px;
  --shadow-sm: 0 2px 8px rgba(25,26,31,0.09);
  --shadow-lg: 0 8px 32px rgba(25,26,31,0.12);
  --transition: all 0.25s cubic-bezier(0.33,1,0.68,1);
}
body {
  background: var(--color-bg);
  color: var(--color-body);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  word-break: break-word;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--color-heading);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 { font-size: 2.75rem; line-height: 1.15; }
h2 { font-size: 2rem; margin-bottom: 14px; }
h3 { font-size: 1.375rem; margin-bottom: 12px; }
h4 { font-size: 1.125rem; }
h5, h6 { font-size: 1rem; }

p, ul, ol {
  margin-bottom: 18px;
  line-height: 1.65;
  font-size: 1.08rem;
}

ul, ol {
  padding-left: 0;
  list-style: none;
}
ul li, ol li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 10px;
}
ul li img, ol li img {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-right: 10px;
  position: absolute;
  left: 0;
  top: 0;
  filter: grayscale(80%);
}

strong { font-weight: 700; }

blockquote {
  border-left: 4px solid var(--color-primary);
  background: #f4f4f8;
  padding: 18px 24px;
  margin-bottom: 24px;
  font-style: italic;
}

/* --- BUTTONS & INTERACTIVE --- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--color-primary);
  color: #fff!important;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.13rem;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(20,22,25,0.08);
  cursor: pointer;
  transition: var(--transition);
  margin-top: 10px;
  margin-bottom: 10px;
  outline: none;
  gap: 10px;
}
.cta:hover, .cta:focus {
  background: var(--color-accent);
  color: #181F1C!important;
  box-shadow: 0 4px 18px rgba(65,184,131,0.11);
  transform: translateY(-2px) scale(1.02);
}

button, .button {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  padding: 11px 26px;
  background: var(--color-bg-contrast);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
}
button:hover, .button:hover, button:focus, .button:focus {
  background: var(--color-primary);
  color: #fff;
  outline: none;
  box-shadow: 0 3px 12px var(--color-shadow);
}

a {
  color: var(--color-link);
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--color-link-hover);
  text-decoration: underline;
  outline: none;
}

/* --- HEADER AND NAVIGATION --- */
header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 8px var(--color-shadow);
  position: sticky;
  top: 0;
  z-index: 1210;
}
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}
header .container {
  gap: 22px;
}
header img {
  height: 46px;
  width: auto;
}
header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
header nav a {
  color: var(--color-heading);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.03em;
  padding: 5px 9px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
header nav a:hover, header nav a.active {
  background: var(--color-accent);
  color: #fff;
}
header .cta {
  margin-left: 12px;
}
.mobile-menu-toggle {
  display: none;
  background: var(--color-bg-contrast);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 7px 18px;
  font-size: 1.5rem;
  margin-left: 12px;
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition);
  z-index: 1302;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--color-primary);
}

/* --- MOBILE NAVIGATION & OVERLAY --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30,30,32,0.94);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 34px 28px 18px 30px;
  transform: translateX(-105%);
  transition: transform 0.36s cubic-bezier(0.67,0,0.33,1);
  z-index: 2000;
  opacity: 1;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  background: transparent;
  color: #fff;
  font-size: 2.2rem;
  border: none;
  cursor: pointer;
  align-self: flex-end;
  margin-bottom: 18px;
  transition: color .2s;
}
.mobile-menu-close:hover {
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin-top: 18px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 15px 0 15px 5px;
  border-radius: 6px;
  width: 100%;
  display: block;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a.active {
  background: var(--color-accent);
  color: #151617;
}

@media (max-width: 1024px) {
  .container {
    max-width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }
  .header .container { gap: 10px; }
  header nav { gap: 16px; }
}
@media (max-width: 900px) {
  header nav { display: none; }
  .header .cta { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 901px) {
  .mobile-menu { display: none!important; }
}

/* --- MAIN CONTENT LAYOUT --- */
main {
  width: 100%;
  flex: 1 0 auto;
  min-height: 350px;
  background: var(--color-bg);
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.content-wrapper, .content-section, .text-section {
  margin-bottom: 32px;
  padding: 32px 24px;
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.content-wrapper:last-child {
  margin-bottom: 0;
}
.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: 22px; }
  .content-wrapper, .content-section, .text-section {
    padding: 18px 7px;
    margin-bottom: 22px;
  }
  .section { padding: 22px 2vw; }
}

/* --- CARDS, TESTIMONIALS, FEATURES --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px 28px;
  min-width: 280px;
  flex: 1 1 350px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px) scale(1.02);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: none;
}
.feature-item img { width: 22px; height: 22px; margin-right: 9px; }

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius-sm);
  background: #f9f9fb;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  border: 1px solid #ececec;
}
.testimonial-card p {
  color: #212226;
  font-size: 1.12rem;
  font-style: italic;
  margin-bottom: 8px;
}
.testimonial-card .star-rating {
  color: #191a1f;
  font-size: 1.26rem;
  letter-spacing: 1px;
}
.testimonial-card strong {
  color: #32303b;
  font-weight: 700;
  font-size: 1rem;
}

/* --- TABLES  --- */
table {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-card);
  margin-bottom: 20px;
}
thead {
  background: #F5F6F8;
}
th, td {
  padding: 16px 12px;
  font-size: 1rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}
th {
  color: #191A1F;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  background: #f3f4f5;
}
tr:last-child td {
  border-bottom: none;
}

/* --- FOOTER --- */
footer {
  background: #191a1f;
  color: #fafafa;
  padding: 44px 0 0 0;
  font-size: 0.99rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  border-top: 1px solid #26272b;
  padding-top: 28px;
  padding-bottom: 6px;
  justify-content: space-between;
}
.footer-logo img {
  height: 48px;
  margin-bottom: 12px;
  filter: grayscale(100%);
  opacity: 0.94;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
footer nav a {
  color: #fafafa;
  opacity: 0.86;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  transition: color .16s;
}
footer nav a:hover {
  color: var(--color-accent);
  text-decoration: underline;
  opacity: 1;
}
.footer-contact {
  color: #ccc;
  line-height: 1.6;
  font-size: 0.97rem;
  margin-top: 12px;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 24px 8px 8px 8px;
  }
  .footer-logo { align-self: flex-start; }
}

/* --- SPECIAL ELEMENTS --- */
dt {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--color-primary);
}
dd {
  margin-bottom: 15px;
  margin-left: 20px;
  color: #363642;
}

/* --- COOKIE BANNER & MODAL --- */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  z-index: 3300;
  background: #fff;
  color: var(--color-heading);
  padding: 22px 20px 22px 25px;
  box-shadow: 0 -2px 16px rgba(20,22,25,0.08);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  font-size: 1.02rem;
  border-top: 1px solid #e4e4ed;
  transition: transform .32s cubic-bezier(0.61,0,0.4,1);
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-message {
  flex: 2 1 300px;
  color: #272729;
}
.cookie-banner-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-btn, .cookie-settings-btn {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 10px 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-right: 8px;
  transition: var(--transition);
  outline: none;
}
.cookie-btn.reject {
  background: #21242e;
}
.cookie-btn:hover, .cookie-settings-btn:hover {
  background: var(--color-accent);
  color: #181f1b;
}

/* Cookie settings modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 3400;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(28,28,30,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  min-width: 320px;
  max-width: 98vw;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(17,17,17,0.18);
  padding: 30px 28px 22px 28px;
  color: var(--color-heading);
  position: relative;
  font-size: 1.06rem;
}
.cookie-modal h3 {
  font-size: 1.35rem;
  margin-top: 0;
  margin-bottom: 18px;
  color: var(--color-primary);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 25px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-category input[type='checkbox'] {
  appearance: none;
  width: 20px; height: 20px;
  border: 2px solid var(--color-primary);
  border-radius: 6px;
  outline: none;
  background: #fafafd;
  position: relative;
  cursor: pointer;
}
.cookie-category input[type='checkbox']:checked {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.cookie-category label {
  font-weight: 500;
  color: #31333b;
}
.cookie-modal-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 10px;
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  right: 14px; top: 7px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--color-primary);
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    gap: 14px;
    padding: 16px 8px 16px 10px;
    font-size: 0.98rem;
  }
  .cookie-modal { padding: 16px 10px 14px 12px; }
}

/* --- MICRO-INTERACTIONS & EFFECTS --- */
.card, .content-wrapper, .testimonial-card, .cta, button, .cookie-banner, .cookie-modal {
  transition: var(--transition);
}
.card:focus-within, .content-wrapper:focus-within {
  box-shadow: var(--shadow-lg);
  outline: 2px solid var(--color-primary);
}
.testimonial-card:focus-within {
  outline: 2px solid var(--color-accent);
}

/* --- RESPONSIVENESS --- */
@media (max-width: 650px) {
  html { font-size: 95%; }
  .container { max-width: 100vw; padding: 0 4vw; }
  .card, .content-wrapper, .testimonial-card {
    padding: 14px 4vw;
    min-width: 0;
  }
  .card-container, .content-grid {
    gap: 16px;
  }
  .footer-logo img {
    height: 38px;
  }
}

/* --- MONOCHROME STYLE HIERARCHY AND SPACING --- */
.section, main section {
  background: none;
  border: none;
  margin-bottom: 60px;
  padding: 0 0 0 0;
}
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.28rem; }
}

/* --- ACCESSIBLE FOCUS STATE --- */
a:focus, .cta:focus, button:focus, .cookie-btn:focus, .cookie-settings-btn:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px #d3faf1;
}

/* --- VISUAL HIERARCHY AND CONTAINER SPACING --- */
.content-wrapper, .content-section, .testimonial-card, .card {
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.card-container > *, .content-grid > *, .feature-item > * {
  margin-bottom: 0;
}

/* --- OVERRIDE TABLET + MOBILE LAYOUTS --- */
@media (max-width: 900px) {
  .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
}

/* --- HIGH CONTRAST TYPOGRAPHY & MONOCHROME ELEMENTS --- */
h1, h2, h3, h4, h5, h6 {
  color: #191A1F;
}
.content-wrapper, .card, .testimonial-card {
  background: #fff;
  color: #191a1f;
}

/* --- SCROLLBARS --- */
::-webkit-scrollbar {
  width: 9px;
  background: #eaeaea;
}
::-webkit-scrollbar-thumb {
  background: #c1c1c7;
  border-radius: 6px;
}

/* --- MISC --- */
[tabindex]:focus, input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--color-accent) !important;
}

/* --- PRINT --- */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  section, main { margin: 0; box-shadow: none; padding: 0; }
  * { background: #fff!important; color: #191A1F !important; box-shadow: none!important; }
}
