/* ==================================================
   CSS RESET & BASE 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;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F6F6F3;
  color: #1e2530;
}
img {
  max-width: 100%;
  display: block;
  border: 0;
}
a {
  color: #20436B;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #189CA4;
}
ul, ol {
  list-style-type: disc;
  margin-left: 1.2rem;
}
strong {
  font-weight: bold;
}
em {
  font-style: italic;
}

/* ==================================================
   FONTS & TYPOGRAPHY (Elegant Classic Style)
   ================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Roboto:wght@400;500;700&display=swap');

body {
  font-family: 'Roboto', Georgia, 'Times New Roman', Times, serif;
  font-size: 1rem;
  background: #F6F6F3;
  color: #253248;
  font-weight: 400;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Georgia, 'Times New Roman', Times, serif;
  color: #20436B;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.16;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
h4 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.tagline {
  font-family: 'Montserrat', serif;
  font-size: 1.25rem;
  color: #189CA4;
  margin-bottom: 14px;
  letter-spacing: 0.03em;
}
p, li {
  font-size: 1.125rem;
  color: #253248;
  margin-bottom: 12px;
}
blockquote {
  font-style: italic;
  color: #39435b;
  border-left: 4px solid #20436B;
  padding-left: 14px;
  margin-bottom: 8px;
  background: #F2F6FB;
}
cite {
  font-size: 1rem;
  font-style: normal;
  color: #20436B;
  margin-left: 4px;
}

/* Typography for buttons and navigation */
.cta, .main-nav a, .footer-nav a, .mobile-nav a {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.07rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ==================================================
   CONTAINER & SECTION STRUCTURE
   ================================================== */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(32,67,107,0.06);
  transition: box-shadow .18s;
}
@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 28px;
    border-radius: 10px;
  }
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

/* ==================================================
   HEADER & NAVIGATION
   ================================================== */
header {
  background: #F2F6FB;
  border-bottom: 1px solid #e6ebf3;
  position: relative;
  z-index: 1000;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  gap: 0;
}
header img {
  height: 48px;
  width: auto;
  margin-right: 36px;
}

.main-nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  color: #20436B;
  padding: 8px 0;
  position: relative;
  border-radius: 3px;
  transition: color .18s, background .18s;
}
.main-nav .cta {
  background: #20436B;
  color: #fff;
  padding: 9px 22px;
  border-radius: 22px;
  margin-left: 16px;
  box-shadow: 0 1px 6px 0 rgba(32, 67, 107, 0.16);
  transition: background .2s, box-shadow .2s;
}
.main-nav .cta:hover,
.main-nav .cta:focus {
  background: #189CA4;
  color: #fff;
  box-shadow: 0 2px 12px 0 rgba(24,156,164,0.13);
}

.main-nav a:hover, .main-nav a:focus {
  color: #189CA4;
  background: #eaf0f6;
}

.mobile-menu-toggle {
  display: none;
  background: #20436B;
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  margin-left: 18px;
  cursor: pointer;
  transition: background .18s, transform .18s;
  z-index: 1102;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #189CA4;
  transform: scale(1.08);
}

/* ============= MOBILE MENU ============= */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32,67,107,0.95);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  transform: translateX(100vw);
  transition: transform 0.38s cubic-bezier(.77,0,.18,1);
  opacity: 1;
  z-index: 1100;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  color: #fff;
  font-size: 2rem;
  border: none;
  padding: 20px 28px 20px 18px;
  cursor: pointer;
  align-self: flex-start;
  transition: color .18s, transform .18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #189CA4;
  transform: scale(1.1);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding: 30px 32px 0 20px;
  min-width: 250px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.28rem;
  padding: 8px 0;
  border-radius: 5px;
  transition: background .18s, color .17s;
  width: 100%;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #189CA4;
  color: #fff;
}
.mobile-nav .cta {
  background: #fff;
  color: #20436B;
  padding: 9px 24px;
  border-radius: 22px;
  font-weight: bold;
  box-shadow: 0 2px 8px 0 rgba(32,67,107,0.10);
  margin-top: 14px;
}

@media (max-width: 1100px) {
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .main-nav {
    gap: 13px;
  }
}

