/* ------- 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,menu,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%;}body{line-height:1.6;}ol,ul{list-style:none;}table{border-collapse:collapse; border-spacing:0;}a{text-decoration:none; color:inherit;}img{max-width:100%; display:block; height:auto;}

/* ------- ROOT, COLORS, FONTS ------- */
:root {
  --color-primary: #245276;
  --color-primary-rgb: 36,82,118;
  --color-secondary: #38A178;
  --color-secondary-rgb: 56,161,120;
  --color-accent: #F9F9F9;
  --color-body: #222;
  --color-bg: #fff;
  --color-border: #e8ecef;
  --color-shadow: rgba(36,82,118,0.08);
  --color-testimonial-bg: #fff;
  --color-testimonial-text: #212b36;
  --color-footer-bg: #245276;
  --color-footer-text: #fff;
  --shadow-card: 0 4px 24px 0 rgba(36,82,118,0.10);
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --gradient-main: linear-gradient(90deg, #38A178 0%, #245276 100%);
  --gradient-hero: linear-gradient(108deg, #38A178 7%, #245276 91%);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: Arial, sans-serif;
  --transition: 0.25s cubic-bezier(.65,.05,.36,1);
}

/* Google Fonts Montserrat */
@import url('https://fonts.googleapis.com/css?family=Montserrat:600,700,400&display=swap');

body {
  font-family: var(--font-body);
  background: var(--color-accent);
  color: var(--color-body);
  font-size: 16px;
  letter-spacing: 0.01em;
  min-height: 100vh;
}

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

.content-wrapper {
  display: flex;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* override - ensure section and container do not duplicate spacing */
section > .container {
  padding: 0;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: #fff;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  position: relative;
  box-shadow: var(--shadow-card);
}

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

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

.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: var(--color-testimonial-bg);
  color: var(--color-testimonial-text);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px 0 rgba(36,82,118,0.12);
  margin-bottom: 20px;
  flex: 1 1 280px;
  min-width: 240px;
  max-width: 370px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px 0 rgba(36,82,118,0.18);
  transform: translateY(-4px) scale(1.025);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 340px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-item:hover {
  box-shadow: 0 8px 32px 0 rgba(36,82,118,0.18);
  transform: translateY(-4px) scale(1.035);
}

/* ------ TYPOGRAPHY ------ */
h1, h2, h3 { font-family: var(--font-display); }
h1 { font-size: 2.5rem; font-weight: 700; line-height: 1.2; color: var(--color-primary); margin-bottom: 8px; letter-spacing: -0.5px; }
h2 { font-size: 2rem; font-weight: 700; color: var(--color-secondary); margin-bottom: 6px; letter-spacing: -0.2px; }
h3 { font-size: 1.32rem; font-weight: 600; color: var(--color-primary); margin-bottom: 4px; }
h4, h5, h6 { font-family: var(--font-display); font-weight: 600; }
.subheadline {
  font-size: 1.17rem;
  color: #365884;
  font-family: var(--font-body);
  font-weight: 400;
  margin-bottom: 10px;
}
p, ul, ol, table {
  font-size: 1rem;
  color: var(--color-body);
  font-family: var(--font-body);
}
ul, ol { padding-left: 24px; }
ul li, ol li {line-height: 1.7; margin-bottom: 8px; display: flex; align-items: center; gap: 8px;}
ul li img, ol li img {width: 22px; height: 22px; margin-right: 4px;}
strong { font-weight: 600; }

/* ------ HERO STYLES ------ */
main > section:first-of-type {
  background: var(--gradient-hero);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  color: #fff;
  margin-bottom: 60px;
  padding: 0;
}
main > section:first-of-type .container {
  justify-content: center;
  align-items: center;
  padding: 56px 20px 60px 20px;
  text-align: center;
}
main > section:first-of-type h1 {
  color: #fff;
}
main > section:first-of-type .subheadline {
  color: #E1F3E2;
}

/* ------ HEADER & NAVIGATION ------ */
header {
  width: 100%;
  background: var(--color-accent);
  box-shadow: 0 2px 20px 0 rgba(36,82,118,0.07);
  position: relative;
  z-index: 10;
  padding: 0;
}
header .container {
  height: 80px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 20px;
}
.logo img, .logo-footer img {
  height: 48px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-primary);
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}

.cta-btn {
  font-family: var(--font-display);
  font-size: 1.05rem;
  padding: 12px 30px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--gradient-main);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(56,161,120,0.09);
  margin-left: 12px;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.cta-btn.primary:hover, .cta-btn.primary:focus {
  background: linear-gradient(90deg, #245276 0%, #38A178 100%);
  box-shadow: 0 6px 16px rgba(36,82,118,0.13);
  transform: translateY(-2px) scale(1.025);
}

/* Burger menu button */
.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 12px;
  transition: background var(--transition), color var(--transition);
  z-index: 201;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-secondary);
  color: #fff;
}

/* Mobile navigation overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(36,82,118,0.96);
  color: #fff;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.65,.05,.36,1);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 32px 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.2rem;
  border: none;
  padding: 8px 24px 8px 8px;
  cursor: pointer;
  margin-bottom: 30px;
  align-self: flex-end;
  transition: color var(--transition);
  z-index: 202;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding: 0 36px;
  margin-top: 12px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  padding: 10px 0 10px 6px;
  border-radius: 8px;
  width: 100%;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* ------ FOOTER ------ */
footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  width: 100%;
  padding: 0;
  margin-top: 70px;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
  padding: 36px 20px 22px 20px;
  min-height: 120px;
}
footer .logo-footer img {
  height: 46px;
  margin-bottom: 10px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
footer nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.08rem;
  opacity: 0.88;
  transition: opacity var(--transition), color var(--transition);
}
footer nav a:hover, footer nav a:focus{ color: var(--color-secondary); opacity: 1;}

