/* RESET & BASE ------------------------------- */
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 {
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #F2F5F7;
  color: #1c2736;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #23497C;
  text-decoration: none;
  transition: color .3s;
}
a:hover, a:focus {
  color: #2bb399;
}
ul, ol {
  list-style: none;
}
strong, b {
  font-weight: 700;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* GRADIENTS & COLORS ------------------------------ */
:root {
  --primary: #23497C;
  --secondary: #2BB399;
  --accent: #F2F5F7;
  --dark: #172132;
  --text: #1c2736;
  --white: #fff;
  --shadow: 0 6px 32px 0 rgba(35, 73, 124, 0.10);
  --radius-lg: 18px;
  --radius-md: 10px;
  --radius-sm: 7px;
  --gradient-1: linear-gradient(90deg, #23497C 0%, #2BB399 100%);
  --gradient-2: linear-gradient(100deg, #264581 20%, #2bb399 80%);
  --gradient-cta: linear-gradient(108deg, #23497C 20%, #2BB399 110%);
  --shadow-card: 0 2px 16px rgba(38,69,129,0.11);
}

/* TYPOGRAPHY ------------------------------ */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #172132;
  margin-bottom: 8px;
  line-height: 1.20;
}
h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.4rem;
}
h4 {
  font-size: 1.1rem;
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.15rem; }
}
p, li, label {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

/* BUTTONS ------------------------------ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gradient-cta);
  color: var(--white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  border: none;
  border-radius: var(--radius-md);
  padding: 13px 36px;
  box-shadow: 0 4px 24px 0 rgba(35,73,124,0.16);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: background 0.28s, transform 0.23s, box-shadow 0.28s;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, #2BB399 0%, #23497C 100%);
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 8px 36px 0 rgba(35,73,124,0.24);
  color: #fff;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 2px solid var(--secondary);
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: var(--radius-md);
  padding: 12px 32px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}

/* HEADER NAV ------------------------------ */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(35, 73, 124, 0.05);
  position: relative;
  z-index: 1000;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  padding: 22px 20px 12px 20px;
  gap: 32px;
  min-height: 72px;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  transition: background .22s, color .2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--accent);
  color: var(--secondary);
}
.main-nav .btn-primary {
  margin-left: 16px;
}
.mobile-menu-toggle {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2rem;
  cursor: pointer;
  display: none;
  padding: 5px 10px;
}

@media (max-width: 992px) {
  .main-nav a:not(.btn-primary) { font-size: 0.96rem; }
  header .container { gap: 12px; }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 11px;
  }
}

/* MOBILE MENU ------------------------------ */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(38,69,129,0.96);
  z-index: 2222;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(100vw);
  opacity: 0;
  pointer-events: none;
  transition: opacity .36s cubic-bezier(.68,.01,.09,1.04), transform .48s cubic-bezier(.68,.01,.09,1.04);
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.7rem;
  position: relative;
  align-self: flex-end;
  margin: 18px 26px 7px 0;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  transition: color .2s;
}
.mobile-menu-close:hover {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 88vw;
  max-width: 370px;
  margin: 0 0 0 34px;
  margin-top: 30px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.30rem;
  font-weight: 600;
  padding: 10px 0;
  letter-spacing: .04em;
  border-radius: var(--radius-md);
  transition: background .21s, color .21s;
  display: flex;
  align-items: center;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: #fff;
}

@media (max-width: 1100px) {
  .main-nav { gap: 9px; }
  .main-nav .btn-primary { margin-left: 8px; }
  header .container { gap: 16px; }
}
@media (max-width: 850px) {
  .main-nav a { font-size: .91rem; }
  header .container { gap: 10px; }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    align-items: center;
    padding: 17px 11px 8px 11px;
    gap: 4px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* HERO ------------------------------ */
.hero {
  background: var(--gradient-1);
  color: #fff;
  min-height: 330px;
  padding: 48px 0 48px 0;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 2px 32px 0 rgba(35, 73, 124, 0.14);
  display: flex;
  align-items: center;
  margin-bottom: 54px;
}
.hero .container {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: flex-start;
  gap: 0;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 10px 0;
  width: 100%;
  align-items: flex-start;
}
.hero h1, .hero h2, .hero h3, .hero p {
  color: #fff;
}
.hero .btn-primary {
  margin-top: 10px;
  font-size: 1.17rem;
}
@media (max-width: 864px) {
  .hero {
    min-height: 250px;
    padding: 35px 0 30px 0;
    border-radius: 0 0 22px 22px;
    margin-bottom: 28px;
  }
}
@media (max-width: 768px) {
  .hero {
    padding: 22px 0 18px 0;
    min-height: 130px;
    margin-bottom: 20px;
  }
  .hero .content-wrapper {
    gap: 15px;
  }
  .hero .container {
    padding: 0 7px;
  }
}

/* CARD LAYOUTS ----------------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .19s, box-shadow .22s;
  min-width: 260px;
}
.card:hover, .card:focus-within {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 7px 28px rgba(35,73,124,0.18);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 23px 24px 20px 24px;
  min-height: 150px;
}

/* Flex containers for generic layouts */
.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: flex-start;
    gap: 16px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
}

