/* =====================
   CSS RESET & NORMALIZE
   ===================== */
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;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #F3F6FA;
  color: #123260;
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #1FA77A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #123260;
  outline: none;
}
ul, ol {
  padding-left: 1.2em;
  margin-bottom: 1.2em;
}
li {
  margin-bottom: 0.5em;
}
input, textarea, button, select {
  font: inherit;
  border-radius: 0;
  outline: none;
}
button {
  cursor: pointer;
  background: none;
  border: none;
}

/* ===================
   BRAND TYPOGRAPHY
   =================== */
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #123260;
  font-weight: 700;
  margin-bottom: 0.6em;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 2.25rem; /* 36px */
  line-height: 1.15;
  margin-bottom: 0.7em;
}
h2 {
  font-size: 1.75rem; /* 28px */
  margin-bottom: 0.6em;
}
h3 {
  font-size: 1.25rem; /* 20px */
  margin-bottom: 0.4em;
}
.section h2 {
  margin-top: 0;
}
p, ul, ol {
  font-size: 1rem;
  color: #1A243A;
}
strong {
  font-weight: 700;
  color: #123260;
}
em {
  color: #1FA77A;
}

/* ============================
   LAYOUT UTILS & CONTAINERS
   ============================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(18, 50, 96, 0.06);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.card {
  flex: 1 1 260px;
  min-width: 260px;
  max-width: 350px;
  background: #F3F6FA;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(18,50,96,.08);
  padding: 24px 20px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 4px 20px rgba(18,50,96,.13);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Featured image and text in one row on desktop */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .content-wrapper {
    gap: 16px;
  }
  .section {
    padding: 24px 8px;
    margin-bottom: 32px;
    border-radius: 8px;
  }
  .card-container {
    gap: 14px;
  }
  .card {
    max-width: 100%;
    padding: 16px 10px;
  }
}

/* =====================
   HEADER & NAVIGATION
   ===================== */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(18,50,96,0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 72px;
}
.logo-nav > a img {
  width: 168px;
  height: auto;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #123260;
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
  letter-spacing: 0.01em;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F3F6FA;
  color: #1FA77A;
}
.cta-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: #1FA77A;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 26px;
  font-size: 1.05rem;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(31,167,122,0.12);
  transition: background 0.18s, box-shadow 0.18s;
  margin-left: 16px;
  text-align: center;
  letter-spacing: 0.03em;
}
.cta-btn:hover, .cta-btn:focus {
  background: #123260;
  color: #fff;
  box-shadow: 0 4px 14px rgba(18,50,96,0.13);
}

/* ===================
   MOBILE NAVIGATION
   =================== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 24px;
  top: 20px;
  z-index: 200;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  background: #1FA77A;
  color: #fff;
  border-radius: 7px;
  border: none;
  justify-content: center;
  align-items: center;
  transition: background 0.18s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #123260;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  box-shadow: 0 0 0 100vw rgba(0,0,0,0.18);
  z-index: 950;
  padding: 28px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.76,0,.24,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  background: #F3F6FA;
  color: #123260;
  border-radius: 7px;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  transition: background 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #1FA77A;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 10px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #123260;
  font-size: 1.2rem;
  font-weight: 500;
  padding: 13px 8px;
  border-radius: 7px;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.02em;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F3F6FA;
  color: #1FA77A;
}

@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .cta-btn {
    margin-left: 0;
    margin-right: 52px; /* space for burger */
  }
}
@media (max-width: 600px) {
  .logo-nav > a img {
    width: 132px;
  }
  .cta-btn {
    font-size: 0.97rem;
    padding: 8px 18px;
    border-radius: 7px;
  }
}

/* =============================
   HERO and GENERAL SECTIONS
   ============================= */
section {
  width: 100%;
  margin-bottom: 60px;
  padding: 0;
  border: none;
}
section .container {
  padding-left: 0;
  padding-right: 0;
}

section .content-wrapper {
  padding: 28px 0 0 0;
}

/* ===============
   FEATURE LISTS
   =============== */
.content-wrapper ul {
  display: flex;
  flex-direction: column;
  gap: 22px;
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}
.content-wrapper ul li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: #F3F6FA;
  border-radius: 10px;
  padding: 16px 20px 14px 16px;
  box-shadow: 0 1px 4px rgba(18,50,96,0.03);
  font-size: 1rem;
  margin-bottom: 0;
}
.content-wrapper ul li img {
  width: 44px;
  min-width: 44px;
  height: 44px;
  margin-top: 1px;
}

@media (max-width: 600px) {
  .content-wrapper ul li {
    flex-direction: column;
    gap: 10px;
    padding: 13px 12px 10px 12px;
  }
  .content-wrapper ul li img {
    width: 38px;
    height: 38px;
    min-width: 36px;
  }
}

/* =========================
   TESTIMONIALS / REVIEWS
   ========================= */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #F3F6FA;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(18,50,96,0.06);
  color: #123260;
  font-size: 1.05rem;
  transition: box-shadow 0.2s;
  font-style: italic;
  line-height: 1.5;
}
.testimonial-card span {
  font-style: normal;
  font-size: 1rem;
  color: #1A243A;
}
.testimonial-card strong {
  color: #1FA77A;
}
.testimonial-card:hover {
  box-shadow: 0 4px 16px rgba(18,50,96,0.12);
}
@media (max-width: 600px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    font-size: 1rem;
  }
}

/* ==============
   FOOTER
   ============== */
