/* ------------------------------
   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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #fff;
  color: #23395D;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  min-height: 100vh;
  /* neutral base */
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}
:focus {
  outline: 2px solid #23395D;
  outline-offset: 2px;
}

/* Typography Scale: 14, 16, 18, 24, 32, 48px */
h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 24px;
}
h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.25;
  margin-bottom: 20px;
}
h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
  margin-bottom: 14px;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}
p, li {
  font-size: 1rem;
  line-height: 1.6;
  color: #23395D;
}
strong {
  font-weight: 600;
}

/* ------------------------------
   Container & Alignment
------------------------------ */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
@media (min-width: 900px) {
  .content-wrapper {
    gap: 32px;
  }
}

/* ------------------------------
   Site Header & Navigation
------------------------------ */
header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #E8EAF6;
  position: relative;
  z-index: 101;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}
.logo img {
  height: 40px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  gap: 12px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 14px;
  border-radius: 6px;
  color: #23395D;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #E8EAF6;
  color: #CA5D00;
}
.cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  background: #23395D;
  color: #fff;
  padding: 10px 20px;
  border-radius: 28px;
  box-shadow: 0 2px 16px 0 rgba(35,57,93,0.08);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.12s;
  cursor: pointer;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: #CA5D00;
  color: #fff;
  box-shadow: 0 6px 24px 0 rgba(202,93,0,0.11);
  transform: translateY(-2px) scale(1.03);
}

/* Hide mobile menu toggler by default */
.mobile-menu-toggle {
  display: none;
}

@media (max-width: 990px) {
  .main-nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    margin-left: auto;
    background: #fff;
    border: none;
    border-radius: 8px;
    font-size: 2rem;
    color: #23395D;
    padding: 8px 16px;
    cursor: pointer;
    z-index: 200;
    transition: background 0.18s;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: #E8EAF6;
  }
}

/* ------------------------------
  Mobile Burger Menu Overlay
------------------------------ */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(35,57,93, 0.97);
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(0.55, 0, 0.1, 1);
  z-index: 201;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 4px 0 0 24px;
  align-self: flex-start;
  font-size: 2.2rem;
  background: none;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  padding: 4px 12px 4px 4px;
  transition: background 0.18s;
  z-index: 204;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #23395D;
}
.mobile-nav {
  width: 100%;
  padding: 36px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.35rem;
  padding: 12px 32px;
  border-radius: 8px;
  transition: background 0.16s, color 0.16s;
  width: 100%;
  display: block;
  margin-left: 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #CA5D00;
  color: #fff;
}

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

/* ------------------------------
   Hero Section
------------------------------ */
.hero {
  margin-bottom: 60px;
  padding: 40px 0;
  background: #E8EAF6;
  display: flex;
  align-items: center;
}
.hero .container {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.hero h1 {
  color: #23395D;
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.hero p {
  color: #23395D;
  font-size: 1.2rem;
  margin-bottom: 8px;
  max-width: 650px;
}

/* ------------------------------
   Section Layout
------------------------------ */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(35,57,93, 0.03);
}
section:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  section {
    padding: 32px 8px;
    margin-bottom: 36px;
  }
}

/* ------------------------------
   Features, Services, Lists
------------------------------ */
.features .content-wrapper,
.services .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  padding: 0;
}
.feature-grid li {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(35,57,93,0.08);
  padding: 32px 20px;
  flex: 1 1 270px;
  min-width: 250px;
  max-width: 305px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.14s;
}
.feature-grid li:hover {
  box-shadow: 0 8px 28px rgba(35,57,93,0.13);
  transform: translateY(-3px) scale(1.01);
}
.feature-grid img {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}
.services ul, .features ul {
  padding: 0;
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.services ul li, .features ul li {
  font-size: 1.06rem;
  padding-left: 0;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  color: #23395D;
}
.services ul li strong {
  font-weight: 600;
  color: #CA5D00;
}

/* ------------------------------
   Testimonials
------------------------------ */
.testimonials .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 32px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 28px 0 rgba(35,57,93,0.07);
  min-width: 260px;
  max-width: 458px;
  flex: 1 1 260px;
  z-index: 1;
  position: relative;
  transition: box-shadow 0.12s, transform 0.12s;
}
.testimonial-card blockquote {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.13rem;
  font-style: italic;
  color: #23395D;
  margin-bottom: 4px;
}
.testimonial-card footer {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: #23395D;
  font-weight: 400;
  opacity: 0.87;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 32px 0 rgba(202,93,0,0.12);
  transform: translateY(-2px) scale(1.015);
}

@media (max-width: 850px) {
  .testimonial-card { max-width: 100%; min-width: 0; } 
}

/* ------------------------------
   Cards and Content Blocks
------------------------------ */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(35,57,93,0.05);
  padding: 28px 18px;
  transition: box-shadow 0.14s, transform 0.13s;
}
.card:hover { box-shadow: 0 8px 24px 0 rgba(35,57,93,0.12); }

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* ------------------------------
   Misc Section Layout Patterns
------------------------------ */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ------------------------------
   Legal & Static Pages
------------------------------ */
.legal {
  background: #fff;
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 16px;
  box-shadow: 0 2px 20px 0 rgba(35,57,93,0.04);
}
.legal h1 {
  font-size: 2rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 22px;
}
.legal h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 26px;
}

