/* ===================================================
   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,main,nav,output,ruby,section,summary,time,mark,audio,video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
*,*::before,*::after {
  box-sizing: inherit;
}
img {
  max-width: 100%;
  display: block;
  border: 0;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
button, input, select, textarea {
  font: inherit;
  outline: none;
  border: none;
  background: none;
}

/* ===================================================
   BRAND COLORS & VARIABLES (with fallbacks)
   =================================================== */
:root {
  --color-primary: #213B4A;
  --color-secondary: #ECF1F7;
  --color-accent: #73BFB8;
  --color-white: #fff;
  --color-black: #171c1f;
  --color-grey: #E8EDF3;
  --color-shadow: rgba(33,59,74,0.07);
  --radius: 10px;
  --radius-sm: 6px;
  --header-height: 80px;
}

/* ===================================================
   TYPOGRAPHY
   =================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&family=Open+Sans:wght@400;600&display=swap');

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: var(--color-primary);
  font-size: 16px;
  background: var(--color-secondary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.4rem; margin-bottom: 14px; }
h4 { font-size: 1.1rem; margin-bottom: 12px; }

p, ul, ol, dl {
  color: var(--color-primary);
  font-size: 1rem;
  margin-bottom: 14px;
  letter-spacing: 0;
}
ul, ol {
  padding-left: 20px;
}
strong {
  font-weight: 700;
}
a {
  color: var(--color-primary);
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--color-accent);
  text-decoration: underline;
}

/* ---------------------------
   GENERAL CONTAINERS
----------------------------- */
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.text-section {
  max-width: 700px;
}

/* ---------------------------
   SECTION + PAGE LAYOUT SPACING
----------------------------- */
section {
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
  min-width: 260px;
  flex: 1 1 240px;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(33,59,74,0.14);
  transform: translateY(-2px) scale(1.012);
}
.card: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;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px var(--color-shadow);
  margin-bottom: 24px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 18px rgba(33,59,74,0.16);
  transform: translateY(-2px);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===================================================
   HEADER & NAVIGATION
   =================================================== */
header {
  width: 100%;
  background: var(--color-white);
  box-shadow: 0 2px 10px var(--color-shadow);
  position: sticky;
  top: 0;
  left: 0;
  z-index: 50;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  min-height: 60px;
}
.main-nav img {
  height: 48px;
  width: auto;
  margin-right: 28px;
}
.main-nav ul {
  display: flex;
  gap: 32px;
  align-items: center;
}
.main-nav ul li {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
}
.main-nav ul li a {
  padding: 6px 0;
  color: var(--color-primary);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-bottom 0.18s;
}
.main-nav ul li a:hover,
.main-nav ul li a:focus {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
}
.btn-primary {
  display: inline-block;
  padding: 12px 32px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 10px var(--color-shadow);
  transition: background 0.2s, box-shadow 0.18s, transform 0.14s;
  cursor: pointer;
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(33,59,74,0.13);
  transform: translateY(-1.5px) scale(1.012);
}

/* ---------------------------------------------------
   MOBILE NAVIGATION
------------------------------------------------------ */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.3rem;
  color: var(--color-primary);
  cursor: pointer;
  margin-left: 10px;
  z-index: 101;
  position: relative;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 86vw;
  max-width: 340px;
  background: var(--color-white);
  box-shadow: -6px 0 24px rgba(33,59,74,0.16);
  transition: transform 0.38s cubic-bezier(.6,0,.42,1);
  transform: translateX(100%);
  z-index: 200;
  display: flex;
  flex-direction: column;
}
.mobile-menu.active {
  transform: translateX(0%);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  align-self: flex-end;
  margin: 22px 28px 6px 0;
  cursor: pointer;
  transition: color 0.16s;
}
.mobile-menu-close:hover {
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  padding: 32px 32px 24px 28px;
  flex: 1;
}
.mobile-nav a {
  font-size: 1.12rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
  font-weight: 500;
  padding: 7px 0;
  width: 100%;
  border-radius: var(--radius-sm);
  transition: background 0.17s, color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}
.mobile-menu {
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  pointer-events: all;
  opacity: 1;
}

