/* ---------------------------------------
   CSS RESET & BASELINE NORMALIZATION
------------------------------------------*/
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;
  vertical-align: baseline;
  font: inherit;
  font-size: 100%;
  box-sizing: border-box;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  min-height: 100vh;
  line-height: 1.5;
  background: #F7F9FA;
  color: #22334D;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
a {
  color: #22334D;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #0F2234;
  outline: none;
}

/* ---------------------------------------
         TYPOGRAPHY & FONT SCALE
------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #22334D;
  margin-bottom: 16px;
  font-weight: 700;
  line-height: 1.15;
}
h1 {
  font-size: 2.5rem; /* 40px */
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;   /* 32px */
  margin-bottom: 20px;
}
h3 {
  font-size: 1.5rem; /* 24px */
  margin-bottom: 16px;
}
h4 { font-size: 1.125rem; margin-bottom: 12px; }

p,
li,
ul li {
  color: #22334D;
  font-size: 1rem; /* 16px */
  margin-bottom: 10px;
}
p {
  margin-bottom: 18px;
}
strong { font-weight: 600; }

/* ---------------------------------------
       CONTAINER & LAYOUT SYSTEM
------------------------------------------*/
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

/* Strict section spacing - MANDATORY */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* Flex card/container rules */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(34, 51, 77, 0.07);
  margin-bottom: 20px;
  position: relative;
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-width: 280px;
  max-width: 350px;
  transition: box-shadow 0.22s;
}
.card:hover {
  box-shadow: 0 8px 28px rgba(34, 51, 77, 0.14);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between; /* spacing horizontally when possible */
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(34, 51, 77, 0.10);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 680px;
  color: #22334D;
  transition: box-shadow 0.22s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(34, 51, 77, 0.16);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* Section spacing enforcement for all main > section */
main > section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
}

/* Utility classes */
.mt-8 { margin-top: 8px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.gap-20 { gap: 20px !important; }

/* ---------------------------------------
         HEADER & NAVIGATION STYLES
------------------------------------------*/
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(34, 51, 77, 0.08);
  padding: 0 0;
  position: relative;
  z-index: 40;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 20px;
  font-size: 1rem;
}
.main-nav a {
  color: #22334D;
  padding: 8px 14px;
  border-radius: 6px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F1C27D;
  color: #22334D;
}
.main-nav .btn-primary {
  background: #22334D;
  color: #fff !important;
  border-radius: 8px;
  padding: 10px 26px;
  margin-left: 16px;
  box-shadow: 0 2px 6px rgba(34, 51, 77, 0.07);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.main-nav .btn-primary:hover, .main-nav .btn-primary:focus {
  background: #183360;
  box-shadow: 0 4px 18px rgba(34, 51, 77, 0.11);
  color: #F1C27D;
}

/* Hamburger button (mobile-menu-toggle) */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 18px;
  right: 24px;
  background: #22334D;
  color: #fff;
  border: none;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  cursor: pointer;
  z-index: 41;
  transition: background 0.18s, box-shadow 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #F1C27D;
  color: #22334D;
  outline: none;
}

/* MOBILE MENU OVERLAY -------------- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(34, 51, 77, 0.97);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(0.73,0.06,0.27,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  border: none;
  font-size: 2.25rem;
  padding: 16px 20px 0 16px;
  cursor: pointer;
  align-self: flex-end;
  transition: color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #F1C27D;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 8px 32px 32px 32px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.5rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  transition: color 0.15s, background 0.15s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: #F1C27D;
  background: rgba(241,194,125,0.07);
  outline: none;
}

/* Show/hide nav mobile/desktop */
@media (max-width: 1024px) {
  .main-nav {
    gap: 16px;
    padding-right: 60px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 12px;
    font-size: 15px;
  }
}
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu {
    display: flex;
  }
}
@media (min-width: 769px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}


