/* --- CSS RESET & BASE TYPOGRAPHY --- */
html {
  box-sizing: border-box;
  font-size: 16px;
  height: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  background: linear-gradient(135deg, #F6F8F3 0%, #EDF5F9 100%);
  font-family: 'Roboto', Arial, sans-serif;
  color: #1A2732;
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #18527C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus { color: #F7BA55; outline: none; }
ul, ol { list-style-position: inside; margin-bottom: 16px; }
strong, b { font-weight: 600; }

/* --- FONT FACE (web-safe fallback) --- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #18527C;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; margin-top: 0; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; }
.subtitle {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.15rem;
  color: #4A6276;
  margin-bottom: 18px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.content-wrapper {
  margin: 0 auto;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 32px 0 rgba(24, 82, 124, 0.07);
}

/* --- HEADER --- */
header {
  background: linear-gradient(90deg, #18527C 60%, #5FB3CE 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px 0 rgba(24,82,124,0.07);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo img { height: 48px; }
/* --- MAIN NAV --- */
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 4px 0;
  transition: color 0.18s;
}
.main-nav a:after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  background: #F7BA55;
  transition: width 0.24s cubic-bezier(0.23, 1, 0.32, 1);
  margin-top: 2px;
}
.main-nav a:hover, .main-nav a:focus {
  color: #F7BA55;
}
.main-nav a:hover:after, .main-nav a:focus:after {
  width: 100%;
}

.cta-primary {
  background: linear-gradient(90deg, #F7BA55 0%, #FFDFA3 100%);
  color: #18527C;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 32px;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(24, 82, 124, 0.13);
  cursor: pointer;
  transition: background 0.21s, color 0.18s, box-shadow 0.21s;
  margin-left: 20px;
  display: inline-block;
}
.cta-primary:hover, .cta-primary:focus {
  background: linear-gradient(90deg, #FFDFA3 0%, #F7BA55 100%);
  color: #104464;
  box-shadow: 0 4px 14px rgba(24, 82, 124, 0.19);
}

/* --- MOBILE MENU BUTTON --- */
.mobile-menu-toggle {
  display: none;
  background: #F7BA55;
  color: #18527C;
  border: none;
  font-size: 2rem;
  padding: 7px 18px;
  border-radius: 12px;
  cursor: pointer;
  z-index: 102;
  margin-left: 18px;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 8px rgba(24, 82, 124, 0.09);
}
.mobile-menu-toggle:focus { outline: 2px solid #18527C; }

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  height: 100%;
  width: 100vw;
  background: #fff;
  box-shadow: 0 4px 32px 0 rgba(24, 82, 124, 0.22);
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.65,0,0.35,1);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 0;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: #18527C;
  background: none;
  border: none;
  align-self: flex-end;
  padding: 20px 34px 10px 0;
  cursor: pointer;
  transition: color 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { color: #F7BA55; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  padding: 30px 38px;
}
.mobile-nav a {
  color: #18527C;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.18rem;
  padding: 10px 0;
  border-radius: 6px;
  width: 100%;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:focus { outline: 2px solid #F7BA55; }
.mobile-nav a:hover { background: #F6F8F3; color: #F7BA55; }

/* --- HERO/BANNER SECTIONS --- */
section:first-child {
  background: linear-gradient(115deg, #E9F3FB 7%, #F6F8F3 100%);
  margin-bottom: 60px;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 6px 32px 0 rgba(24, 82, 124, 0.07);
}

/* SPACING PATTERNS */
.sections, .section {
  margin-bottom: 60px !important;
  padding: 40px 20px !important;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(24, 82, 124, 0.08);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.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: #FBFBFA;
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 rgba(24,82,124,0.06);
  margin-bottom: 20px;
  color: #262A32;
  min-width: 250px;
  max-width: 420px;
  flex: 1 1 260px;
}
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-meta {
  font-size: 0.98rem;
  color: #18527C;
  font-weight: 600;
  margin-top: 6px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.feature {
  background: #F6F8F3;
  border-radius: 18px;
  box-shadow: 0 1px 8px 0 rgba(24,82,124,0.05);
  padding: 28px 22px;
  flex: 1 1 200px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.19s;
}
.feature img {
  width: 38px;
  margin-bottom: 8px;
}
.feature:hover, .feature:focus {
  box-shadow: 0 6px 38px 0 rgba(24,82,124,0.12);
}

/* --- SERVICES LIST --- */
.services-list {
  margin: 16px 0 28px 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.services-list li {
  background: #FBFBFA;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 1.08rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.services-list li span {
  color: #18527C;
  font-weight: bold;
  font-size: 1.1rem;
}

/* --- TEXT SECTION --- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 1.02rem;
  margin-bottom: 20px;
}
.text-section strong {
  color: #18527C;
}
.text-section img {
  width: 1.2em;
  height: 1.2em;
  vertical-align: middle;
  margin-right: 8px;
}

/* --- NOTIFICATION (THANK YOU PAGE) --- */
.notification {
  background: #E9F3FB;
  border-radius: 14px;
  padding: 34px 28px;
  color: #18527C;
  font-size: 1.18rem;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 2px 16px 0 rgba(24, 82, 124, 0.08);
}

/* --- FOOTER --- */
footer {
  background: linear-gradient(90deg, #18527C 60%, #5FB3CE 100%);
  color: #fff;
  padding-top: 56px;
  padding-bottom: 24px;
  border-radius: 24px 24px 0 0;
  margin-top: 56px;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 36px;
  justify-content: space-between;
  margin-bottom: 22px;
}
.footer-nav,
.legal-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a, .legal-nav a {
  color: #fff;
  font-size: 1rem;
  opacity: 0.87;
  transition: color 0.16s, opacity 0.18s;
  font-family: 'Montserrat', Arial, sans-serif;
}
.footer-nav a:hover,.legal-nav a:hover,
.footer-nav a:focus,.legal-nav a:focus{
  color: #F7BA55;
  opacity: 1;
  outline: none;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-contact a {
  color: #F7BA55;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 4px;
}
.footer-contact img { width: 1.33em; height: 1.33em; }
.footer-bottom {
  text-align: center;
  font-size: 0.97rem;
  opacity: 0.82;
  margin-top: 8px;
}
footer .logo img { height: 36px; }

/* --- BUTTONS & INTERACTIVES --- */
button, .cta, .cta-primary {
  cursor: pointer;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  outline: none;
  transition: box-shadow 0.17s, transform 0.16s;
}
button:active, .cta-primary:active {
  transform: scale(0.98);
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1500;
  background: #E9F3FB;
  color: #18527C;
  padding: 22px 20px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 -2px 16px rgba(24, 82, 124, 0.11);
  font-size: 1.05rem;
  align-items: flex-start;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 0.32s, transform 0.32s;
}
.cookie-banner.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}
.cookie-banner button {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 1rem;
  background: #F7BA55;
  color: #18527C;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  margin-right: 8px;
  border: none;
  transition: background 0.18s, color 0.18s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #FFDFA3;
  color: #104464;
}
.cookie-banner .cookie-settings-btn {
  background: none;
  color: #18527C;
  border: 2px solid #F7BA55;
}
.cookie-banner .cookie-settings-btn:hover {
  background: #F7BA55;
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top:0;
  width: 100vw; height: 100vh;
  background: rgba(24,82,124,0.25);
  z-index: 1550;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.active { display: flex; }
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 38px 0 rgba(24,82,124,0.19);
  padding: 32px 26px;
  min-width: 340px;
  max-width: 90vw;
  color: #18527C;
  animation: popIn 0.37s cubic-bezier(0.24,1.25,0.88,1.02);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
@keyframes popIn {
  from { transform: translateY(45px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 12px;
  font-size: 1.07rem;
}
.cookie-modal .cookie-toggle {
  width: 38px; height: 22px;
  background: #E9F3FB;
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  transition: background 0.17s;
  margin-right: 3px;
  flex-shrink: 0;
}
.cookie-modal .cookie-toggle[data-checked="true"] {
  background: #F7BA55;
}
.cookie-modal .cookie-toggle span {
  display: block;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(24,82,124,0.06);
  position: absolute;
  top: 2px; left: 2px;
  transition: left 0.17s, background 0.17s;
}
.cookie-modal .cookie-toggle[data-checked="true"] span {
  left: 18px;
  background: #fffae9;
}
.cookie-modal .cookie-category .required {
  color: #18527C;
  font-size: 0.91em;
  font-weight: 500;
  background: #f4f4ed;
  border-radius: 8px;
  padding: 0 8px;
  margin-left: 6px;
}
.cookie-modal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}
.cookie-modal .modal-actions button {
  padding: 8px 24px;
  border-radius: 18px;
  border: none;
  background: #18527C;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  transition: background 0.18s;
}
.cookie-modal .modal-actions button:last-child {
  background: #F7BA55;
  color: #18527C;
}
.cookie-modal .modal-actions button:hover {
  background: #FFDFA3;
  color: #104464;
}

/* --- MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .container { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 900px) {
  .footer-main {
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
  }
  .content-wrapper {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.28rem; }
  .container { padding-left: 5px; padding-right: 5px; }
  .section { margin-bottom: 38px; padding: 22px 6px; }
  .card, .notification { padding: 18px 10px; }
  .footer-main, .main-nav {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .main-nav { display: none; }
  .cta-primary { margin-left: 0; margin-top: 8px; }
  .mobile-menu-toggle {
    display: block;
  }
  .testimonials, .features-grid, .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card, .feature, .card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  .content-grid { flex-direction: column; gap: 16px; }
  .text-image-section { flex-direction: column; gap: 18px; }
}
@media (max-width: 575px) {
  .services-list li { flex-direction: column; gap: 5px; }
  .footer-contact { font-size: 0.98rem; }
  .cookie-modal { min-width: unset; padding: 18px 7vw; }
}

/* --- ANIMATIONS & MICRO-INTERACTIONS --- */
a, button, .cta-primary, .feature, .feature img { transition: all 0.18s; }
.feature img {
  filter: drop-shadow(0 1.5px 6px #F6C66844) drop-shadow(0 0.5px 2px #1A273210);
}

/* --- ACCESSIBILITY & FOCUS --- */
a:focus-visible, button:focus-visible, .cta-primary:focus-visible, .mobile-menu-close:focus-visible {
  outline: 2px solid #F7BA55;
  outline-offset: 2px;
}

::selection {
  background: #ffe2b9;
}

/* --- UTILITIES --- */
.mb-0 { margin-bottom: 0!important; }
.mt-0 { margin-top: 0!important; }
.mb-16 { margin-bottom:16px!important; }
.mb-24 { margin-bottom:24px!important; }
.pt-16 { padding-top:16px!important; }

/*--- PRINTING NICE SHADOWS AND ROUNDED CORNERS ---*/
.card, .testimonial-card, .notification, .feature, .section {
  box-shadow: 0 2px 16px 0 rgba(24, 82, 124, 0.10);
  border-radius: 16px;
}

/* --- FORCE FLEXBOX ONLY --- */
div, section, nav, footer, header, main, .container {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* --- RESTORE ROW DIRECTION FOR SPECIFIC NAV AND GRID --- */
header .container, .main-nav, .footer-main, .footer-nav, .legal-nav, .features-grid, .testimonials, .card-container, .content-grid {
  flex-direction: row;
}

@media (max-width: 900px) {
  .footer-main, .main-nav, .features-grid, .testimonials, .card-container, .content-grid {
    flex-direction: column !important;
  }
}
/* End of gradient_modern, flexbox-only, responsive unified CSS */