@media (max-width: 1024px) {
  .main-nav {
    max-width: 100vw;
    padding: 0 10px;
  }
}
@media (max-width: 900px) {
  .main-nav ul {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .main-nav ul, .main-nav .btn-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 14px;
    top: 14px;
  }
  .main-nav {
    padding-right: 70px;
    min-height: 54px;
  }
}

/* ===================================================
   PAGE/SECTION STYLES
   =================================================== */
section {
  margin-bottom: 60px;
  padding: 40px 0;
  background: transparent;
}
@media (max-width: 768px) {
  section {
    padding: 32px 0;
    margin-bottom: 32px;
  }
  .container {
    padding: 0 12px;
  }
}

.content-wrapper {
  padding: 0;
}
@media (max-width: 540px) {
  .content-wrapper {
    gap: 14px;
  }
}
.text-image-section {
  gap: 30px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}
.content-grid {
  gap: 20px 12px;
}
.card-container {
  gap: 24px 12px;
}
.card {
  min-width: 140px;
  padding: 16px 12px;
}
@media (min-width: 640px) {
  .card {
    padding: 24px 18px;
  }
}
.testimonial-card {
  margin-bottom: 24px;
}

/* List with icons in services/features */
.content-wrapper ul li, .content-wrapper ol li {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 1.05em;
}
.content-wrapper ul li img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  margin-right: 6px;
}

/* Features as cards (for .feature-item) */
.feature-item {
  background: var(--color-white);
  padding: 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px var(--color-shadow);
  margin-bottom: 20px;
  min-width: 200px;
}

/* ===================================================
   TABLES (Pricing)
   =================================================== */
table {
  width: 100%;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px var(--color-shadow);
  font-size: 1em;
  margin: 20px 0;
  overflow: hidden;
}
thead, th {
  background: var(--color-secondary);
}
th, td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--color-grey);
  font-family: 'Montserrat', Arial, sans-serif;
}
tbody tr:last-child td {
  border-bottom: none;
}
th {
  font-weight: 700;
  color: var(--color-primary);
}
td {
  color: var(--color-primary);
}

@media (max-width: 600px) {
  table, thead, tbody, th, td, tr {
    display: block;
    width: 100%;
  }
  th, td {
    padding: 12px 2vw;
  }
  tr {
    margin-bottom: 18px;
    background: var(--color-white);
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 10px var(--color-shadow);
    padding: 6px 0;
  }
}

/* ===================================================
   FOOTER
   =================================================== */
footer {
  width: 100%;
  background: var(--color-white);
  box-shadow: 0 -2px 16px var(--color-shadow);
  padding: 32px 0 20px 0;
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
}
.footer-nav a {
  color: var(--color-primary);
  font-weight: 600;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--color-accent);
}
.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.97rem;
  color: #6e7a85;
}
@media (max-width: 600px) {
  .footer-nav, .footer-meta {
    font-size: 0.93rem;
    text-align: center;
    flex-direction: column;
    gap: 6px;
  }
}

/* ===================================================
   FAQS / DESCRIPTION LIST
   =================================================== */