footer {
  background: #123260;
  color: #fff;
  padding: 40px 0 16px 0;
  width: 100%;
  margin-top: 40px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  justify-content: center;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 6px;
  justify-content: center;
}
.footer-nav a {
  color: #fff;
  opacity: 0.88;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  transition: opacity 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  opacity: 1;
  text-decoration: underline;
}
.footer-contact {
  color: #F3F6FA;
  opacity: .93;
  font-size: 0.98rem;
  text-align: center;
  margin-bottom: 4px;
}
.footer-logo img {
  width: 80px;
  height: auto;
  margin-top: 8px;
}
@media (max-width: 768px) {
  footer .container {
    padding: 0 12px;
    gap: 12px;
  }
  .footer-nav {
    gap: 10px;
  }
  .footer-logo img {
    width: 58px;
  }
}

/* ==================
   COOKIE CONSENT UI
   ================== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: #123260;
  border-top: 3px solid #1FA77A;
  box-shadow: 0 -4px 16px rgba(18,50,96,0.11);
  z-index: 1200;
  padding: 20px 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  justify-content: center;
  animation: slideup-banner 0.4s cubic-bezier(0.6,0.2,0.2,1);
}
@keyframes slideup-banner {
  from { transform: translateY(90px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner__text {
  flex: 1 1 260px;
  font-size: 1rem;
  margin-right: 16px;
}
.cookie-banner__actions {
  display: flex;
  gap: 16px;
}
.cookie-btn {
  padding: 9px 20px;
  border-radius: 7px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  background: #1FA77A;
  color: #fff;
  margin-left: 0;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #123260;
  color: #fff;
}
.cookie-btn.reject {
  background: #F3F6FA;
  color: #1FA77A;
  border: 1px solid #1FA77A;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #1FA77A;
  color: #fff;
}
.cookie-btn.settings {
  background: #fff;
  color: #123260;
  border: 1px solid #1FA77A;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #F3F6FA;
  color: #1FA77A;
}

@media (max-width: 660px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 15px 7px;
  }
  .cookie-banner__text {
    margin-right: 0;
  }
  .cookie-banner__actions {
    gap: 8px;
  }
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 1400;
  background: rgba(12,28,48,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadein-modal 0.35s;
}
@keyframes fadein-modal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal__content {
  background: #fff;
  border-radius: 18px;
  padding: 30px 28px;
  box-shadow: 0 4px 38px rgba(18,50,96,0.13);
  max-width: 410px;
  width: 92vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal__header {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #123260;
  margin-bottom: 4px;
}
.cookie-modal__close {
  position: absolute;
  right: 16px;
  top: 14px;
  font-size: 1.5rem;
  background: #F3F6FA;
  color: #123260;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  border: none;
  transition: background 0.15s;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  background: #1FA77A;
  color: #fff;
}
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}
.cookie-category label {
  font-weight: 600;
  color: #1FA77A;
}
.cookie-category input[type=checkbox] {
  accent-color: #1FA77A;
  width: 20px;
  height: 20px;
}
.cookie-category.disabled input[type=checkbox] {
  accent-color: #999;
}
.cookie-modal__actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

/* ===================
   FORM ELEMENTS
   =================== */
input[type="text"], input[type="email"], textarea {
  border: 1px solid #B3BED4;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 1rem;
  color: #123260;
  background: #F3F6FA;
  margin-bottom: 18px;
  width: 100%;
  transition: border 0.15s;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: #1FA77A;
  background: #fff;
}

/* ===================
   MISC UTILITIES
   =================== */
.text-section {
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0 0 0 0;
}
.mt-0 { margin-top: 0!important; }
.mb-0 { margin-bottom: 0!important; }
.mb-4 { margin-bottom: 32px!important; }

/* ===============
   SPACING SYSTEM
   =============== */
.mb-8 { margin-bottom: 8px !important; }
.mb-16 { margin-bottom: 16px !important; }
.gap-8 { gap: 8px !important; }
.gap-20 { gap: 20px !important; }
.gap-32 { gap: 32px !important; }

/* ===============
   BUTTONS STYLES
   =============== */
button,
.cta-btn,
.cookie-btn {
  transition: background 0.15s, color 0.15s, box-shadow 0.15s, border 0.15s;
}
button:active, .cta-btn:active, .cookie-btn:active {
  transform: translateY(1px) scale(.97);
}

/* ===============
   HOVER EFFECTS
   =============== */
a, .cta-btn, .card, .mobile-menu-toggle, .mobile-menu-close, .cookie-btn, .footer-nav a {
  transition: color 0.13s, background 0.13s, box-shadow 0.17s;
}

/* ==========================
   RESPONSIVE TEXT/TRIM
   ========================== */
@media (max-width: 992px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.25rem; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.08rem; }
}

/* ========================
   ACCESSIBILITY FOCUS
   ======================== */
:focus-visible {
  outline: 2px solid #1FA77A;
  outline-offset: 2px;
}

/* =========================
   EXTRAS: Misc & Print
   ========================= */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
}

/* Hide cookie modal (default) - add .open class in JS to show */
.cookie-modal {
  display: none;
}
.cookie-modal.open {
  display: flex;
}

/* Hide cookie banner (removed via JS after accept) */
.cookie-banner.hide {
  display: none!important;
}

/* = LEVEL-UP MICRO-INTERACTIONS = */
.card, .testimonial-card {
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(18,50,96,0.13);
  transform: translateY(-2px) scale(1.01);
}

.cta-btn {
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.cta-btn:active { transform: scale(0.98); }

/* Remove number spinners from input[type=number] */
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; }

/* Hide visually but keep accessible */
.sr-only {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ===== HIGH CONTRAST FOR TESTIMONIALS ===== */
.testimonial-card {
  background: #FDFDFE;
  color: #123260;
}
@media (max-width:384px) {
  header, footer, section .container { padding-left: 2px; padding-right: 2px; }
  .cta-btn { padding-left: 6px; padding-right: 6px; }
  .content-wrapper { padding-left: 2px; padding-right: 2px; }
}
