/* =====================
   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,
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;
  box-sizing: border-box;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #f7fafd;
  color: #1A2232;
  font-family: 'Roboto', Arial, sans-serif;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
table {
  border-collapse: collapse;
  width: 100%;
}
button, input, select, textarea {
  font: inherit;
  background: none;
  border: none;
  outline: none;
}

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

:root {
  --color-primary: #1A2232;
  --color-secondary: #3285A8;
  --color-accent: #F3C623;
  --color-bg-light: #f7fafd;
  --color-bg-card: #ffffff;
  --color-text: #1A2232;
  --color-text-muted: #5a6a85;
  --color-shadow: rgba(50, 133, 168, 0.09);
  --radius: 16px;
  --shadow: 0 4px 24px var(--color-shadow);
  --transition: 0.3s cubic-bezier(.45,.1,.3,1);
  --header-height: 70px;
  --spacing-section: 60px;
  --spacing-container: 40px;
}

/* TYPOGRAPHY SCALE */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-primary);
  margin-bottom: 24px;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 10px;
}
h4, .h4{
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
}
p, ul li, ol li, table td, table th, a, span {
  font-size: 1rem;
  color: var(--color-text);
}
p {
  margin-bottom: 18px;
}
strong {
  font-weight: 600;
}

/* =========================
   GLOBAL STRUCTURAL STYLES
   ========================= */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(115deg, #f7fafd 65%, #e9f0fc 100%);
  border-radius: var(--radius);
}

/* Main page background with subtle gradient effect */
body {
  background: linear-gradient(113deg, #f7fafd 70%, #e9f0fc 100%);
}

/* =========================
   HEADER & NAVIGATION
   ========================= */
header {
  width: 100%;
  background: #fff;
  min-height: var(--header-height);
  box-shadow: 0 2px 16px rgba(50, 133, 168, 0.03);
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
}
.main-nav {
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 22px;
  justify-content: flex-start;
  padding: 0 20px;
}
.main-nav img {
  height: 40px;
  width: auto;
  margin-right: 18px;
}
.main-nav > a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.02em;
  padding: 8px 0;
  position: relative;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.main-nav > a:hover,
.main-nav > a:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* Hamburger Mobile Button */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 24px;
  top: 16px;
  background: var(--color-secondary);
  color: #fff;
  font-size: 2rem;
  border-radius: 10px;
  padding: 8px 16px;
  line-height: 1;
  cursor: pointer;
  z-index: 1001;
  border: none;
  transition: background var(--transition);
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: linear-gradient(115deg, #3285A8 70%, #1A2232 100%);
  color: #fff;
  z-index: 1200;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.6,.16,.33,1);
  box-shadow: 0 2px 32px rgba(26,34,50,.2);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 22px 6px 0;
  background: none;
  color: #fff;
  font-size: 2.1rem;
  cursor: pointer;
  transition: color var(--transition);
  border-radius: 10px;
  border: none;
  padding: 4px 10px;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--color-accent);
  background: rgba(0,0,0,0.06);
}
.mobile-nav {
  width: 100%;
  padding: 10px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  padding: 16px 0 12px 0;
  color: #fff;
  border-radius: 10px;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: rgba(243,198,35,0.15);
  color: var(--color-accent);
}

/* NAV: Responsive — mobile first */
@media (max-width: 1020px) {
  .main-nav {
    gap: 16px;
    padding: 0 10px;
  }
}
@media (max-width: 900px) {
  .main-nav > a {
    font-size: .95rem;
  }
  .main-nav{
    gap: 10px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* =========================
   SECTIONS & FLEX LAYOUTS
   ========================= */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(115deg, #f7fafd 65%, #e9f0fc 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-bg-card);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(50,133,168,0.09);
  padding: 30px 22px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 250px;
  flex: 1 1 250px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px) scale(1.025);
  box-shadow: 0 8px 28px rgba(50,133,168,0.15);
}

.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  margin-top: 24px;
  margin-bottom: 24px;
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(50,133,168,0.07);
  flex-direction: column;
  max-width: 650px;
  border-left: 6px solid var(--color-secondary);
}
.testimonial-card p {
  font-size: 1.15rem;
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 8px;
}
.testimonial-card span {
  font-size: .97rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: 2px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Feature Grid - used as three column cards */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 24px 0 10px 0;
  justify-content: space-between;
}
.feature-grid > div {
  background: #fff;
  box-shadow: 0 2px 10px rgba(50,133,168,0.09);
  border-radius: 14px;
  padding: 32px 22px 22px 22px;
  min-width: 220px;
  max-width: 350px;
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform var(--transition), box-shadow var(--transition);
  margin-bottom: 20px;
}
.feature-grid > div:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 8px 32px rgba(50,133,168,0.15);
}
.feature-grid img {
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
}

