/* 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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: linear-gradient(135deg, #f5f8fb 0%, #e6ebf3 100%);
  color: #12324a;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  font-weight: 400;
}

:root {
  --color-primary: #12324a;
  --color-secondary: #ffd600;
  --color-accent: #f5f8fb;
  --color-dark: #162d3e;
  --color-light: #ffffff;
  --color-bg-gradient-from: #e0ebf9;
  --color-bg-gradient-to: #f5f8fb;
  --shadow-lg: 0 8px 40px rgba(18, 50, 74, 0.09);
  --shadow-md: 0 2px 12px rgba(18, 50, 74, 0.08);
  --shadow-sm: 0 1px 4px rgba(18, 50, 74, 0.11);
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  src: local('Montserrat Bold'), local('Montserrat-Bold');
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: local('Montserrat Regular'), local('Montserrat-Regular');
  font-display: swap;
}
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,700|Roboto:400,700&display=swap');

html {
  scroll-behavior: smooth;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 30px;
  width: 100%;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-light);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.15;
}
h1 { font-size: 2.5rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 14px; }
h3 { font-size: 1.35rem; margin-bottom: 10px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }
.subheadline {
  font-size: 1.225rem;
  color: #304357;
  font-weight: 400;
}
p, li, address {
  font-size: 1rem;
  color: #27435d;
  margin-bottom: 8px;
  font-family: 'Roboto', Arial, sans-serif;
}
strong {
  color: var(--color-primary);
  font-weight: 700;
}
a {
  text-decoration: none;
  color: var(--color-primary);
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: var(--color-secondary);
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 10px;
}
li {
  margin-bottom: 8px;
}
address {
  font-style: normal;
}

/* BUTTONS & CTAS */
.cta-primary, .main-nav .cta-primary, .mobile-nav .cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  background: linear-gradient(90deg, #ffd600 0%, #f5f8fb 120%);
  color: #12324a;
  padding: 13px 30px;
  border-radius: 32px;
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  outline: none;
  box-shadow: var(--shadow-md);
  transition: background 0.25s, color 0.25s, transform 0.17s;
  cursor: pointer;
  margin-top: 8px;
}
.cta-primary:hover, .cta-primary:focus {
  background: linear-gradient(90deg, #ffe36e 0%, #ffd600 100%);
  color: var(--color-primary);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 15px rgba(255,214,0,0.13);
}
.button,
button,
input[type="submit"],
.mobile-menu-toggle,
.mobile-menu-close {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: 30px;
  padding: 10px 26px;
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  transition: background 0.22s, color 0.22s, box-shadow 0.22s;
}
.button:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* LAYOUTS & FLEXBOX */
.card-container {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 320px;
  background: var(--color-light);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 28px 24px;
  min-width: 260px;
}

.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;
  background: #f9fafc;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 24px 28px;
  margin-bottom: 20px;
  width: 100%;
  color: #162d3e;
}
.testimonial-card p {
  color: #1e344b;
  margin-bottom: 6px;
}
.testimonial-card strong {
  color: #1962a6;
  font-size: 1rem;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: var(--color-accent);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 22px 20px 18px 18px;
  flex: 1 1 280px;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-grid img {
  width: 38px;
  margin-bottom: 4px;
}

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

.metrics-highlight ul {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 12px;
  list-style: none;
}
.metrics-highlight ul li {
  background: #eaf0f9;
  padding: 7px 24px;
  border-radius: 28px;
}

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

/* BLOG */
.blog-post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
}
.blog-post-list > div {
  background: var(--color-accent);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 18px 18px 15px 18px;
  flex: 1 1 300px;
  min-width: 200px;
}

.blog-categories ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-left: 0;
  list-style: none;
  margin-bottom: 6px;
}
.blog-categories ul li {
  background: #e5f1fd;
  color: #135d87;
  border-radius: 24px;
  padding: 5px 18px 5px 18px;
  font-size: 0.97rem;
}
.blog-categories h4 {
  margin-bottom: 4px;
}

.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 1rem;
}