/* ---------------------------------------
              BUTTONS & CTA
------------------------------------------*/
.btn-primary,
a.btn-primary {
  display: inline-block;
  background: #22334D;
  color: #FFF !important;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 12px 32px;
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  margin-top: 6px;
  box-shadow: 0 2px 10px rgba(34, 51, 77, 0.09);
  transition: background 0.22s, color 0.22s, box-shadow 0.22s, transform 0.18s;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.02em;
  text-decoration: none;
  outline: none;
}
.btn-primary:hover, .btn-primary:focus, a.btn-primary:hover, a.btn-primary:focus {
  background: #384A68;
  color: #F1C27D !important;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 22px rgba(34,51,77,0.16);
}
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* ---------------------------------------
        LISTS & ICON BULLETS
------------------------------------------*/
ul {
  list-style: none;
  margin-bottom: 16px;
  padding-left: 0;
}
ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
  padding-left: 0;
  font-size: 1rem;
}
ul li img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  margin-right: 6px;
}

/* ---------------------------------------
      HERO AND MAIN SECTION STYLES
------------------------------------------*/
main > section {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(34, 51, 77, 0.07);
  margin-bottom: 60px;
}
main > section:first-of-type {
  background: #22334D;
  color: #fff;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 8px 24px rgba(34, 51, 77, 0.12);
  padding-top: 32px;
}
main > section:first-of-type h1,
main > section:first-of-type p {
  color: #fff;
}
main > section:first-of-type .btn-primary {
  margin-top: 12px;
  background: #F1C27D;
  color: #22334D !important;
}
main > section:first-of-type .btn-primary:hover,
main > section:first-of-type .btn-primary:focus {
  background: #fff;
  color: #22334D !important;
  box-shadow: 0 4px 18px rgba(241, 194, 125, 0.18);
}

/* ---------------------------------------
           TESTIMONIAL CARD STYLES
------------------------------------------*/
.testimonial-card p {
  font-size: 1.08rem;
  font-style: italic;
  margin-bottom: 10px;
  color: #22334D;
}
.testimonial-card div {
  color: #22334D;
  font-size: 0.97rem;
  font-weight: 600;
}

/* Ensure readable text on testimonials */
.testimonial-card {
  background: #fff !important;
  color: #22334D !important;
  border: 1px solid #E9ECEF;
}

/* ---------------------------------------
                FOOTER STYLES
------------------------------------------*/
footer {
  background: #22334D;
  color: #fff;
  padding: 0 0 0 0;
}
footer .container {
  padding: 0 20px;
  margin: 0 auto;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 0 18px 0;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 1rem;
}
footer nav a {
  color: #F1C27D;
  font-weight: 500;
  transition: color 0.18s;
}
footer nav a:hover, footer nav a:focus {
  color: #fff;
}
footer .brand-info {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.98rem;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
}
footer .brand-info img {
  width: 36px;
  height: 36px;
}
footer .contact-short {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 0.97rem;
}
footer .contact-short img {
  width: 20px;
  height: 20px;
  margin-right: 4px;
}