.footer-contact {
  font-size: 0.96rem;
  opacity: 0.92;
}
.footer-contact strong { color:#fff; font-weight: bold; }

/* ------ TABLE & LISTS ------ */
table {
  background: #fff;
  border-radius: var(--radius-md);
  width: 100%;
  box-shadow: 0 2px 16px 0 rgba(36,82,118,0.07);
  margin-bottom: 22px;
  overflow: hidden;
}
thead th {
  background: var(--color-secondary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-align: left;
  padding: 14px 16px;
}
tbody td {
  padding: 13px 15px;
  color: var(--color-primary);
  background: #f6faf9;
}
tbody tr:nth-child(even) td { background: #ebf6f2; }
tbody tr td:first-child { font-weight: 500; }

ul, ol {
  margin-bottom: 14px;
  padding-left: 24px;
}

/* ::::: Cookie Consent Banner ::::: */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: #fff;
  border-top: 3px solid var(--color-secondary);
  box-shadow: 0 -3px 16px rgba(36,82,118,.12);
  padding: 24px 24px 22px 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  font-size: 1rem;
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.44s cubic-bezier(.65,.05,.36,1), opacity .35s;
}
#cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
#cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
}
#cookie-banner button {
  padding: 10px 22px;
  border-radius: var(--radius-md);
  border: none;
  font-family: var(--font-display);
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}
#cookie-banner .accept {
  background: var(--color-secondary);
  color: #fff;
}
#cookie-banner .accept:hover, #cookie-banner .accept:focus {
  background: var(--color-primary);
}
#cookie-banner .reject {
  background: #e8ecef;
  color: var(--color-primary);
}
#cookie-banner .reject:hover, #cookie-banner .reject:focus {
  background: #dbeded;
  color: var(--color-secondary);
}
#cookie-banner .settings {
  background: none;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}