/* ====================
   HERO & CALL TO ACTION
   ==================== */
.cta, .cta.primary {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.20rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 14px 42px;
  border-radius: 40px;
  background: linear-gradient(95deg, var(--color-secondary) 60%, var(--color-accent) 100%);
  color: #fff;
  box-shadow: 0 2px 20px rgba(50,133,168,0.09);
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
  margin-top: 15px;
  border: none;
  cursor: pointer;
}
.cta.primary {
  background: linear-gradient(90deg, var(--color-accent) 50%, var(--color-secondary) 100%);
  color: var(--color-primary);
}
.cta:hover, .cta:focus, .cta.primary:hover, .cta.primary:focus {
  background: linear-gradient(93deg, var(--color-secondary) 60%, #7bb8cb 100%);
  color: #fff;
  box-shadow: 0 6px 36px rgba(50,133,168,0.19);
  text-decoration: none;
}

/* =====================
   TABLES
   ===================== */
table {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(50,133,168,0.07);
  margin-bottom: 30px;
  font-size: 1rem;
}
thead {
  background: var(--color-secondary);
  color: #fff;
}
th, td {
  padding: 14px 12px;
  text-align: left;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-bottom: 1px solid #e5eaf2;
}
th:last-child, td:last-child {
  border-right: none;
}
tr:last-child td {
  border-bottom: none;
}

/* =====================
   FOOTER
   ===================== */
footer {
  background: linear-gradient(90deg, #e9f0fc 70%, #f3c62326 100%);
  color: var(--color-primary);
  padding: 40px 0 30px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: .99rem;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}
.footer-nav a {
  color: var(--color-secondary);
  transition: color var(--transition);
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-accent);
}
.text-section {
  text-align: center;
  font-size: .97rem;
  color: var(--color-text-muted);
}
.text-section h3 {
  font-size: 1.1rem;
  color: var(--color-secondary);
  margin-bottom: 7px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}

/* =====================
   LISTS
   ===================== */
ul, ol {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
ul li, ol li {
  font-size: 1rem;
  color: var(--color-text);
  padding-left: 26px;
  position: relative;
  line-height: 1.52;
}
ul li::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--color-secondary);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 8px;
}
ol li {
  padding-left: 0;
  counter-increment: section;
}
ol {
  counter-reset: section 0;
}
ol li::before {
  content: counter(section) '.';
  color: var(--color-secondary);
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-right: 8px;
  position: static;
  left: 0;
  top: 0;
}

/* =====================
   RESPONSIVENESS
   ===================== */