dl {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 16px auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
dt {
  font-weight: 700;
  margin-top: 4px;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
}
dd {
  margin-left: 12px;
  margin-bottom: 10px;
  color: #4f5d67;
}

/* ===================================================
   CTA Button Animation
   =================================================== */
.btn-primary {
  transition: background 0.17s, color 0.17s, box-shadow 0.16s, transform 0.13s;
}

/* ===================================================
   SPACING
   =================================================== */
section, .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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Ensure min 20px margin between all content cards/sections */
.card, .testimonial-card, .feature-item {
  margin-bottom: 20px;
}
.content-grid > *, .card-container > *, .feature-list > * {
  margin-bottom: 0;
}

/* ===================================================
   TRANSITION EFFECTS / MICRO-INTERACTIONS
   =================================================== */
.card, .testimonial-card, .feature-item, .btn-primary {
  transition: box-shadow 0.18s, transform 0.18s, background 0.16s, color 0.16s;
}
.card:hover, .feature-item:hover {
  box-shadow: 0 8px 22px rgba(33,59,74,0.18);
  transform: translateY(-2px) scale(1.0098);
}

/* ===================================================
   RESPONSIVE DESIGN
   =================================================== */
@media (max-width: 1024px) {
  .container { max-width: 96vw; }
}
@media (max-width: 600px) {
  .footer-meta p { font-size: 0.89em; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }
  .content-wrapper, .text-image-section { gap: 12px; }
}

/* ===================================================
   COOKIE CONSENT BANNER
   =================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 18px 24px;
  z-index: 9001;
  box-shadow: 0 -4px 16px rgba(33,59,74,0.08);
  font-size: 1rem;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.36s, opacity 0.34s;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner__text {
  flex: 2;
  margin-right: 20px;
  font-size: 1em;
}
.cookie-banner__actions {
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: 15px;
  justify-content: flex-end;
}

.cookie-btn {
  padding: 9px 24px;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  cursor: pointer;
  transition: background 0.19s, color 0.16s, box-shadow 0.13s;
}
.cookie-btn.accept {
  background: var(--color-accent);
  color: var(--color-white);
}
.cookie-btn.reject {
  background: var(--color-grey);
  color: var(--color-primary);
}
.cookie-btn.settings {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 8vw 16px 14px;
  }
  .cookie-banner__text {
    margin-bottom: 18px;
  }
  .cookie-banner__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Cookie Settings Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 10001;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(33,59,74,0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.27s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: var(--color-white);
  color: var(--color-primary);
  border-radius: var(--radius);
  box-shadow: 0 10px 32px rgba(33,59,74,0.19);
  max-width: 420px;
  width: 90vw;
  padding: 38px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.3rem;
  color: var(--color-accent);
  margin-bottom: 6px;
}
.cookie-modal .cookie-cat {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--color-grey);
  padding: 11px 0 12px 0;
  font-size: 1.03rem;
}
.cookie-modal .cookie-toggle {
  margin-left: auto;
}
.cookie-modal .cookie-btn {
  margin-top: 20px;
  width: 100%;
}
.cookie-modal .cookie-btn.close {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-modal .cookie-btn.close:hover {
  background: var(--color-accent);
  color: var(--color-white);
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 14px;
  font-size: 1.34rem;
  background: none;
  color: var(--color-primary);
  border: none;
  cursor: pointer;
  transition: color 0.16s;
}
.cookie-modal-close:hover {
  color: var(--color-accent);
}

/* Cookie toggle switches */
.cookie-toggle {
  width: 42px;
  height: 22px;
  border-radius: 11px;
  background: var(--color-grey);
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: background 0.18s;
}
.cookie-toggle.enabled {
  background: var(--color-accent);
}
.cookie-toggle-slider {
  width: 18px;
  height: 18px;
  background: var(--color-primary);
  border-radius: 50%;
  transition: transform 0.22s cubic-bezier(.7,0,.34,1);
  position: absolute;
  left: 2px;
  top: 2px;
}
.cookie-toggle.enabled .cookie-toggle-slider {
  background: var(--color-accent);
  transform: translateX(18px);
}
.cookie-toggle[aria-disabled='true'], .cookie-toggle.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ===================================================
   ACCENTS, SHADOWS, DIVIDERS
   =================================================== */
.section-divider {
  height: 1.5px;
  width: 60px;
  background: var(--color-accent);
  border: none;
  outline: none;
  margin: 28px 0;
  border-radius: 1px;
}

/* ===================================================
   CUSTOM UTILITIES
   =================================================== */
.rounded {
  border-radius: var(--radius);
}
.shadow-sm {
  box-shadow: 0 1.5px 9px var(--color-shadow);
}
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.gap-20 { gap: 20px; }
.my-24 { margin-top: 24px; margin-bottom: 24px; }

/* ===================================================
   PRINT/ACCESSIBILITY
   =================================================== */
@media print {
  header, .mobile-menu, footer, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  a, a:visited { color: #000 !important; }
}

/* ===================================================
   FOCUS STATES FOR ACCESSIBILITY
   =================================================== */
a:focus, button:focus, .btn-primary:focus, .cookie-btn:focus {
  outline: 2.5px solid var(--color-accent);
  outline-offset: 2px;
}