/* ---------------------------------------
          COOKIE CONSENT BANNER
------------------------------------------*/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  color: #22334D;
  box-shadow: 0 -2px 16px rgba(34,51,77,0.13);
  z-index: 300;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 1rem;
  border-radius: 18px 18px 0 0;
  animation: slideUpBanner 0.45s;
  transition: transform 0.28s, opacity 0.28s;
}
@keyframes slideUpBanner {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner .btn,
.cookie-banner .cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  background: #22334D;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  margin-right: 10px;
  cursor: pointer;
  transition: background 0.17s, color 0.17s, transform 0.17s;
}
.cookie-banner .btn:hover,
.cookie-banner .btn:focus {
  background: #384A68;
  color: #F1C27D;
}
.cookie-banner .btn-secondary {
  background: #F1C27D;
  color: #22334D;
}
.cookie-banner .btn-secondary:hover {
  background: #eac083;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    font-size: 0.98rem;
    padding: 22px 12px;
    gap: 14px;
  }
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  z-index: 350;
  background: rgba(34,51,77,0.62);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fff;
  color: #22334D;
  border-radius: 18px;
  max-width: 420px;
  width: 92vw;
  padding: 32px 20px 24px 20px;
  box-shadow: 0 10px 32px rgba(34,51,77,0.26);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: showModal 0.38s;
}
@keyframes showModal {
  from { transform: translateY(60px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-content h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.3rem;
  margin-bottom: 4px;
  color: #22334D;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
}
.cookie-category input[type="checkbox"] {
  width: 20px;
  height: 20px;
}
.cookie-category label {
  font-size: 1rem;
  font-weight: 500;
  color: #22334D;
}
.cookie-modal-btns {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  align-items: center;
  justify-content: flex-end;
}

.cookie-modal .btn-secondary {
  background: #F1C27D;
  color: #22334D;
  font-weight: 600;
}
.cookie-modal .btn-secondary:hover {
  background: #eac083;
}

.cookie-modal .btn-primary {
  background: #22334D;
  color: #fff;
}

/* ---------------------------------------
         RESPONSIVENESS & MEDIA
------------------------------------------*/

@media (max-width: 1100px) {
  .container { max-width: 96vw; }
}
@media (max-width: 900px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.55rem; }
  .content-wrapper { gap: 14px; }
}
@media (max-width: 768px) {
  .container { max-width: 100vw; padding: 0 10px; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  .content-wrapper { gap: 12px; }
  main > section {
    padding: 24px 0;
    margin-bottom: 36px;
    border-radius: 13px;
  }
  footer .content-wrapper {
    padding: 18px 0 8px 0;
    gap: 13px;
    font-size: 0.97rem;
  }
  .card-container { gap: 14px; }
  .card { min-width: 96vw; max-width: 100vw; margin-bottom: 14px; padding: 12px; }
  .testimonial-card {
    min-width: 90vw;
    max-width: 98vw;
    margin-bottom: 15px;
    padding: 16px 8px;
    flex-direction: column;
    text-align: left;
    gap: 10px;
  }
  .feature-item {
    gap: 8px;
    margin-bottom: 10px;
  }
  .content-grid,
  .card-container,
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  main > section { padding: 12px 0; margin-bottom: 19px; }
  footer .content-wrapper { gap: 7px; }
  .btn-primary, .cookie-banner .btn, .cookie-banner .cookie-btn {
    width: 100%;
    font-size: 1rem;
    padding: 10px 8px;
  }
}

/* Ensure all main content is spaced and aligned properly */
main .container {
  padding-top: 20px;
  padding-bottom: 20px;
}

/* Utility: visually hidden (for a11y when needed) */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap; /* added line */
}

/* ---------------------------------------
      INPUT AND FORM FIELDS (if any)
------------------------------------------*/
input, textarea, select {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1.01rem;
  border: 1px solid #A6B3C8;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  outline: none;
  background: #FAFAFB;
  transition: border 0.18s, box-shadow 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: #22334D;
  box-shadow: 0 0 2px #F1C27D, 0 0 6px #22334D44;
}
/* Hide number input arrows */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance:textfield; }

/* ---------------------------------------
           MISC MICRO-INTERACTIONS
------------------------------------------*/
.card, .testimonial-card, .btn-primary, .cookie-banner .btn, .cookie-banner .cookie-btn {
  transition: box-shadow 0.18s, background 0.18s, color 0.18s, transform 0.18s;
}

/* Icon inline in lists */
ul li img {
  flex-shrink: 0;
}

/* Section-specific minor tweaks */
.content-wrapper > ul {
  margin-left: 0;
}

/* Icon size enforcement */
.brand-info img, .contact-short img, footer .brand-info img {
  display: inline-block;
}

/****************************************************
   END OF CSS - ALL LAYOUTS FLEXBOX, NO GRID
****************************************************/