#cookie-banner .settings:hover, #cookie-banner .settings:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* Cookie Preferences Modal */
#cookie-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  min-width: 310px;
  max-width: 95vw;
  z-index: 10000;
  background: #fff;
  color: var(--color-body);
  padding: 32px 28px 28px 28px;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 48px #24527622;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s, transform 0.3s;
}
#cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
#cookie-modal h2 {
  margin-bottom: 15px;
  color: var(--color-primary);
  font-size: 1.3rem;
}
#cookie-modal .cookie-category {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
#cookie-modal .category-label {
  font-weight: 600;
  color: var(--color-secondary);
  font-size: 1.03rem;
}
#cookie-modal .cookie-category input[type="checkbox"] {
  accent-color: var(--color-secondary);
  width: 22px;
  height: 22px;
}
#cookie-modal .always-on {
  color: #868686;
  font-size: 0.94rem;
  margin-left: 9px;
  font-weight: 500;
}
#cookie-modal .cookie-actions {
  display: flex;
  gap: 18px;
  margin-top: 14px;
}
#cookie-modal .close-modal {
  position: absolute;
  top: 14px; right: 18px;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 1.45rem;
  cursor: pointer;
}
#cookie-modal .close-modal:hover {
  color: var(--color-secondary);
}

/* ------ RESPONSIVE: MOBILE FIRST ------ */
@media (max-width: 1024px) {
  .container {
    max-width: 936px;
  }
  footer .container {
    flex-direction: column;
    gap: 28px;
    text-align:left;
    align-items: flex-start;
  }
}
@media (max-width: 800px) {
  .feature-grid, .testimonials, .card-container, .content-grid {
    gap: 16px;
  }
  .feature-item,.testimonial-card {
    min-width: unset;
    max-width: 100%;
    flex: 1 1 220px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 98vw;
    padding: 0 6vw;
  }
  header .container {
    height: 60px;
    padding: 0 16px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  /* make hero smaller padding on mobile */
  main > section:first-of-type .container {
    padding: 36px 10px 32px 10px;
  }
  .feature-grid, .testimonials, .content-grid, .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .feature-item, .testimonial-card {
    width: 100%;
    min-width: unset;
    max-width: 100%;
    margin-bottom: 0;
  }
  footer .container {
    flex-direction: column;
    gap: 18px;
    padding: 26px 10px 12px 10px;
    min-height: unset;
    text-align:left;
  }
  .section {
    padding: 28px 4vw;
    margin-bottom: 32px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}
@media (max-width: 540px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.21rem; }
  h3 { font-size: 1.08rem; }
  .footer-contact { font-size: 0.93rem; }
  .container { padding: 0 5vw; }
  .cta-btn {padding: 10px 17px;}
  #cookie-banner { flex-direction: column; align-items: flex-start; gap: 18px; padding: 18px 7vw 16px 7vw; font-size: 0.97rem;}
  #cookie-banner .cookie-actions { gap: 12px; }
  #cookie-modal { padding: 18px 8vw 20px 8vw; min-width: unset; }
}

/* ------ GENERAL UTILITY ------ */
.mt-3 { margin-top: 18px !important; }
.mb-3 { margin-bottom: 18px !important; }
.mt-2 { margin-top: 10px !important; }
.mb-2 { margin-bottom: 10px !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.block {display:block;}

/* ------ ANIMATIONS, INTERACTIONS ------ */
a, button, .cta-btn, .feature-item, .testimonial-card {
  transition: box-shadow var(--transition), background var(--transition), color var(--transition), transform var(--transition);
}

/* ------ ELEMENT SPACING ENFORCEMENTS ------ */
.section + .section,
.container + .container,
.content-wrapper + .content-wrapper { margin-top: 40px!important; }
.content-wrapper > * + * { margin-top: 0; }

/* ------ SPECIAL CASES: Ensure spacing between list blocks and sections ------ */
.text-section ul, .text-section ol {
  margin-bottom: 10px;
}
.text-section h3 {
  margin-top: 10px;
  margin-bottom: 3px;
}

/* ------ MISC ------ */
::-webkit-scrollbar { width: 9px; background: #f6faf9; }
::-webkit-scrollbar-thumb { background: #dfebe7; border-radius: 10px; }

input:focus, textarea:focus, select:focus, button:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 1px;
}

/* ------ OVERRIDE (no grid, no abs positioning for cards) ------ */
/* No grid, columns, or break-inside anywhere */

/* ------ PRINT: hide nav / cookie ------ */
@media print {
  .main-nav, .mobile-menu, .mobile-menu-toggle, #cookie-banner, #cookie-modal { display:none!important; }
}