@media (max-width: 1024px) {
  .container {
    max-width: 95vw;
  }
}
@media (max-width: 900px) {
  .feature-grid > div {
    min-width: 180px;
    padding: 24px 14px 16px 14px;
  }
}
@media (max-width: 868px) {
  .content-grid, .feature-grid {
    flex-direction: column;
    align-items: stretch;
  }
  .feature-grid > div {
    max-width: 100%;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  h1, .h1 { font-size: 1.7rem; }
  h2, .h2 { font-size: 1.3rem; }
  .section {
    margin-bottom: 38px;
    padding: 25px 8px;
  }
  .feature-grid > div {
    min-width: 140px;
  }
  .testimonial-card {
    max-width: 95vw;
    padding: 15px 10px;
    font-size: 1rem;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 560px) {
  .card, .feature-grid > div {
    padding: 16px 8px 12px 8px;
  }
  .testimonial-card {
    font-size: 0.97rem;
    padding: 10px 4px;
  }
  h1, .h1 {
    font-size: 1.15rem;
  }
  h2, .h2 {
    font-size: 1.02rem;
  }
}

/* Ensure minimum 20px spacing between cards/sections consistently */
.card + .card,
.feature-grid > div + div,
.section + .section,
.testimonial-card + .testimonial-card {
  margin-top: 24px;
}

/* ================================
   COOKIE CONSENT BANNER & MODAL
   ================================ */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fffbea;
  color: var(--color-primary);
  box-shadow: 0 -2px 24px 0 rgba(26,34,50,.08);
  z-index: 2000;
  padding: 24px 12px 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  font-size: 1rem;
  border-radius: 24px 24px 0 0;
  animation: slideup 0.42s cubic-bezier(.6,.16,.33,1);
}
@keyframes slideup {
  from { transform: translateY(120%); }
  to { transform: translateY(0); }
}
.cookie-consent-banner p {
  color: var(--color-primary);
  font-size: 1.05rem;
  margin-bottom: 0;
  text-align: center;
}
.cookie-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 5px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: .98rem;
  border-radius: 18px;
  padding: 8px 24px;
  margin: 0 2px;
  border: none;
  cursor: pointer;
  background: var(--color-secondary);
  color: #fff;
  transition: background var(--transition), color var(--transition);
}
.cookie-btn.accept {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-btn.reject {
  background: var(--color-primary);
  color: #fff;
}
.cookie-btn.settings {
  background: #fff;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #fff;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}

/* COOKIE MODAL OVERLAY */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,34,50,0.42);
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(50,133,168,0.16);
  padding: 36px 24px 28px 24px;
  max-width: 430px;
  width: 94vw;
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadein 0.25s cubic-bezier(.61,.12,.47,1);
  position: relative;
}
@keyframes fadein {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: scale(1); }
}
.cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 16px;
  background: none;
  color: var(--color-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  border: none;
  padding: 4px 7px;
  border-radius: 8px;
}
.cookie-modal-close:hover {
  background: #eee;
  color: var(--color-accent);
}
.cookie-modal h3 {
  font-size: 1.2rem;
  color: var(--color-secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 5px;
}
.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 10px;
}
.cookie-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: var(--color-primary);
}
.cookie-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-secondary);
}
.cookie-option.essential input[type="checkbox"] {
  accent-color: var(--color-text-muted);
}
.cookie-option.essential {
  opacity: 0.6;
}
.cookie-save-btn {
  margin-top: 16px;
  background: var(--color-secondary);
  color: #fff;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 10px 30px;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}
.cookie-save-btn:hover, .cookie-save-btn:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* =====================
   MISC/HELPER CLASSES
   ===================== */
.muted { color: var(--color-text-muted)!important; }
.bg-primary { background: var(--color-primary)!important; color: #fff!important; }
.bg-secondary { background: var(--color-secondary)!important; color: #fff!important; }
.bg-accent { background: var(--color-accent)!important; color: var(--color-primary)!important; }
.rounded { border-radius: var(--radius)!important; }
.shadow { box-shadow: var(--shadow)!important; }
.text-center { text-align: center!important; }

/* =====================
   UTILITY CLASSES
   ===================== */
.mt-2 {margin-top: 8px;}
.mt-4 {margin-top: 16px;}
.mt-8 {margin-top: 32px;}
.mb-2 {margin-bottom: 8px;}
.mb-4 {margin-bottom: 16px;}
.mb-8 {margin-bottom: 32px;}

/* =====================
   VISUAL ELEMENTS
   ===================== */
hr {
  border: none;
  height: 1px;
  background: #e5eaf2;
  margin: 30px 0;
}

/* =========================
   FOCUS/ACCESSIBILITY
   ========================= */
a:focus-visible, button:focus-visible, .cta:focus {
  outline: 2px dashed var(--color-accent);
  outline-offset: 2px;
}

::-webkit-input-placeholder { color: var(--color-text-muted); }
::-moz-placeholder { color: var(--color-text-muted); }
:-ms-input-placeholder { color: var(--color-text-muted); }
::placeholder { color: var(--color-text-muted); }

/* =====================
   PRINT SAFE
   ===================== */
@media print {
  header, footer, .mobile-menu, .cookie-consent-banner, .cookie-modal-overlay {
    display: none!important;
  }
}
