/* === CSS RESET & BASELINE === */
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;
}

html {
  font-size: 16px;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
  font-family: 'Roboto', Arial, sans-serif;
  color: #1B2A44;
  background: #fff;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

a {
  color: #20387A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #1CB07C;
  outline: none;
}

ul, ol {
  margin: 0 0 1.5em 1.2em;
  padding-left: 1.2em;
}
li {
  margin-bottom: 0.7em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #20387A;
  margin-bottom: 12px;
  font-weight: 700;
}
h1 {
  font-size: 2.75rem;
  line-height: 1.12;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
}

p {
  font-size: 1rem;
  margin-bottom: 1.1em;
  color: #2B425B;
}
strong {
  color: #20387A;
  font-weight: 700;
}

/* === BRAND COLORS === */
:root {
  --primary: #20387A;
  --secondary: #1CB07C;
  --accent: #F2F4F8;
  --warm1: #FFF6EE;
  --warm2: #FFD8AE;
  --warm3: #FFB37A;
  --shadow: 0 4px 24px 0 rgba(27, 42, 68, 0.08);
}

/* === LAYOUT CONTAINERS === */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--warm1);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

/* === HEADER NAVIGATION === */
header {
  background: linear-gradient(90deg, #FFF6EE 60%, #F2F4F8 100%);
  box-shadow: 0 2px 12px 0 rgba(32, 56, 122, 0.06);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 40;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
}
header img {
  max-height: 48px;
}
nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #20387A;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 18px;
  padding: 7px 14px;
  transition: background 0.16s, color 0.16s;
}
nav a:hover, nav a:focus {
  color: #fff;
  background: var(--secondary);
}

.cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--secondary);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 2px 8px 0 rgba(19,176,124,0.08);
  margin-left: 18px;
  transition: background 0.21s, box-shadow 0.21s, transform 0.23s;
  cursor: pointer;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: #189767;
  color: #fff;
  box-shadow: 0 4px 16px 0 rgba(32,56,122,0.10);
  transform: translateY(-2px) scale(1.04);
}

/* === MOBILE BURGER MENU === */
.mobile-menu-toggle {
  display: none;
  background: var(--warm3);
  color: #20387A;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  position: absolute;
  right: 20px;
  top: 20px;
  cursor: pointer;
  z-index: 101;
  transition: background 0.22s;
  box-shadow: var(--shadow);
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--warm2);
  outline: none;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(32,56,122,0.92);
  z-index: 130;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.81,.07,.3,1);
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #fff;
  color: var(--primary);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  margin: 20px 22px 0 0;
  cursor: pointer;
  align-self: flex-end;
  transition: background 0.2s, color 0.2s;
  box-shadow: var(--shadow);
  z-index: 140;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--secondary);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 40px 34px 0 34px;
  width: 80vw;
  max-width: 340px;
  align-self: flex-end;
  background: #fff;
  border-radius: 18px 0 0 18px;
  box-shadow: var(--shadow);
  padding: 36px 24px 28px 30px;
  z-index: 135;
}
.mobile-nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.16rem;
  font-weight: 600;
  border-radius: 12px;
  padding: 10px 12px;
  transition: background 0.14s, color 0.17s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: var(--secondary);
  color: #fff;
}

