/* RESET & BASE STYLES -------------------------------------------------- */
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;
}
article, aside, details, figcaption, figure,  
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.65;
  color: #222;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #243A56;
  text-decoration: none;
  transition: color .18s;
}
a:hover, a:focus {
  color: #111;
  text-decoration: underline;
  outline: none;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 20px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
strong, b {
  font-weight: 600;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #111;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.14;
}
h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}
h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 16px;
}
p, li {
  font-size: 1.08rem;
  color: #232323;
  margin-bottom: 16px;
}
p:last-child, li:last-child {
  margin-bottom: 0;
}

/* CONTAINERS & SECTIONS -------------------------------------------------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}
.section {
  margin-bottom: 60px !important;
  padding: 40px 20px !important;
}
.content-wrapper {
  margin: 0 auto;
  max-width: 840px;
}

/* HEADER & NAV ---------------------------------------------------------- */
header {
  background: #fff;
  border-bottom: 2px solid #e7e7e7;
  padding: 0;
  box-shadow: 0 4px 18px 0 rgba(0,0,0,0.04);
  position: relative;
  z-index: 1000;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
}
header a img {
  height: 46px;
  width: auto;
  margin: 18px 0 18px 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.main-nav a {
  font-size: 1.1rem;
  font-weight: 500;
  color: #222;
  padding: 6px 10px;
  position: relative;
  border-radius: 4px;
  transition: color .16s, background .16s;
}
.main-nav a.cta-btn {
  background: #fff;
  color: #1d1d1d;
  font-weight: 700;
  border: 2px solid #243A56;
  border-radius: 24px;
  padding: 8px 20px;
  margin-left: 10px;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 4px rgba(49,49,49,0.03);
  transition: background .19s, color .18s;
}
.main-nav a.cta-btn:hover, .main-nav a.cta-btn:focus {
  background: #243A56;
  color: #fff;
}
.main-nav a:hover, .main-nav a:focus {
  color: #243A56;
  background: #f3f3f3;
}
button.mobile-menu-toggle {
  display: none;
}

/* MOBILE NAVIGATION ----------------------------------------------------- */
.mobile-menu-toggle {
  background: #fff;
  color: #243A56;
  font-size: 2rem;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 6px;
  margin-left: auto;
  display: none;
  transition: background .18s, color .18s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #243A56;
  color: #fff;
  outline: none;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 6px 36px 0 rgba(20,20,20,0.17);
  z-index: 2200;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.85,.02,.23,1.01);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 16px 22px 8px 0;
  background: none;
  border: none;
  font-size: 2rem;
  color: #222;
  cursor: pointer;
  transition: color .18s;
}
.mobile-menu-close:active, .mobile-menu-close:focus {
  color: #243A56;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin: 22px 34px;
}
.mobile-nav a {
  font-size: 1.18rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #111;
  font-weight: 500;
  padding: 10px 0 10px 0;
  border: none;
  background: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #243A56;
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 18px;
  }
}
@media (max-width: 840px) {
  .main-nav {
    gap: 9px;
  }
}
@media (max-width: 860px) {
  .main-nav {
    font-size: 1rem;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block !important;
  }
  header .container {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* FOOTER --------------------------------------------------------------- */
footer {
  background: #191919;
  color: #f6f6f7;
  font-size: 1rem;
  padding: 32px 0 14px 0;
  border-top: 2px solid #232323;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 10px;
}
.footer-menu a {
  color: #f3f3f3;
  font-size: 1rem;
  transition: color .18s;
  padding: 0 4px;
}
.footer-menu a:hover,
.footer-menu a:focus {
  color: #fff;
  text-decoration: underline;
}
.brand-statement {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.2px;
  color: #eee;
  margin-bottom: 5px;
}
.contact-info p {
  color: #d1d4da;
  font-size: 0.97rem;
}

/* SECTIONS & CARDS ----------------------------------------------------- */
.section {
  background: #fff;
  border-radius: 20px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 4px 32px 0 rgba(0,0,0,0.05), 0 1.5px 8px 0 rgba(50,50,50,0.03);
}
.section:last-child {
  margin-bottom: 0;
}
.container > .content-wrapper {
  padding: 0 6px;
}

/* --- HERO TAGLINE --- */
.tagline {
  font-size: 1.22rem;
  color: #333;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  margin-bottom: 18px;
  letter-spacing: -0.1px;
  line-height: 1.32;
}

/* --- CARDS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 12px 0 rgba(30,30,30,0.05);
  padding: 30px 26px;
  flex: 1 1 35%;
  min-width: 260px;
  transition: box-shadow .19s, transform .13s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 7px 28px rgba(36,58,86,.10), 0 1.5px 16px 0 rgba(50,50,50,0.04);
  transform: translateY(-6px) scale(1.014);
  z-index: 2;
}

/* --- FEATURE GRID --- */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  margin-top: 16px;
  margin-bottom: 12px;
}
.feature {
  background: #fcfcfc;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  flex: 1 1 210px;
  min-width: 176px;
  max-width: 228px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 18px 18px 15px 18px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .17s, transform .13s;
}
.feature img {
  width: 38px;
  height: 38px;
  margin-bottom: 6px;
  filter: grayscale(89%);
  opacity: 0.87;
}
.feature h3 {
  font-size: 1.13rem;
  color: #243A56;
  margin-bottom: 5px;
}
.feature:hover {
  box-shadow: 0 7.5px 27px rgba(36,58,86,.09);
  transform: translateY(-3px) scale(1.017);
  z-index: 1;
  background: #f5f6f7;
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #f5f5f7;
  border-radius: 18px;
  box-shadow: 0 3px 13px rgba(0,0,0,0.07);
  padding: 24px;
  gap: 12px;
  margin-bottom: 24px;
  max-width: 540px;
  color: #19191c;
  border-left: 4px solid #243A56;
  transition: background .2s, box-shadow .17s;
}
.testimonial-card p {
  color: #19191c;
  font-weight: 500;
  font-size: 1.13rem;
  margin-bottom: 6px;
}
.testimonial-card span {
  color: #243A56;
  font-size: .97rem;
  font-style: italic;
  align-self: flex-end;
}
.testimonial-card:hover {
  background: #efefef;
  box-shadow: 0 7px 24px rgba(36,58,86,.13);
}

/* --- BUTTONS & CTA --- */
.cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.11rem;
  font-weight: 700;
  color: #fff;
  background: #243A56;
  padding: 13px 32px;
  border-radius: 26px;
  box-shadow: 0 2.5px 14px 0 rgba(36,58,86,0.09);
  border: none;
  outline: none;
  display: inline-block;
  margin-top: 14px;
  letter-spacing: .4px;
  cursor: pointer;
  transition: background .19s, color .18s, transform .14s, box-shadow .14s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #191919;
  color: #fff;
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 6px 28px #243A5617;
}