/* ------------------------------
   Spacing and Alignment Rules
------------------------------ */
section, .card-container, .content-grid, .testimonial-card, .feature-grid {
  margin-bottom: 20px;
}
@media (min-width: 900px) {
  section {
    margin-bottom: 60px;
    padding: 40px 20px;
  }
}

/* ------------------------------
   Contact Section
------------------------------ */
.contact .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
}
.contact .text-section ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact .text-section li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}
.contact .text-section img {
  width: 22px;
  height: 22px;
}

/* ------------------------------
   Footer
------------------------------ */
footer {
  background: #E8EAF6;
  padding: 44px 0 32px 0;
  margin-top: 32px;
  border-top: 1px solid #E8EAF6;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  max-width: 340px;
}
.footer-brand img {
  height: 33px;
  width: auto;
  margin-bottom: 10px;
}
.footer-brand p {
  color: #23395D;
  opacity: 0.67;
  font-size: 1rem;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-nav a {
  color: #23395D;
  font-size: 1rem;
  border-radius: 5px;
  padding: 5px 10px;
  transition: background 0.13s, color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #fff;
  color: #CA5D00;
}
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.97rem;
}
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #23395D;
}
.footer-contact img {
  width: 18px;
  height: 18px;
}

@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 0 8px;
  }
}

/* ------------------------------
   Thank You Page
------------------------------ */
.thank-you {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thank-you .content-wrapper {
  text-align: center;
  align-items: center;
  gap: 16px;
}
.thank-you h1 {
  color: #23395D;
  font-size: 2rem;
  margin-bottom: 12px;
}

/* ------------------------------
   Responsive Layout Adjustments
------------------------------ */
@media (max-width: 900px) {
  .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    padding: 18px 12px;
    max-width: 100%;
    min-width: 0;
  }
}
@media (max-width: 768px) {
  .content-wrapper,
  .feature-grid,
  .services .content-wrapper,
  .features .content-wrapper,
  .testimonials .content-wrapper,
  .card-container,
  .content-grid,
  .footer .container
  {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
  }
  .section, section {
    padding: 22px 4px;
    margin-bottom: 32px;
    border-radius: 12px;
  }
  .text-image-section {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 18px !important;
  }
  header .container {
    gap: 6px;
  }
}

/* ------------------------------
   Microinteractions & Subtle Effects
------------------------------ */
a, button, .cta-btn, .footer-nav a, .main-nav a, .mobile-nav a {
  transition: color 0.17s, background 0.17s, box-shadow 0.18s, transform 0.13s;
}
button:focus, .cta-btn:focus, a:focus {
  outline: 2px solid #CA5D00;
  outline-offset: 2px;
}

/* ------------------------------
   Cookie Consent Banner
------------------------------ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 460px;
  background: #fff;
  box-shadow: 0 -2px 24px 0 rgba(35,57,93,0.16);
  border-radius: 14px 14px 0 0;
  padding: 24px 18px 20px 18px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.41s cubic-bezier(0.43,0,0.21,1), opacity 0.29s;
}
.cookie-banner.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0%);
  pointer-events: auto;
}
.cookie-banner p {
  font-size: 1rem;
  color: #23395D;
}
.cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 15px;
  justify-content: flex-end;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: 26px;
  padding: 9px 18px;
  cursor: pointer;
  box-shadow: 0 1px 3px 0 rgba(35,57,93,0.07);
  background: #E8EAF6;
  color: #23395D;
  transition: background 0.13s, color 0.13s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #CA5D00;
  color: #fff;
}
.cookie-btn.accept {
  background: #23395D;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #CA5D00;
}
.cookie-btn.reject {
  background: #fff;
  color: #23395D;
  border: 1px solid #23395D;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #E8EAF6;
  color: #CA5D00;
}

/* Cookie Settings Modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(35,57,93,0.48);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.31s;
}
.cookie-modal-overlay.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px 0 rgba(35,57,93,0.14);
  max-width: 420px;
  width: 96vw;
  padding: 32px 24px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.13rem;
  font-family: 'Montserrat';
  font-weight: 600;
  margin-bottom: 10px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  font-size: 1rem;
  gap: 10px;
  margin-bottom: 10px;
  font-family: 'Roboto';
  color: #23395D;
}
.cookie-modal .modal-close {
  position: absolute;
  right: 12px; top: 10px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #CA5D00;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 5px;
  transition: background 0.14s;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  background: #E8EAF6;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 21px;
  background: #E8EAF6;
  border-radius: 14px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.16s;
  box-shadow: 0 1px 3px 0 rgba(35,57,93,0.05);
}
.cookie-toggle:checked {
  background: #23395D;
}
.cookie-toggle:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.cookie-toggle:before {
  content: '';
  display: block;
  position: absolute;
  left: 2px; top: 2px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.17s, background 0.13s;
  box-shadow: 0 1px 2px 0 rgba(35,57,93,0.08);
}
.cookie-toggle:checked:before {
  left: 19px;
  background: #CA5D00;
}

@media (max-width: 600px) {
  .cookie-banner {
    max-width: calc(100vw - 16px);
    padding: 22px 7px 18px 7px;
  }
  .cookie-modal {
    max-width: 97vw;
    padding: 18px 8px 12px 8px;
    border-radius: 12px;
  }
}

/* ------------------------------
   Utility Classes
------------------------------ */
.text-center { text-align: center !important; }
.align-center { align-items: center !important; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.white { color: #fff !important; }
.bg-primary { background: #23395D !important; }
.bg-accent { background: #CA5D00 !important; }
.bg-light { background: #E8EAF6 !important; }

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