@media (max-width: 900px) {
  .main-nav {
    gap: 6px;
  }
  header img {
    height: 39px;
    margin-right: 8px;
  }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 13px 10px;
  }
  header img {
    height: 36px;
    margin-right: 4px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ==================================================
   BUTTONS & CTAS
   ================================================== */
.cta {
  display: inline-block;
  background: #20436B;
  color: #fff;
  padding: 13px 32px;
  border-radius: 24px;
  font-size: 1.19rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  box-shadow: 0 2px 14px 0 rgba(32,67,107,0.11);
  border: none;
  cursor: pointer;
  margin-top: 8px;
  transition: background .2s, box-shadow .2s, transform .12s;
}
.cta:hover, .cta:focus {
  background: #189CA4;
  color: #fff;
  box-shadow: 0 2px 16px 0 rgba(24,156,164,0.13);
  transform: translateY(-2px) scale(1.022);
}

button:focus, .cta:focus {
  outline: 2px solid #189CA4;
  outline-offset: 2px;
}


/* ==================================================
   FOOTER
   ================================================== */
footer {
  background: #F2F6FB;
  border-top: 1px solid #e6ebf3;
  padding: 40px 0 18px;
  font-size: 1rem;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 34px;
}
footer img {
  height: 60px;
  width: auto;
  margin-right: 28px;
  align-self: flex-start;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-right: 30px;
}
.footer-nav a {
  color: #20436B;
  font-size: 1.05rem;
  font-family: 'Montserrat', Georgia, serif;
  padding: 3px 0;
  border-radius: 2px;
  transition: color .17s, background .13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #189CA4;
  background: #eaf0f6;
}
.contact-info {
  color: #20436B;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 1.06rem;
  line-height: 1.55;
}
.contact-info a {
  color: #189CA4;
  text-decoration: underline;
}
.contact-info a:hover, .contact-info a:focus {
  color: #20436B;
}

@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 22px;
    align-items: stretch;
  }
  footer img {
    margin: 0 0 14px 0;
    align-self: flex-start;
  }
  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin: 0 0 12px 0;
  }
}
@media (max-width: 600px) {
  footer {
    padding: 29px 0 8px;
  }
}

/* ==================================================
   FLEXBOX LAYOUTS (MANDATORY PATTERNS)
   ================================================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(32,67,107,0.07);
  margin-bottom: 20px;
  padding: 28px 24px;
  position: relative;
  transition: box-shadow .18s, transform .18s;
  min-width: 250px;
  flex: 1 1 250px;
}
.card:hover {
  box-shadow: 0 4px 20px 0 rgba(32,67,107,0.13);
  transform: translateY(-3px) scale(1.018);
}

.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;
    gap: 18px;
    align-items: flex-start;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F2F6FB;
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(32,67,107,0.07);
  margin-bottom: 20px;
  transition: box-shadow .15s;
  min-width: 220px;
}
.testimonial-card:hover {
  box-shadow: 0 4px 16px 0 rgba(32,67,107,0.14);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* give .content-wrapper not to overlap */
.content-wrapper > * {
  margin-bottom: 8px;
}
.content-wrapper > *:last-child {
  margin-bottom: 0;
}

/* ========== UL/OL LI SPACING ========== */
ul, ol {
  margin-bottom: 14px;
}
ul li, ol li {
  margin-bottom: 7px;
}

/* ========== Minor Utility Styles ========== */
.hidden {
  display: none !important;
}

/* ==================================================
   RESPONSIVE DESIGN — MOBILE FIRST
   ================================================== */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
  }
}
@media (max-width: 800px) {
  .container {
    padding: 0 12px;
    max-width: 97vw;
  }
  .card {
    padding: 20px 13px;
    min-width: 180px;
  }
}
@media (max-width: 650px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  main .container, footer .container, header .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  .content-wrapper {
    gap: 10px;
  }
}
@media (max-width: 450px) {
  h1 {
    font-size: 1.2rem;
  }
  h2 {
    font-size: 1.08rem;
  }
  .cta {
    padding: 12px 13px;
    font-size: 1.05rem;
    border-radius: 15px;
  }
}

/* ==================================================
   HOVER/FOCUS STATES + MICROS
   ================================================== */
.card, .testimonial-card, .cta {
  transition: box-shadow .19s, background .18s, color .14s, transform .13s;
}
.card:active {
  transform: scale(0.99);
}
.testimonial-card:active {
  transform: scale(0.995);
}