/* NAVIGATION */
header {
  width: 100%;
  background: linear-gradient(90deg, #f5f8fb 15%, #eaf2fc 100%);
  box-shadow: var(--shadow-sm);
  z-index: 10;
  position: sticky;
  top: 0;
}
.main-nav {
  display: flex;
  gap: 26px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 1.06rem;
}
.main-nav a {
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 10px 10px;
  border-radius: 18px;
  transition: background 0.18s, color 0.2s;
  position: relative;
}
.main-nav a:hover, .main-nav a.active {
  background: #ebf4fd;
  color: #195976;
}
.main-nav .cta-primary {
  margin-left: 12px;
  padding: 10px 28px;
  background: linear-gradient(90deg, #ffd600 0%, #f8fabb 100%);
  color: #12324a;
  font-size: 1.03rem;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: var(--color-secondary);
  color: #162d3e;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 101;
  margin-left: 12px;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-primary);
}

.mobile-menu {
  display: none;
}

/* MOBILE NAVIGATION SLIDE-IN */
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(133deg, #f5f8fb 60%, #d4e4fa 120%);
  box-shadow: 0 8px 48px rgba(30, 61, 99, 0.10);
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(.7,.35,.19,.98);
  z-index: 1205;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 46px;
}
.mobile-menu.open {
  transform: translateX(0);
  display: flex;
}
.mobile-menu-close {
  position: absolute;
  top: 14px;
  right: 20px;
  background: #eaf2fb;
  color: #12324a;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: var(--shadow-sm);
  transition: background 0.22s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 30px;
  padding-left: 36px;
  width: 90vw;
}
.mobile-nav a {
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  padding: 13px 0;
  font-weight: 600;
  border-bottom: 1px solid #e4eaf1;
  transition: color 0.19s, background 0.18s;
  border-radius: 12px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-secondary);
  background: #f2f4fa;
}
.mobile-nav .cta-primary {
  margin: 17px 0 0 0;
  background: linear-gradient(90deg, #ffd600 40%, #f7f6d1 100%);
  color: #12324a;
  font-size: 1.04rem;
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 12px;
  }
}

@media (max-width: 900px) {
  .main-nav {
    gap: 5px;
    font-size: 1rem;
  }
}

@media (max-width: 880px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
}

@media (max-width: 880px) {
  header .container {
    min-height: 54px;
    padding-top: 3px;
    padding-bottom: 3px;
  }
}

/* FOOTER */
footer {
  width: 100%;
  background: linear-gradient(90deg, #f5f8fb 30%, #dde6f4 100%);
  border-top: 1px solid #e1e6ee;
  margin-top: 48px;
  padding-top: 32px;
  padding-bottom: 30px;
}
footer .container {
  display: flex;
  justify-content: center;
}
footer .content-wrapper {
  flex-direction: row;
  align-items: flex-start;
  gap: 38px;
  width: 100%;
  justify-content: space-between;
  margin-bottom: 0;
}
.footer-nav {
  margin-top: 10px;
  margin-bottom: 13px;
}
footer address p,
footer address a {
  color: #2a4064;
  font-size: 1rem;
  margin-bottom: 4px;
}
footer address img {
  width: 16px;
  vertical-align: middle;
  margin-right: 3px;
  opacity: 0.73;
}

@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .footer-nav {
    gap: 10px;
    margin-top: 14px;
  }
}

/* GENERAL INTERACTIVE ELEMENTS */
img {
  max-width: 100%;
  display: block;
  border-radius: 7px;
}
section {
  /* unless .section, just add spacing */
  margin-bottom: 48px;
}

/* COOKIE CONSENT BANNER */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #12324a 50%, #27435D 100%);
  color: #fff;
  box-shadow: 0 -4px 32px rgba(18,50,74,.11);
  z-index: 2050;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  padding: 26px 24px 26px 32px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  transition: transform 0.4s cubic-bezier(.45,.74,.04,.97), opacity 0.2s;
}
.cookie-consent-banner.hide {
  transform: translateY(120%);
  opacity: 0;
}
.cookie-consent-banner .cookie-buttons {
  display: flex;
  gap: 18px;
}
.cookie-consent-banner button {
  padding: 10px 30px;
  font-size: 1rem;
  border-radius: 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  margin: 0 4px;
}
.cookie-consent-banner .cookie-accept {
  background: var(--color-secondary);
  color: #12324A;
  box-shadow: var(--shadow-sm);
}
.cookie-consent-banner .cookie-accept:hover {
  background: #ffe36e;
}
.cookie-consent-banner .cookie-reject {
  background: #E4ECF7;
  color: #162d3e;
}
.cookie-consent-banner .cookie-reject:hover {
  background: #cfdbf1;
}
.cookie-consent-banner .cookie-settings {
  background: transparent;
  border: 1px solid #f2e47e;
  color: #ffe800;
}
.cookie-consent-banner .cookie-settings:hover {
  background: #ffe36e;
  color: #12324a;
}