/* FORMS, TABLES, MISC --------------------------------------------------- */
table {
  width: 100%;
  margin: 18px 0 26px 0;
  border-collapse: collapse;
  background: #fafafa;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(40,40,40,0.07);
  overflow: hidden;
  font-size: 1.03rem;
}
thead {
  background: #243A56;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
th, td {
  padding: 16px 14px;
  text-align: left;
}
th {
  font-size: 1.05rem;
}
tbody tr {
  border-bottom: 1px solid #eee;
}
tbody tr:last-child {
  border-bottom: none;
}
tbody td {
  color: #232323;
}
w fieldset, input, textarea, select {
  font-family: inherit;
}
input, textarea, select {
  padding: 9px 13px;
  border: 1px solid #ccc;
  border-radius: 7px;
  background: #fafbfb;
  font-size: 1rem;
  outline: none;
  margin-bottom: 10px;
  transition: border-color .18s, box-shadow .18s;
}
input:focus, textarea:focus, select:focus {
  border-color: #243A56;
  box-shadow: 0 0 0 2px #243A5622;
}

/* MAP PLACEHOLDER ------------------------------------------------------ */
.map-placeholder {
  background: #f7f6f5;
  color: #232;
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 28px;
  margin-bottom: 22px;
  box-shadow: 0 2px 5px rgba(36,58,86,0.06);
}


/* COOKIE CONSENT BANNER -------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  background: #232323e6;
  color: #fff;
  padding: 24px 14px 24px 18px;
  box-shadow: 0 0 30px 0 #0007;
  gap: 26px;
  font-size: 1.07rem;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  transition: transform .34s cubic-bezier(.91,0,.17,1), opacity .19s;
}
.cookie-banner.hide {
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-btn {
  border: none;
  outline: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 22px;
  padding: 10px 22px;
  cursor: pointer;
  background: #fff;
  color: #243A56;
  box-shadow: 0 1px 8px rgba(36,58,86,0.07);
  transition: background .15s, color .15s, box-shadow .11s, transform .10s;
}
.cookie-btn.accept {
  background: #243A56;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #222;
}
.cookie-btn.reject {
  background: #fff;
  color: #191919;
  border: 1.5px solid #243A56;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #243A56;
  color: #fff;
}
.cookie-btn.settings {
  background: #efefef;
  color: #191919;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #ddd;
  color: #243A56;
}

/* COOKIE MODAL ----------------------------------------------------------- */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 4002;
  left: 0;
  top: 0; right: 0; bottom: 0;
  background: rgba(36,36,36,0.56);
  transition: opacity .21s;
  justify-content: center;
  align-items: center;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #fff;
  max-width: 420px;
  width: 94vw;
  border-radius: 21px;
  box-shadow: 0 6px 38px 0 rgba(20,20,20,0.20);
  padding: 38px 28px 22px 28px;
  color: #1b1b1c;
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-size: 1.08rem;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.35rem;
  margin-bottom: 4px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #243A56;
  cursor: pointer;
  opacity: 0.75;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.cookie-category .cookie-switch {
  accent-color: #243A56;
  width: 27px;
  height: 27px;
  font-size: 1.3rem;
}
.cookie-category .cookie-category-label {
  flex: 1 1 0;
  font-size: 1.03rem;
}
.cookie-category.essential .cookie-switch {
  opacity: 0.6;
  pointer-events: none;
}
.cookie-modal .cookie-modal-actions {
  margin-top: 9px;
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

/* FLEX SPACING CLASSES ------------------------------------------------ */
.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;
}


/* RESPONSIVE STYLES --------------------------------------------------- */
@media (max-width: 1119px) {
  .container {
    max-width: 98vw;
    padding: 0 4vw;
    min-width: 0;
  }
}
@media (max-width: 980px) {
  .features-grid {
    gap: 20px;
  }
  .feature {
    min-width: 145px;
    max-width: 190px;
    padding: 14px 10px 14px 14px;
  }
}
@media (max-width: 900px) {
  .container {
    padding: 0 2vw;
  }
  .content-wrapper,
  .section {
    padding: 28px 6px !important;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.35rem;
  }
  .feature {
    font-size: .99rem;
  }
}
@media (max-width: 768px) {
  .container, footer .container {
    max-width: 100vw;
    padding: 0 4vw;
  }
  .section {
    margin-bottom: 48px !important;
    padding: 24px 2vw !important;
    border-radius: 11px;
  }
  .content-wrapper {
    padding: 0 0.5vw;
  }
  .features-grid {
    gap: 14px;
    justify-content: flex-start;
  }
  .feature {
    min-width: 140px;
    max-width: 165px;
    padding: 8px 6px 10px 10px;
  }
  .testimonial-card {
    padding: 9px 10px 11px 12px;
    min-width: 0;
    font-size: 1.02rem;
    flex-direction: column;
    align-items: flex-start;
  }
  h1 {
    font-size: 1.5rem;
    margin-bottom: 16px;
  }
  h2 {
    font-size: 1.10rem;
    margin-bottom: 13px;
  }
  .cta-btn {
    padding: 9px 18px;
    font-size: 1.02rem;
    margin-top: 10px;
  }
  .testimonial-card span {
    font-size: 0.95rem;
  }
  .features-grid,
  .card-container,
  .content-grid,
  .text-image-section,
  .footer-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .testimonial-card {
    gap: 10px;
    margin-bottom: 13px;
  }
  .card {
    padding: 19px 9px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 13px;
    align-items: flex-start;
    padding: 18px 7vw 18px 7vw;
    font-size: .97rem;
    border-radius: 0;
  }
}

@media (max-width: 495px) {
  .feature, .card {
    min-width: 112px;
    max-width: 99vw;
  }
  .footer-menu {
    gap: 10px;
  }
  .cookie-banner {
    padding-left: 6vw;
    padding-right: 6vw;
  }
}


/* ANIMATIONS & MICROINTERACTIONS ---------------------------------------- */
.cta-btn, .main-nav a, .feature, .card, .testimonial-card, .cookie-btn, .cookie-modal {
  transition: box-shadow .17s cubic-bezier(.57,.02,.35,1.02), transform .16s, background .18s, color .19s, border-color .13s;
}

@media (hover: hover) {
  .cta-btn:hover, .main-nav a:hover, .feature:hover, .footer-menu a:hover, .cookie-btn:hover {
    filter: brightness(1.03);
  }
}

/* SCROLLBAR ------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 10px;
  background: #f7f7f9;
}
::-webkit-scrollbar-thumb {
  background: #dadada;
  border-radius: 6px;
}

/* MISC UTILS ----------------------------------------------------------- */
.center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.text-section {
  margin: 16px 0;
}

/* OVERRIDES FOR ACCESSIBILITY & CONTRAST --------------------------------- */
.testimonial-card p, .testimonial-card span {
  color: #19191c;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* Hide visually but accessible to screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