/* FEATURE & SERVICE LISTS ------------------- */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-bottom: 24px;
  justify-content: space-between;
}
.service-list > div {
  flex: 1 1 240px;
  min-width: 230px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px 18px 20px 20px;
  margin-bottom: 0;
  transition: box-shadow .21s, transform .19s;
}
.service-list > div:hover {
  box-shadow: 0 7px 24px rgba(43,179,153,0.18);
  transform: translateY(-2px) scale(1.013);
}
@media (max-width: 900px) {
  .service-list {
    flex-direction: column;
    gap: 16px;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.section ul, .section ul li {
  list-style: none;
  padding: 0;
  margin: 0;
}
.section ul li {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 0 12px 0;
  font-size: 1.05rem;
  color: #23497C;
  font-weight: 500;
  letter-spacing: .02em;
}
.section ul li img {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--accent);
}

/* BLOG LIST -------------------------- */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 22px;
}
.blog-list > div {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 20px 18px 16px 18px;
  min-width: 230px;
  flex: 1 1 260px;
  transition: box-shadow .20s;
}
.blog-list > div:hover {
  box-shadow: 0 8px 24px rgba(38,69,129,0.19);
}
@media (max-width: 900px) {
  .blog-list {
    flex-direction: column;
    gap: 12px;
  }
}

/* TESTIMONIALS ------------------------------ */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 2px 16px rgba(43, 179, 153, 0.12);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #172132;
  transition: box-shadow .22s, transform .18s;
}
.testimonial-card p {
  font-size: 1.15rem;
  color: #172132;
  text-align: center;
}
.testimonial-card strong {
  font-family: 'Montserrat', sans-serif;
  color: #2BB399;
  font-size: 1rem;
  font-weight: 700;
}
.testimonial-card:hover {
  box-shadow: 0 7px 36px rgba(43,179,153,0.18);
  transform: scale(1.012);
}
@media (max-width: 600px) {
  .testimonial-card p {
    font-size: 1.05rem;
  }
}

