/* ---- CSS RESET & BASELINE ---- */
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,
main, 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;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #263140;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}
*, *::before, *::after { box-sizing: inherit; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul, ol { list-style: none; padding-left: 0; }
img { max-width: 100%; height: auto; }

/* ---- BRAND TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  color: #18407B;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
h1 { font-size: 2.5rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 12px; }
h3 { font-size: 1.35rem; margin-bottom: 8px; }
h4, h5, h6 { font-size: 1.1rem; }
p, ul li, ol li, span, label {
  font-size: 1rem;
  color: #263140;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
}
strong, b { font-weight: 800; color: #18407B; }

/* Typography scale for modern_bold design */
@media (min-width: 600px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.4rem; }
}
@media (min-width: 992px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.75rem; }
  h3 { font-size: 1.5rem; }
}

/* ---- CONTAINER & SECTION LAYOUTS ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  max-width: 730px;
}

/* ---- HERO SECTION ---- */
.hero {
  background: #18407B;
  color: #fff;
  border-radius: 0 0 48px 48px;
  box-shadow: 0 8px 32px rgba(24,64,123, 0.10);
  margin-bottom: 48px;
  min-height: 260px;
  display: flex;
  align-items: center;
}
.hero .container { padding-top: 32px; padding-bottom: 32px; }
.hero h1, .hero h2, .hero p { color: #fff; }
.hero .btn-primary { background: #F5B800; color: #18407B; margin-top: 20px; }
.hero .btn-primary:hover { background: #fff; color: #18407B; border-color: #F5B800; }

/* ---- HEADER & NAVIGATION ---- */
header {
  background: #fff;
  box-shadow: 0 2px 24px rgba(24, 64, 123, 0.07);
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 16px;
  padding-bottom: 16px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: bold;
  color: #18407B;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-bottom 0.18s, color 0.18s;
}
header nav a:hover, header nav a:focus {
  color: #F5B800;
  border-bottom: 2px solid #F5B800;
}
.btn-primary {
  display: inline-block;
  background: #F5B800;
  color: #18407B;
  font-weight: 800;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  border: 2px solid #F5B800;
  border-radius: 30px;
  padding: 12px 36px;
  box-shadow: 0 2px 12px rgba(24,64,123,0.06);
  text-align: center;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.btn-primary:hover, .btn-primary:focus {
  background: #18407B;
  color: #fff;
  border-color: #18407B;
  box-shadow: 0 4px 16px rgba(24,64,123,0.15);
}

/* ---- BURGER MENU ---- */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #18407B;
  color: #fff;
  font-size: 2rem;
  border: none;
  padding: 6px 20px 6px 12px;
  border-radius: 40px;
  cursor: pointer;
  transition: background 0.18s;
  z-index: 25;
  margin-left: 12px;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #F5B800;
  color: #18407B;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #18407B;
  color: #fff;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(.7,0,.3,1);
  z-index: 60;
  display: flex;
  flex-direction: column;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  font-weight: bold;
  align-self: flex-end;
  margin: 20px 24px 0 0;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #F5B800;
}
.mobile-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: center;
  align-items: center;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 12px 0;
  transition: color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #F5B800;
}

/* Hide elements appropriately depending on viewport */
@media (max-width: 1023px) {
  header nav { display: none; }
  .btn-primary { display: none; }
  .mobile-menu-toggle { display: flex; }
}
@media (min-width: 1024px) {
  .mobile-menu-toggle, .mobile-menu { display: none !important; }
  header nav { display: flex !important; }
  .btn-primary { display: inline-block; }
}

/* ---- FLEXBOX SPACING & LAYOUTS ---- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 24px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 1 230px;
  padding: 24px 14px 20px 14px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(50,72,130,0.10);
  min-width: 210px;
  max-width: 340px;
  transition: box-shadow 0.18s, transform 0.18s;
  position: relative;
  margin-bottom: 20px;
}
.feature-item img {
  width: 44px;
  height: 44px;
  background: #F5B800;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(245,184,0,0.10);
  object-fit: contain;
  padding: 6px;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 6px 28px rgba(24,64,123,0.20);
  transform: translateY(-3px) scale(1.02);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(24,64,123,0.09);
  padding: 28px 22px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 6px 22px rgba(24,64,123,0.18);
  transform: translateY(-4px);
}
.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;
}

.team-list {
  display: flex;
  flex-direction: row;
  gap: 36px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.pricing-table {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 2rem 0 2rem 0;
}
.pricing-table .text-section {
  flex: 1 1 260px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 18px rgba(24,64,123,0.10);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  position: relative;
  min-width: 250px;
  margin-bottom: 20px;
}
.pricing-table .text-section b {
  font-size: 1.3rem;
  color: #F5B800;
}
.plan-highlights ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.plan-highlights ul li {
  background: #F5B800;
  color: #18407B;
  border-radius: 16px;
  padding: 8px 16px;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.02em;
}

/* ---- TESTIMONIALS ---- */
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(24,64,123,0.10);
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 370px;
  transition: box-shadow 0.16s, transform 0.16s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 20px rgba(24,64,123,0.18);
  transform: translateY(-3px);
}
.testimonial-card p {
  color: #263140;
  font-size: 1.12rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.5;
}
.testimonial-card span {
  align-self: flex-end;
  font-size: 0.97rem;
  color: #18407B;
  font-family: 'Montserrat', Arial,sans-serif;
}

/* Ensure testimonials high contrast */
.testimonial-card p,
.testimonial-card span,
.testimonial-card b {
  color: #263140 !important;
  background: none !important;
}

/* ---- FOOTER ---- */
footer {
  background: #18407B;
  color: #fff;
  padding: 42px 0 0 0;
  margin-top: 70px;
  border-radius: 48px 48px 0 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  justify-content: flex-start;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 12px;
}
footer nav a {
  color: #F5B800;
  font-family: 'Montserrat', Arial,sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-bottom 0.16s;
  margin-bottom: 6px;
}
footer nav a:hover,footer nav a:focus {
  color: #fff;
  border-bottom: 2px solid #fff;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1rem;
}
.brand-footer {
  display: flex;
  align-items: center;
  gap: 18px;
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 16px;
  width: 100%;
}
.brand-footer img {
  width: 36px;
  height: 36px;
  filter: brightness(120%);
}
.brand-footer span {
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: #fff;
}

/* ---- LISTS ---- */
ul, ol {
  margin-left: 22px;
  margin-bottom: 18px;
}
li {
  margin-bottom: 10px;
}
ul li::marker, ol li::marker {
  color: #F5B800;
  font-weight: bold;
}

/* ---- MISCELLANEOUS ---- */
address, .address-map {
  display: flex;
  align-items: center;
  gap: 10px;
  font-style: normal;
  margin-bottom: 18px;
}
.cta-contact {
  margin-top: 18px;
}

section:last-child {
  margin-bottom: 0;
}

/* ---- COOKIE CONSENT BANNER ---- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 3px solid #F5B800;
  box-shadow: 0 -2px 26px rgba(24,64,123,0.12);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  font-size: 1.04rem;
  transition: transform 0.32s cubic-bezier(.68,-0.55,.27,1.55);
}
.cookie-banner.hide { transform: translateY(120%); }
.cookie-banner .cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial,sans-serif;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 24px;
  border: 2px solid #18407B;
  padding: 8px 20px;
  cursor: pointer;
  margin-left: 8px;
  background: #F5B800;
  color: #18407B;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}
.cookie-banner button.cookie-settings {
  background: #fff;
  color: #18407B;
  border-color: #18407B;
}
.cookie-banner button.accept {
  background: #18407B;
  color: #fff;
  border-color: #18407B;
}
.cookie-banner button.reject {
  background: #fff;
  color: #18407B;
  border-color: #F5B800;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #F5B800;
  color: #18407B;
  border-color: #F5B800;
}

/* ---- COOKIE PREFERENCES MODAL ---- */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-60%) scale(0.93);
  width: 94vw;
  max-width: 390px;
  background: #fff;
  border: 3px solid #F5B800;
  border-radius: 18px;
  z-index: 200;
  box-shadow: 0 8px 48px rgba(24,64,123,0.20);
  padding: 32px 24px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s, transform 0.32s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%,-50%) scale(1);
}
.cookie-modal h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
  color: #18407B;
}
.cookie-modal label {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.cookie-modal input[type=checkbox] {
  width: 22px;
  height: 22px;
}
.cookie-modal .cookie-switch {
  accent-color: #F5B800;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}
.cookie-modal .close-cookie-modal {
  margin-left: auto;
  background: none;
  color: #18407B;
  font-size: 1.45rem;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

/* ---- RESPONSIVE DESIGN ---- */
@media (max-width: 1023px) {
  .container { padding-left: 10px; padding-right: 10px; }
  .feature-grid, .card-container, .content-grid, .testimonial-list, .faq-list, .team-list, .pricing-table {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
}
@media (max-width: 768px) {
  .section, section {
    padding: 28px 6px;
    margin-bottom: 40px;
  }
  .hero {
    min-height: 145px;
    border-radius: 0 0 24px 24px;
    margin-bottom: 30px;
  }
  .content-wrapper {
    gap: 15px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-contact {
    gap: 7px;
  }
  footer .container {
    gap: 20px;
  }
  .brand-footer {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    padding-top: 8px;
  }
  .feature-item,
  .pricing-table .text-section,
  .testimonial-card,
  .card {
    min-width: 0;
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }
  .cookie-banner { flex-direction: column; align-items: flex-start; padding: 18px 10px; }
  .cookie-banner .cookie-buttons { gap: 6px; margin-top: 5px; }
}

/* ---- ANIMATIONS ---- */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0px); }
}
.hero, .feature-item, .card, .testimonial-card, .pricing-table .text-section, .cookie-banner {
  animation: fade-in 0.66s ease;
}

/* ---- ACTIVE LINKS ACCESSIBILITY ---- */
header nav a.active, .mobile-nav a.active {
  color: #F5B800 !important;
  border-bottom: 2px solid #F5B800 !important;
}

/* ---- CUSTOM SCROLLBAR (FOR MODERN TOUCH) ---- */
::-webkit-scrollbar {
  height: 10px;
  width: 8px;
  background: #E0E5EC;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: #18407B;
  border-radius: 4px;
}

/* ---- SELECTION ---- */
::selection {
  background: #F5B800;
  color: #18407B;
}

/* ---- ACCESSIBILITY FOCUS OUTLINE ---- */
a, button, .btn-primary, .mobile-menu-toggle, .mobile-menu-close, .cookie-banner button, .close-cookie-modal {
  outline: none;
}
a:focus, button:focus, .btn-primary:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus, .cookie-banner button:focus, .close-cookie-modal:focus {
  outline: 2px solid #F5B800;
  outline-offset: 1.5px;
}