/* --- Responsive header nav --- */
@media (max-width: 1050px) {
  header .container nav, header .container .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (min-width: 1051px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* === HERO + SECTION STYLES === */
.hero-section {
  background: linear-gradient(96deg, #FFD8AE 50%, var(--accent) 100%);
  padding: 56px 0 56px 0;
  border-radius: 0 0 24px 24px;
  margin-bottom: 60px;
}
.hero-section .container {
  align-items: center;
}
.hero-section h1 {
  color: #20387A;
  font-size: 2.6rem;
  margin-bottom: 16px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.hero-section p {
  color: #314564;
  font-size: 1.22rem;
  font-weight: 400;
}

/* CTA SECTION */
.cta-section {
  background: var(--secondary);
  color: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 36px 0 rgba(27,42,68, 0.13);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.cta-section h2 {
  color: #fff;
  margin-bottom: 20px;
}
.cta-section .cta-btn {
  background: #fff;
  color: var(--secondary);
  font-size: 1.14rem;
}
.cta-section .cta-btn:hover,
.cta-section .cta-btn:focus {
  background: #20387A;
  color: #fff;
}

/* === SECTION LAYOUTS & FLEXBOX === */
.section, .content-wrapper {
  width: 100%;
}
ul, ol {
  padding-left: 20px;
}
.text-section {
  background: #fff;
  border-radius: 18px;
  padding: 24px 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.text-section:last-child {
  margin-bottom: 0;
}
.contact-details p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.step-by-step {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  justify-content: space-between;
}
.step-by-step > div {
  flex: 1 1 220px;
  min-width: 210px;
  max-width: 270px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.18s;
}
.step-by-step > div:hover {
  box-shadow: 0 8px 36px rgba(32,56,122,0.13);
  background: #FFF6EE;
}
.step-by-step img {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  background: var(--warm1);
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 2px 8px 0 rgba(27, 42, 68, 0.06);
}
.step-by-step h3 {
  font-size: 1.14rem;
}

.case-studies {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
  justify-content: space-between;
}
.case-studies .text-section {
  flex: 1 1 280px;
  max-width: 370px;
  min-width: 250px;
}

/* === TESTIMONIALS & CARDS === */
.testimonial-card {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 22px;
  margin-bottom: 20px;
  box-shadow: 0 4px 32px 0 rgba(27,42,68,0.09);
  transition: box-shadow 0.18s;
  border-left: 6px solid var(--secondary);
  max-width: 540px;
}
.testimonial-card blockquote {
  font-size: 1.16rem;
  color: #20387A;
  font-family: 'Montserrat', Arial, sans-serif;
  font-style: italic;
  margin-bottom: 18px;
}
.testimonial-card p {
  color: #2B425B;
  font-size: 1rem;
}
.testimonial-card:hover {
  box-shadow: 0 8px 36px 0 rgba(27,42,68, .13);
  background: #FFF6EE;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 17px;
  box-shadow: var(--shadow);
  padding: 26px 20px;
  transition: box-shadow 0.18s, transform 0.15s;
}
.card:hover {
  box-shadow: 0 4px 32px 0 rgba(27,42,68,.13);
  transform: translateY(-2px) scale(1.01);
}

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

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 20px 20px 20px 24px;
}
.feature-item strong {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}

/* === BLOG ENTRIES === */
.content-wrapper ul > li {
  background: #fff;
  border-radius: 17px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  padding: 24px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.18s;
}
.content-wrapper ul > li:hover {
  box-shadow: 0 8px 36px 0 rgba(32,56,122,.13);
  background: #FFF6EE;
}
.content-wrapper ul > li span {
  font-size: 0.98rem;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* === FOOTER === */
footer {
  background: #20387A;
  color: #fff;
  padding: 40px 0 28px 0;
  border-radius: 24px 24px 0 0;
  margin-top: 44px;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
footer img {
  max-height: 48px;
  background: #fff;
  border-radius: 16px;
  padding: 6px;
  margin-bottom: 12px;
}
footer nav {
  flex-direction: column;
  gap: 10px;
}
footer nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 6px;
  transition: color 0.16s;
  padding: 0;
  background: none;
}
footer nav a:hover, footer nav a:focus {
  color: #FFD8AE;
  background: none;
}
footer address {
  font-style: normal;
  color: #F2F4F8;
  font-size: 0.98rem;
  margin-top: 10px;
}
footer address a {
  color: #FFD8AE;
  font-weight: 500;
  font-family: 'Roboto', Arial, sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
  padding: 0;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
  }
  .case-studies, .step-by-step {
    flex-direction: column;
    gap: 20px;
  }
  .case-studies .text-section, .step-by-step > div {
    max-width: 100%;
  }
  footer .container {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  .hero-section h1 {
    font-size: 2rem;
  }
  .hero-section {
    padding-top: 34px;
    padding-bottom: 35px;
  }
  .section, .cta-section {
    padding: 26px 8px;
    margin-bottom: 36px;
    border-radius: 18px;
  }
  .content-wrapper {
    gap: 16px;
  }
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .testimonial-card {
    padding: 14px;
    border-radius: 16px;
  }
  .feature-item {
    padding: 13px 13px 13px 15px;
    border-radius: 15px;
  }
  .text-section {
    border-radius: 12px;
    padding: 12px 8px;
  }
}

@media (max-width: 650px) {
  h1 {
    font-size: 1.53rem;
  }
  h2 {
    font-size: 1.28rem;
  }
  footer .container {
    padding: 0 4px;
  }
}

/* === COOKIE CONSENT BANNER (FIXED BOTTOM) === */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: #FFD8AE;
  color: #20387A;
  z-index: 999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 10px 20px 10px;
  gap: 18px;
  box-shadow: 0 -2px 24px 0 rgba(27,42,68, .08);
  font-size: 1.04rem;
}
.cookie-consent-banner .cookie-consent-text {
  max-width: 480px;
  flex: 2 1 290px;
  margin-right: 18px;
  color: #20387A;
}
.cookie-consent-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 15px;
}
.cookie-btn {
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 9px 21px;
  font-weight: 700;
  font-size: 1rem;
  margin-left: 0;
  transition: background 0.16s, color 0.16s, box-shadow 0.17s;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.cookie-btn.settings {
  background: #20387A;
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  color: #CB561D;
  border: 2px solid #CB561D;
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: #1CA472;
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: #162853;
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: #FFD8AE;
  color: #CB561D;
}

/* === COOKIE PREFERENCES MODAL === */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(32,56,122, 0.29);
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 480px;
  width: 96vw;
  padding: 28px 26px 24px 26px;
  box-shadow: 0 10px 44px 0 rgba(27,42,68,0.19);
  animation: scaleIn .34s cubic-bezier(.32,1.24,.39,.94);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@keyframes scaleIn {
  0% { transform: scale(0.90); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  color: #20387A;
  font-size: 1.32rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 6px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.cookie-category label, .cookie-category span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #1B2A44;
}
.cookie-switch {
  appearance: none;
  width: 40px;
  height: 22px;
  background: #FFD8AE;
  border-radius: 16px;
  position: relative;
  outline: none;
  transition: background 0.16s;
  cursor: pointer;
}
.cookie-switch:checked {
  background: #1CB07C;
}
.cookie-switch:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.19s;
}
.cookie-switch:checked:before {
  left: 21px;
}
.cookie-modal-footer {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 6px;
}

/* --- Media queries for cookies --- */
@media (max-width: 630px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 4px 15px 4px;
    font-size: 0.96rem;
  }
  .cookie-consent-banner .cookie-consent-text {
    margin-right: 0;
  }
  .cookie-modal {
    padding: 14px 7px 10px 14px;
    border-radius: 11px;
  }
  .cookie-modal h2 {
    font-size: 1.02rem;
  }
}

/* ==== MICRO-INTERACTIONS & TRANSITIONS ==== */
.card, .testimonial-card, .feature-item, .text-section, .content-wrapper ul > li {
  transition: box-shadow 0.19s, background 0.17s, transform 0.17s;
}
.card:hover, .content-wrapper ul > li:hover, .feature-item:hover {
  box-shadow: 0 8px 28px 0 rgba(32,56,122,0.13);
  background: #FFF6EE;
}

/* ==== SCROLLBAR (modern & warm) ==== */
::-webkit-scrollbar {
  width: 10px;
  background: #FFD8AE;
}
::-webkit-scrollbar-thumb {
  background: #FFB37A;
  border-radius: 5px;
}

/* ==== MISC UTILS ==== */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; border: 0; padding: 0;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ==== OVERRIDES FOR SPECIFIC HTML STRUCTURES ==== */
/* All icons in text-section */
.text-section img[alt] {
  width: 26px;
  height: 26px;
  display: inline-block;
  margin-right: 8px;
  background: var(--warm1);
  border-radius: 7px;
  padding: 3px;
  vertical-align: middle;
}
/* for all ul in "feature lists" and page sections */
.content-wrapper > ul, .content-wrapper > ol {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
}
.content-wrapper > ul > li, .content-wrapper > ol > li {
  flex: 1 1 210px;
  min-width: 150px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 22px 16px 18px 22px;
  color: #314564;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.content-wrapper > ul > li img {
  width: 38px;
  height: 38px;
  margin-bottom: 4px;
  margin-right: 0;
  background: var(--warm1);
  border-radius: 50%;
  padding: 6px;
}
.content-wrapper > ul > li strong {
  margin-bottom: 3px;
}

@media (max-width: 850px) {
  .content-wrapper > ul, .content-wrapper > ol {
    flex-direction: column;
    gap: 14px;
  }
}

/* Special for address in contact pages */
address {
  font-style: normal;
  color: #1CB07C;
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.6;
  margin-top: 6px;
}

/* === END === */