/* FOOTER ------------------------------ */
footer {
  background: linear-gradient(90deg, #23497C 0%, #294b85 100%);
  color: #fff;
  padding: 38px 0 28px 0;
  font-size: 1rem;
  margin-top: 34px;
}
footer .container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-branding {
  display: flex;
  align-items: center;
  gap: 18px;
}
.footer-branding img {
  height: 38px;
  width: auto;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 170px;
}
.footer-nav a {
  color: #fff;
  opacity: .91;
  font-weight: 600;
  padding: 4px 0 4px 0;
  transition: color .18s, opacity .22s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #2BB399;
  opacity: 1;
}
address {
  font-style: normal;
  color: #d6e0ec;
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
address img {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  margin-right: 6px;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .footer-branding {
    margin-bottom: 5px;
  }
}

/* GENERAL SPACING for cards/sections ----------------------------- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  section {
    margin-bottom: 34px;
    padding: 27px 7px;
  }
}

/* COOKIE CONSENT BANNER & MODAL ----------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2300;
  background: #fff;
  box-shadow: 0 -2px 32px 0 rgba(35, 73, 124, 0.17);
  width: 100%;
  display: flex;
  align-items: center;
  gap: 26px;
  justify-content: space-between;
  padding: 26px 24px 22px 24px;
  border-radius: 20px 20px 0 0;
  transition: transform .42s cubic-bezier(.68,.01,.09,1.04), opacity .32s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  transform: translateY(130%);
  opacity: 0;
}
.cookie-banner p {
  font-size: 1.03rem;
  color: #23497C;
  max-width: 620px;
}
.cookie-banner-buttons {
  display: flex;
  gap: 13px;
}
.cookie-banner .btn-primary, .cookie-banner .btn-secondary {
  padding: 8px 22px;
  font-size: 1rem;
  border-radius: var(--radius-md);
  min-width: 100px;
}
.cookie-banner .btn-secondary {
  background: none;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
  transition: border-color .2s, background .2s;
}
.cookie-banner .btn-secondary:hover, .cookie-banner .btn-secondary:focus {
  border-color: var(--secondary);
  color: var(--secondary);
  background: var(--accent);
}
@media (max-width: 900px) {
  .cookie-banner {
    flex-direction: column;
    gap: 13px 0;
    align-items: flex-start;
    padding: 17px 10px 15px 10px;
  }
  .cookie-banner .cookie-banner-buttons {
    width: 100%;
    justify-content: flex-start;
  }
}

/* COOKIE MODAL (PREFERENCES) ----------------------------- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  z-index: 2500;
  background: rgba(23,33,50,0.57);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity .32s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 48px 0 rgba(35, 73, 124, 0.14);
  padding: 38px 30px 31px 30px;
  width: 96vw;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  font-size: 1rem;
}
.cookie-modal h2 {
  font-size: 1.23rem;
  color: var(--primary);
  margin-bottom: 12px;
  font-weight: 700;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 6px 0;
}
.cookie-category label {
  font-size: 1.05rem;
  color: #23497C;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 22px;
  height: 22px;
}
.cookie-category.cookie-essential label {
  font-weight: bold;
  color: #2bb399;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 11px;
  justify-content: flex-end;
}
.cookie-modal .btn-primary, .cookie-modal .btn-secondary {
  padding: 7px 23px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}
.cookie-modal-close {
  position: absolute;
  top: 17px;
  right: 20px;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #23497C;
  cursor: pointer;
  transition: color 0.2s;
}
.cookie-modal-close:hover {
  color: var(--secondary);
}

@media (max-width: 500px){
  .cookie-modal {
    padding: 14px 6px 16px 6px;
    border-radius: 14px;
  }
  .cookie-modal h2 { font-size: 1.06rem; }
}

/* MISC ------------------------------ */
::-webkit-scrollbar {
  width: 8px;
  background: #e4eff5;
}
::-webkit-scrollbar-thumb {
  background: #2bb39955;
  border-radius: 4px;
}

::-moz-selection { background: var(--secondary); color: #fff; }
::selection { background: var(--secondary); color: #fff; }

/* ADDITIONAL: Responsive utility ------------------------------ */
@media (max-width: 600px) {
  body {
    font-size: 15px;
  }
}

/* MINIMAL FOCUS STYLES ---------------------- */
a:focus, button:focus, .btn-primary:focus, .btn-secondary:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* ENSURE CONSISTENT MARGINS BETWEEN CARDS/SECTIONS */
.card, .testimonial-card, .blog-list > div, .service-list > div {
  margin-bottom: 20px;
}
.section + .section, section + section {
  margin-top: 20px;
}

/* VISUAL ENHANCEMENTS FOR CTA/HEADINGS ---------------------------- */
.cta-section, .section:last-child {
  background: var(--gradient-2);
  color: #fff;
  border-radius: var(--radius-lg);
}
.cta-section h2, .section:last-child h2 {
  color: #fff;
}

/* Ensure visual hierarchy --------------------- */
h1, h2, h3 {
  margin-bottom: 10px; /* consistent */
}
.section h2 {
  margin-top: 13px;
}

/* TRANSITIONS & MICROINTERACTIONS */
section, .card, .testimonial-card, .btn-primary, .btn-secondary {
  transition: box-shadow .22s, transform .17s, color .15s, background .21s;
}

/* Prevent overlapping, ensure adequate spacing */
.card, .testimonial-card, .service-list > div, .blog-list > div {
  margin-bottom: 20px;
}

/* ENSURE INTERACTIVE ELEMENTS ARE CLEAR ON SMALL SCREENS */
@media (max-width: 390px){
  .btn-primary, .btn-secondary { font-size: .98rem; padding: 8px 11px; }
}

/* Ensuring no grid/column/absolute for content */
/* ALL .flex containers use only display:flex + gap, never grid or columns */