/* ==================================================
   COOKIE CONSENT BANNER
   ================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #F2F6FB;
  color: #20436B;
  box-shadow: 0 -4px 24px 0 rgba(32,67,107,0.12);
  padding: 22px 20px;
  z-index: 2000;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
  animation: cookieSlideIn 0.6s cubic-bezier(.8,0,.18,1);
}
@keyframes cookieSlideIn {
  from { transform: translateY(80%); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-banner p {
  margin: 0 0 12px 0;
  color: #20436B;
  font-size: 1.06rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}
.cookie-btn, .cookie-settings-btn {
  background: #20436B;
  color: #fff;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.04rem;
  padding: 9px 22px;
  border: 0;
  border-radius: 18px;
  margin-left: 4px;
  margin-right: 4px;
  cursor: pointer;
  transition: background .18s, box-shadow .18s, transform .13s;
  box-shadow: 0 1px 4px 0 rgba(32,67,107,0.11);
}
.cookie-btn:hover, .cookie-btn:focus, .cookie-settings-btn:hover, .cookie-settings-btn:focus{
  background: #189CA4;
  outline: none;
}
.cookie-btn.reject {
  background: #fff;
  color: #20436B;
  border: 1px solid #20436B;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #189CA4;
  color: #fff;
  border-color: #189CA4;
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 7px;
  }
  .cookie-banner .cookie-actions {
    margin-top: 4px;
    gap: 8px;
  }
}

/* COOKIE SETTINGS MODAL */
.cookie-modal-backdrop {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32,67,107,0.30);
  z-index: 2050;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s cubic-bezier(.68,0,.37,1);
}
.cookie-modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  width: 98%;
  max-width: 440px;
  border-radius: 18px;
  box-shadow: 0 12px 42px 0 rgba(32,67,107,0.23);
  padding: 34px 28px 26px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeInModal .25s cubic-bezier(.8,0,.18,1);
}
@keyframes fadeInModal {
  from { transform: translateY(48px) scale(0.95); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-modal h2 {
  color: #20436B;
  font-family: 'Montserrat', serif;
  font-size: 1.18rem;
  margin-bottom: 16px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.cookie-category label {
  font-size: 1.09rem;
  color: #253248;
  font-family: 'Montserrat', serif;
  font-weight: 600;
}
.cookie-toggle {
  width: 36px;
  height: 20px;
  background: #dbe8f2;
  border-radius: 11px;
  position: relative;
  display: inline-block;
  cursor: pointer;
  vertical-align: middle;
  transition: background .16s;
}
.cookie-toggle input {
  display: none;
}
.cookie-toggle-slider {
  position: absolute;
  left: 3px;
  top: 2px;
  width: 16px;
  height: 16px;
  background: #189CA4;
  border-radius: 100%;
  transition: left .17s, background .13s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  left: 17px;
  background: #20436B;
}
.cookie-modal .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 9px;
  margin-top: 13px;
  justify-content: flex-end;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 18px;
  right: 16px;
  font-size: 1.5rem;
  background: transparent;
  color: #20436B;
  border: none;
  cursor: pointer;
}
.cookie-modal .close-modal:hover,
.cookie-modal .close-modal:focus {
  color: #189CA4;
}

/* ==================================================
   ACCESSIBILITY IMPROVEMENTS
   ================================================== */
:focus {
  outline: 2px solid #189CA4;
  outline-offset: 2px;
}

/* ==================================================
   SCROLLBAR (Elegant, Minimal)
   ================================================== */
::-webkit-scrollbar {
  width: 8px;
  background: #F2F6FB;
}
::-webkit-scrollbar-thumb {
  background: #d6dbe2;
  border-radius: 5px;
}

/* ==================================================
   MISC & OVERRIDES FOR BRAND/ELEGANT CLASSIC
   ================================================== */
::-moz-selection {
  background: #189CA4;
  color: #fff;
}
::selection {
  background: #189CA4;
  color: #fff;
}

/* ========== SPACING BETWEEN CARDS/SECTIONS ========== */
main > section {
  margin-bottom: 60px;
  padding: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
}
main .container {
  margin-bottom: 0;
}
main .section {
  margin-bottom: 0;
  padding: 0;
  background: none;
  box-shadow: none;
}

@media (max-width: 600px) {
  main > section {
    margin-bottom: 24px;
  }
}

/* Add breathing space to all direct siblings in .content-wrapper */
.content-wrapper > *:not(:last-child) {
  margin-bottom: 18px;
}

/* ========== END ========== */
