/* ===== 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 {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  background: #fff;
  color: #243572;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  list-style: none;
}
a {
  color: #243572;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus-visible {
  outline: 2px solid #F2A900;
  outline-offset: 2px;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
button {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

/* ===== VARIABLE FALLBACKS ===== */
:root {
  --primary: #243572;
  --secondary: #F2A900;
  --accent: #FFFFFF;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

/* ===== TYPOGRAPHY & HEADINGS ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.3rem;
  line-height: 1.2;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
p, ul, ol {
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 12px;
  color: #25366F;
}
strong {
  font-weight: 700;
}
.subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--secondary);
  margin-bottom: 28px;
  letter-spacing: 0.2px;
}

/* ===== LAYOUT CONTAINERS ===== */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(36, 53, 114, 0.06), 0 0.5px 2px rgba(36,53,114,0.03);
  padding: 32px 24px;
  transition: box-shadow 0.2s;
  min-width: 260px;
  flex: 1 1 300px;
}
.card:hover {
  box-shadow: 0 8px 24px rgba(36, 53, 114, 0.11);
  z-index: 2;
}
.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: #FAFAFC;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(36, 53, 114, 0.07);
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 620px;
  color: #243572;
}
.testimonial-card p {
  font-size: 1.05rem;
  font-style: italic;
  color: #243572;
}
.testimonial-card strong {
  font-size: 1rem;
  font-family: var(--font-display);
  color: var(--secondary);
  margin-left: 10px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===== NAVIGATION & HEADER ===== */
header {
  padding: 0;
  background: #fff;
  border-bottom: 3px solid var(--primary);
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  width: 100%;
  min-height: 72px;
}
.main-nav > a img {
  height: 36px;
  width: auto;
}
.main-nav ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 28px;
  margin-left: 40px;
}
.main-nav li {
  list-style: none;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  padding: 8px 6px;
  border-radius: 4px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--secondary);
  color: var(--accent);
}
.btn-primary, .btn-secondary {
  display: inline-block;
  border-radius: 100px;
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.02em;
  margin-left: 20px;
  box-shadow: 0 4px 16px rgba(36,53,114,0.10);
  border: none;
  transition: background 0.2s, transform 0.16s, color 0.16s;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(100deg, #243572 65%, #F2A900 95%);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(100deg, #F2A900 60%, #243572 100%);
  color: #243572;
  transform: scale(1.05);
}
.btn-secondary {
  background: #F2A900;
  color: #243572;
  margin-left: 0;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #243572;
  color: #fff;
  transform: scale(1.05);
}

/* ===== MOBILE MENU ===== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 22px;
  right: 26px;
  z-index: 1002;
  background: var(--secondary);
  color: var(--primary);
  font-size: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 56px;
  border: none;
  box-shadow: 0 4px 16px rgba(36,53,114,0.08);
  justify-content: center;
  align-items: center;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #fff;
  color: var(--secondary);
  outline: 2px solid var(--primary);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #243572;
  color: #fff;
  z-index: 1100;
  transform: translateX(-110vw);
  transition: transform 0.32s cubic-bezier(.77,0,.18,1);
  box-shadow: 0 6px 32px rgba(36,53,114,0.2);
  padding: 30px 24px 10px 36px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: #fff;
  background: transparent;
  align-self: flex-end;
  margin-bottom: 32px;
  margin-right: 6px;
  padding: 4px 12px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #F2A900;
  color: #243572;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-top: 16px;
}
.mobile-nav a {
  color: #fff;
  padding: 8px 0;
  border-left: 5px solid transparent;
  border-radius: 0;
  transition: color 0.18s, border-left 0.18s, padding-left 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #F2A900;
  border-left: 5px solid #F2A900;
  padding-left: 8px;
}

/* ===== MAIN & BODY SECTION PATTERN ===== */
main {
  display: flex;
  flex-direction: column;
  gap: 48px;
  min-height: 340px;
  background: #fff;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  margin-bottom: 12px;
}

/* ===== LISTS WITH ICONS ===== */
ul li img {
  vertical-align: middle;
  margin-right: 12px;
  width: 26px;
  height: 26px;
}

/* ===== FOOTER ===== */
footer {
  width: 100%;
  background: #243572;
  color: #fff;
  padding: 36px 0 18px 0;
  position: relative;
  z-index: 1;
}
.footer-menu {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  margin-bottom: 24px;
}
.footer-menu a {
  color: #F2A900;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.03em;
  border-radius: 4px;
  padding: 2px 4px;
  transition: background 0.14s;
}
.footer-menu a:hover,
.footer-menu a:focus {
  background: #fff;
  color: #243572;
}
.footer-contact {
  display: flex;
  flex-direction: row;
  gap: 26px;
  align-items: center;
}
.footer-contact img {
  width: 42px;
  height: 42px;
}
.footer-contact div {
  color: #fff;
  font-size: 1rem;
  line-height: 1.4;
}
.footer-contact a {
  color: #F2A900;
  text-decoration: underline;
}
.footer-contact a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ===== COOKIES BANNER & MODAL ===== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: #243572;
  font-family: var(--font-body);
  z-index: 1800;
  box-shadow: 0 -3px 12px rgba(36,53,114,0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 32px 20px 22px 20px;
  transition: transform 0.32s cubic-bezier(.77,0,.18,1);
}
.cookie-banner.hide {
  transform: translateY(140%);
}
.cookie-banner .cookie-banner-text {
  font-size: 1rem;
  margin-bottom: 10px;
  text-align: center;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  justify-content: center;
  margin-top: 12px;
}
.btn-cookie {
  border-radius: 100px;
  font-size: 1rem;
  padding: 11px 26px;
  font-family: var(--font-display);
  font-weight: 700;
  border: none;
  margin: 0 3px;
  cursor: pointer;
  transition: background 0.19s, color 0.19s, transform 0.10s;
}
.btn-cookie.accept {
  background: #243572;
  color: #fff;
}
.btn-cookie.accept:hover {
  background: #F2A900;
  color: #243572;
  transform: scale(1.04);
}
.btn-cookie.reject, .btn-cookie.settings {
  background: #F2A900;
  color: #243572;
}
.btn-cookie.reject:hover, .btn-cookie.settings:hover {
  background: #243572;
  color: #fff;
}
/* Cookie modal overlay */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2000;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(36,53,114,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.25s;
}
.cookie-modal-overlay.hide {
  pointer-events: none;
  opacity: 0;
}
.cookie-modal {
  background: #fff;
  color: #243572;
  padding: 40px 28px 32px 28px;
  border-radius: 22px;
  min-width: 320px;
  max-width: 90vw;
  box-shadow: 0 12px 42px rgba(36,53,114,0.30);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
}
.cookie-modal h3 {
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 8px;
  color: #F2A900;
  font-size: 1.2rem;
}
.cookie-settings-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.cookie-settings-option {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: #243572;
}
.cookie-settings-option input[type="checkbox"],
.cookie-settings-option input[type="radio"] {
  accent-color: #243572;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 16px;
}
.cookie-modal .btn-cookie {
  min-width: 115px;
}
.cookie-modal .btn-cookie.cancel {
  background: #fff;
  border: 2px solid #243572;
  color: #243572;
}
.cookie-modal .btn-cookie.cancel:hover {
  background: #F2A900;
  color: #fff;
  border-color: #F2A900;
}

/* ===== RESPONSIVE LAYOUT - MOBILE-FIRST ===== */
@media (max-width: 1200px) {
  .container {
    max-width: 96vw;
    padding: 0 10px;
  }
}
@media (max-width: 1000px) {
  .main-nav ul {
    gap: 18px;
    margin-left: 20px;
  }
  .btn-primary {
    padding: 13px 18px;
    font-size: 0.98rem;
  }
  .section {
    padding: 28px 10px;
    margin-bottom: 42px;
  }
  .footer-contact {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}
@media (max-width: 900px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
}
@media (max-width: 768px) {
  .main-nav ul, .main-nav .btn-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .main-nav > a img {
    height: 32px;
  }
  .section {
    padding: 22px 3vw;
    margin-bottom: 30px;
  }
  .content-wrapper {
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  .testimonial-card {
    flex-direction: column;
    min-width: 95vw;
    padding: 16px 8px;
    gap: 10px;
    margin-bottom: 18px;
  }
  .footer-menu {
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
    align-items: flex-start;
  }
  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .card-container,
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .card {
    min-width: 0;
    width: 100%;
    padding: 18px 12px;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 0 5px;
    max-width: 99vw;
  }
  h1 { font-size: 1.22rem; }
  h2 { font-size: 1.05rem; }
  .btn-primary, .btn-secondary {
    padding: 10px 14px;
    font-size: 0.93rem;
    margin-left: 0;
    margin-top: 10px;
  }
  .testimonial-card {
    font-size: 0.97rem;
    padding: 12px 7px;
  }
  .cookie-modal {
    padding: 22px 8px 18px 8px;
    min-width: 0;
    width: 95vw;
    font-size: 0.92rem;
  }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 9px;
  background: #f0f2fa;
}
::-webkit-scrollbar-thumb {
  background: #24357222;
  border-radius: 6px;
}

/* ===== CARD & SHADOWS ===== */
.card, .testimonial-card {
  box-shadow: 0 3px 18px rgba(36,53,114,0.10);
  border-radius: 20px;
  background: #fff;
}

/* ===== MICRO-INTERACTIONS ===== */
.btn-primary:active, .btn-secondary:active, .btn-cookie:active {
  transform: scale(0.98);
  filter: brightness(0.97);
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 8px 26px #F2A90044;
  background: #fdf9f0;
}
/* Section animation reveal (for js-based triggers) */
.animated-section {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1s, transform 0.9s;
}
.animated-section.visible {
  opacity: 1;
  transform: none;
}

/* ===== ACCENTS AND GEOMETRIC SHAPES ===== */
.section {
  border-radius: 32px;
  background: #fff;
  position: relative;
}
.section::before {
  content: '';
  display: block;
  position: absolute;
  left: -30px; top: 22px;
  width: 52px; height: 52px;
  background: #F2A900;
  opacity: 0.13;
  border-radius: 30px 100px 75px 133px;
  z-index: 0;
}
.section h2 {
  position: relative;
  z-index: 1;
}
/* Only geometric accent for first section */
.section:first-of-type::before {
  background: #243572;
  opacity: 0.07;
}

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

/* ===== SPECIAL UTILITY CLASSES ===== */
.d-none {
  display: none !important;
}
.text-center {
  text-align: center;
}

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