/* COOKIE MODAL OVERLAY*/
.cookie-modal-overlay {
  display: none;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 3200;
  background: rgba(22, 50, 74, 0.38);
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.show {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 40px rgba(18, 50, 74, 0.13);
  max-width: 410px;
  width: 92vw;
  padding: 38px 26px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  animation: cookie-modal-in 0.3s cubic-bezier(.59,.47,.62,1.5);
}
@keyframes cookie-modal-in {
  from { opacity: 0; transform: translateY(22%); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-modal h3 {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.cookie-modal .cookie-cat {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}
.cookie-modal .cookie-switch {
  margin-left: auto;
}
.cookie-modal label.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
}
.cookie-modal label.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ddd;
  border-radius: 30px;
  transition: 0.3s;
}
.cookie-modal label.switch input:checked + .slider {
  background: var(--color-secondary);
}
.cookie-modal .slider:before {
  position: absolute;
  content: "";
  height: 19px;
  width: 19px;
  left: 3px;
  bottom: 3.5px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: var(--shadow-sm);
}
.cookie-modal label.switch input:checked + .slider:before {
  transform: translateX(17px);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal .cookie-save {
  background: var(--color-secondary);
  color: #12324a;
  font-weight: 700;
  border: none;
  padding: 10px 24px;
  border-radius: 22px;
}
.cookie-modal .cookie-cancel {
  background: #eaeaea;
  color: #215987;
  border: none;
  padding: 10px 24px;
  border-radius: 22px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 13px; right: 21px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #12324a;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.cookie-modal .cookie-modal-close:hover {
  opacity: 0.85;
}

/* RESPONSIVENESS */
@media (max-width: 1200px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 800px) {
  .section {
    padding: 27px 6px;
    margin-bottom: 32px;
  }
  .container {
    padding: 0 8px;
  }
  .content-wrapper {
    gap: 16px;
  }
  .feature-grid {
    gap: 14px;
  }
  .card-container,
  .content-grid,
  .blog-post-list {
    gap: 12px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2.06rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.15rem; }

  .content-wrapper, .feature-grid, .blog-post-list, .card-container {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: center;
  }
  .feature-grid > div {
    min-width: unset;
    width: 97vw;
  }
  .testimonial-card {
    padding: 20px 10px;
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.38rem; }
  h2 { font-size: 1.1rem; }
  .section { padding: 17px 0; }
  .blog-post-list > div, .feature-grid > div { padding: 12px 9px; }
}

/* SCROLLBAR STYLING */
::-webkit-scrollbar {
  width: 9px;
  background: #e6ebf3;
}
::-webkit-scrollbar-thumb {
  background: #c4cce6;
  border-radius: 22px;
}

/* FOCUS */
a:focus, button:focus, input:focus, .cta-primary:focus, .cookie-modal .cookie-modal-close:focus {
  outline: 2.5px solid var(--color-secondary);
  outline-offset: 1.5px;
}

/* MICRO-INTERACTIONS */
.card, .feature-grid > div, .blog-post-list > div, .testimonial-card {
  transition: box-shadow 0.19s, transform 0.17s;
}
.card:hover, .feature-grid > div:hover, .blog-post-list > div:hover, .testimonial-card:hover {
  box-shadow: 0 8px 30px rgba(18,50,74,0.17);
  transform: translateY(-2px) scale(1.012);
  z-index: 2;
}

/*********************************************
 * RULES ENSURING ADEQUATE SPACING (NO OVERLAP)
 *********************************************/
.section, section, .card, .testimonial-card, .feature-grid > div, .blog-post-list > div {
  margin-bottom: 20px;
}
.card-container, .content-grid, .feature-grid, .blog-post-list {
  gap: 20px;
}

/*****************
 * UTILITY CLASSES
 *****************/
.center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hidden { display: none !important; }

/* END CSS */
