/* ================= RESET & NORMALIZE =================== */
html {
  box-sizing: border-box;
  font-size: 100%;
  height: 100%;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #F3F6FB;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #183E63;
  min-height: 100vh;
  height: 100%;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #11A8AB;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #0d7285;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
  margin-left: 0;
  margin-bottom: 0;
  padding-left: 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
  margin-bottom: 32px;
}
th, td {
  border: 1px solid #dfebf7;
  padding: 16px 12px;
  text-align: left;
  font-size: 16px;
}
th {
  background: #eaf0f7;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
}
td {
  font-weight: 400;
}
input, button, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* =============== BRAND FONTS (Montserrat/Roboto) =============== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #183E63;
  margin-bottom: 12px;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.75rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.35rem; margin-bottom: 12px; font-weight: 600; }
h4 { font-size: 1.125rem; }

p, li, address, label {
  font-size: 16px;
  color: #183E63;
  margin-bottom: 10px;
}
address {font-style: normal;}

/* UTILITIES */
.container {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}
.content-wrapper {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px 0 rgba(24, 62, 99, 0.07);
  padding: 40px 28px;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ============== HEADER+NAV =============== */
header {
  background: #fff;
  border-bottom: 1px solid #eaf0f7;
  position: relative;
  z-index: 100;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 16px 0; 
  justify-content: flex-start;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: #183E63;
  opacity: 0.93;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
header nav a:hover, header nav a:focus {
  background: #11A8AB11;
  color: #11A8AB;
}
header nav img {
  height: 42px;
  width: auto;
  margin-right: 12px;
}

/* ======= MOBILE MENU ========= */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.15rem;
  color: #183E63;
  margin-left: auto;
  cursor: pointer;
  z-index: 140;
  padding: 6px 13px;
  border-radius: 8px;
  transition: background .2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #11A8AB22;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24,62,99,0.96);
  z-index: 2000;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transition: transform .35s cubic-bezier(.77,.2,.6,1), opacity .22s;
  transform: translateX(-102%);
  opacity: 0;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  padding: 14px 18px;
  cursor: pointer;
  align-self: flex-end;
  margin: 8px 15px 0 0;
  transition: background .2s;
  border-radius: 8px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #11A8AB22;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  margin-top: 30px;
  align-items: flex-start;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.22rem;
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 500;
  letter-spacing: 0.01em;
  width: 100%;
  transition: background .18s, color .17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #11A8ABcc;
  color: #fff;
}
.mobile-menu {
  /* prevent content behind from scrolling when open */
  overscroll-behavior: contain;
}

@media (max-width: 1024px) {
  header nav {
    gap: 10px;
  }
}
@media (max-width: 900px) {
  header nav {
    gap: 5px;
    font-size: 15px;
  }
}
@media (max-width: 850px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ============== SECTIONS & SPACING ============== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
}
.section { 
  margin-bottom: 60px; 
  padding: 40px 20px; 
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 14px 0 rgba(24,62,99,0.08);
  padding: 28px 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  min-width: 270px;
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #f4f8fd;
  border-radius: 12px;
  box-shadow: 0 1px 7px 0 rgba(24,62,99,0.05);
  margin-bottom: 20px;
  border-left: 6px solid #11A8AB;
  min-width: 200px;
  width: 100%;
}
.testimonial-card p {
  color: #183E63;
  font-size: 1.06rem;
  margin-bottom: 6px;
}
.testimonial-card span {
  font-size: 0.97rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #183E63;
}
.testimonial-card span:last-child {
  color: #ffbf00;
  font-size: 1.1rem;
  letter-spacing: .15em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

@media (max-width: 600px) {
  .container {
    padding: 0 2px;
  }
  .content-wrapper {
    padding: 23px 7px;
    gap: 14px;
  }
}

/* ============ CTA BUTTONS ============ */
.cta-btn, .mobile-menu-toggle, .mobile-menu-close, .cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  background: #11A8AB;
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 13px 32px;
  cursor: pointer;
  transition: background .18s, color .15s, box-shadow .17s;
  box-shadow: 0 2px 8px 0 rgba(17,168,171,0.09);
  margin-top: 15px;
  margin-bottom: 15px;
  outline: none;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus,
.cookie-btn:hover, .cookie-btn:focus {
  background: #183E63;
  color: #fff;
  box-shadow: 0 3px 9px 0 rgba(24,62,99,0.08);
  text-decoration: none;
}

/* ========= FORM ELEMENTS (SEARCH, INPUT) ========== */
input[type="search"], input[type="text"], input[type="email"], textarea {
  padding: 10px 15px;
  border-radius: 7px;
  border: 1px solid #b7cde2;
  background: #fafdff;
  font-size: 1rem;
  margin-bottom: 10px;
  width: 100%;
  transition: border .15s;
}
input[type="search"]:focus,input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  outline: none;
  border: 1.5px solid #11A8AB;
}
::placeholder {color:#b7cde2; opacity:.9;}

/* ================ ADDRESS CARD ================== */
address div {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}
address img { width: 23px; height: 23px; }

/* ============= FOOTER ============= */
footer {
  background: #183E63;
  color: #fff;
  padding: 30px 0 20px 0;
  border-top: 2px solid #eaf0f7;
}
footer a {
  color: #b7cde2;
  font-size: 1rem;
  margin-right: 16px;
  transition: color .18s;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
footer a:hover, footer a:focus {
  color: #11A8AB;
  text-decoration: underline;
}
footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
footer p {
  color: #eaf0f7;
  font-size: 0.99rem;
  text-align: center;
}

/* ============== RESPONSIVE FLEXBOX LAYOUTS ============== */
@media (max-width: 850px) {
  .content-grid, .card-container {
    gap: 16px;
    flex-direction: column;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-card, .card {
    min-width: 0;
    width: 100%;
  }
}
@media (max-width: 600px) {
  .content-wrapper { padding: 12px 4px; }
  section { padding: 16px 1px; }
}

/* =============== COOKIE CONSENT BANNER & MODAL =============== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  background: #183E63cc;
  color: #fff;
  box-shadow: 0 -4px 16px #183E6320;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: space-between;
  padding: 25px 24px;
  font-size: 1.06rem;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  animation: cb-slide-up .7s ease;
}
@keyframes cb-slide-up {
  from {transform: translateY(100%);}
  to {transform: translateY(0);}
}
.cookie-banner .cookie-btn {
  margin: 0 10px 0 0;
  padding: 10px 26px;
  background: #11A8AB;
  color: #fff;
  border-radius: 7px;
  font-weight: 600;
  transition: background .19s;
}
.cookie-banner .cookie-btn.settings {
  background: #F3F6FB;
  color: #183E63;
  border: 1.5px solid #11A8AB;
  margin-left: 2px;
}
.cookie-banner .cookie-btn.settings:hover {
  background: #11A8AB22;
  color: #183E63;
}
.cookie-banner .cookie-btn.reject {
  background: #e63b3b;
}
.cookie-banner .cookie-btn.reject:hover {
  background: #b92727;
}

.cookie-modal-backdrop {
  position: fixed;
  z-index: 4000;
  top: 0; left: 0; bottom: 0; right: 0;
  background: rgba(24,62,99,0.62);
}
.cookie-modal {
  position: fixed;
  bottom: 0;
  background: #fff;
  box-shadow: 0 8px 44px 0 rgba(24,62,99,0.21);
  border-radius: 17px 17px 0 0;
  min-width: 310px;
  max-width: 96vw;
  width: 440px;
  z-index: 4001;
  padding: 38px 32px 30px 32px;
  animation: cookie-modal-up .25s ease;
}
@keyframes cookie-modal-up {
  from {transform: translate(-50%,80%) scale(0.9); opacity: .2;}
  to {transform: translate(-50%,60%) scale(0.98); opacity: 1;}
}
.cookie-modal h2 {
  margin-top: 0;
  color: #183E63;
  font-size: 1.35rem;
  margin-bottom: 16px;
}
.cookie-modal .cookie-category {
  margin-bottom: 23px;
  padding: 13px 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid #eaf0f7;
}
.cookie-modal .cookie-category label {
  flex: 1;
  font-size: 1.07rem;
  color: #183E63;
}
.cookie-modal .switch {
  position: relative;
  width: 45px;
  height: 25px;
  display: inline-block;
}
.cookie-modal .switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #b7cde2;
  border-radius: 16px;
  transition: background .22s;
}
.cookie-modal .switch input:checked + .slider {
  background: #11A8AB;
}
.cookie-modal .slider:before {
  position: absolute;
  content: "";
  height: 19px; width: 19px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px #0002;
  transition: transform .16s;
}
.cookie-modal .switch input:checked + .slider:before {
  transform: translateX(20px);
}
.cookie-modal .cookie-category.essential label {
  font-weight: 600;
  color: #11A8AB;
}
.cookie-modal .cookie-category.essential .switch {
  opacity: .63;
  cursor: not-allowed;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 20px;
}
.cookie-modal .cookie-btn {
  padding: 8px 20px;
  margin: 0;
}

@media (max-width: 600px) {
  .cookie-modal {
    min-width: 0;
    width: 99vw;
    max-width: 99vw;
    padding: 21px 7px 17px 13px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 16px;
    padding: 18px 6px;
  }
}

/* ====== TABLE RESPONSIVE ======= */
@media (max-width: 700px) {
  table, thead, tbody, th, td, tr {
      display: block;
      width: 100%;
  }
  thead tr {
    display: none;
  }
  tr { margin-bottom: 18px; }
  td {
    border: none;
    border-bottom: 1px solid #eaf0f7;
    position: relative;
    padding-left: 46px;
    min-height: 36px;
  }
  td:before {
    position: absolute;
    left: 10px;
    top: 10px;
    width: 30px;
    font-weight: bold;
    color: #183E63;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-size: 0.97rem;
    content: attr(data-label);
    white-space: nowrap;
    opacity: 0.7;
  }
}

/* =========== MICRO-INTERACTIONS =========== */
.card, .testimonial-card, .content-wrapper, .cta-btn, .cookie-banner, .cookie-modal {
  transition: box-shadow .16s, background .25s, border-color .18s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 6px 32px 0 rgba(24,62,99,0.13);
  border-color: #11A8AB;
}

/* ========== VISUAL ELEMENTS (ICONS...) ========== */
.content-wrapper ul img,
.content-wrapper ol img,
address img {
  margin-right: 8px;
  vertical-align: middle;
  height: 24px;
  width: auto;
}

/* ========== FEATURE LISTS / VALUES ========== */
ul, ol {
  margin-left: 0;
  margin-bottom: 16px;
  padding-left: 0;
}
ul li, ol li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  color: #183E63;
}
ul li img {
  flex-shrink: 0;
}

/* SPECIAL: For steps/numbered lists on features.html */
ol {
  counter-reset: section;
}
ol li {
  position: relative;
  padding-left: 31px;
}
ol li:before {
  counter-increment: section;
  content: counter(section) ".";
  position: absolute;
  left: 0;
  top: 0;
  background: #11A8AB;
  color: #fff;
  border-radius: 8px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.01rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: bold;
  margin-right: 9px;
}

/* =========== FAQ SEARCH INPUT ========== */
input[type="search"] {
  background: #fff;
  border: 1px solid #b7cde2;
  font-size: 1.075rem;
  border-radius: 8px;
  margin-bottom: 22px;
  transition:border .15s;
}
input[type="search"]:focus {
  border-color: #11A8AB;
  box-shadow: 0 0 4px #11A8AB22;
  outline: none;
}

/* ========== VISUAL HIERARCHY & TYPOGRAPHY SCALE ========== */
@media (max-width: 600px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.06rem; }
  .content-wrapper, .card, .testimonial-card {
    padding: 11px 6px;
  }
}

/* =========== MISCELLANEOUS =========== */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-thumb {
  background: #b7cde2;
  border-radius: 8px;
}

/* ========== OVERRIDE/RESET unwanted styles ========== */
button, .cta-btn, .cookie-btn {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  outline: none;
  cursor: pointer;
}

/* ========== HIDE visually unnecessary duplicate content on small screens ========== */
@media (max-width: 600px) {
  .content-wrapper,.card,.testimonial-card {margin-bottom:32px;}
  .text-section {gap:10px;}
  .container {padding:0 1px;}
}

/* ========== Z-INDEX LAYERING for NAV & COOKIE ========== */
header {z-index: 1000; position:relative;}
.mobile-menu      {z-index: 2000;}
.cookie-banner    {z-index: 3000;}
.cookie-modal, .cookie-modal-backdrop {z-index: 4002;}

/* ========== ENSURE MINIMUM CARD SPACING ========== */
.card, .testimonial-card, .card-container > * {
  margin-bottom: 20px;
}

/* ==== POLISH: FOCUS VISIBLE STYLES FOR ACCESSIBILITY ==== */
a:focus-visible, button:focus-visible, .cta-btn:focus-visible, .cookie-btn:focus-visible {
  outline: 2.5px solid #11A8AB;
  outline-offset: 2.5px;
}

/*************************
FOR JS: .mobile-menu.open,
       .cookie-modal, .cookie-modal-backdrop
hide cookie modal by default
**************************/
.cookie-modal, .cookie-modal-backdrop { display: none; }
.cookie-modal.open, .cookie-modal-backdrop.open { display: block; }
