/* ==========================================================
   CSS RESET & NORMALIZATION
target: box-model, typography, links, forms
========================================================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  background-color: #F5F6FA;
  color: #184072;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
footer strong {
  color: white;
}
a {
  color: #184072;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #FAAE38;
  outline-offset: 2px;
}
ul, ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 10px;
}
img {
  max-width: 100%;
  display: block;
}
table {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(24,64,114,0.06);
  margin-bottom: 24px;
  overflow: hidden;
}
th, td {
  padding: 18px 12px;
  border-bottom: 1px solid #e1e5ee;
  font-size: 1rem;
  text-align: left;
}
th {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  background: #F5F6FA;
  color: #184072;
  font-size: 1.1rem;
}
tr:last-child td {
  border-bottom: none;
}
input[type="text"] {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #cdd8ee;
  font-size: 1rem;
  min-width: 180px;
  transition: border 0.18s;
  margin-bottom: 12px;
}
input[type="text"]:focus {
  border-color: #184072;
  outline: none;
}
strong, b {
  font-weight: 700;
}
em {
  font-style: italic;
}

/* ==========================================================
   MODERN BOLD DESIGN TOKENS (COLOR & TYPOGRAPHY)
========================================================== */
:root {
  --color-primary: #184072;
  --color-secondary: #F5F6FA;
  --color-accent: #FAAE38;
  --color-dark: #151B28;
  --color-text: #184072;
  --color-bg: #F5F6FA;
  --color-white: #fff;
  --shadow-deep: 0 4px 32px rgba(24,64,114,0.10);
  --shadow-card: 0 0px 16px 0 rgba(24,64,114,0.07);
  --shadow-bold: 0 2px 12px rgba(250,174,56,0.13);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 7px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
  --fs-xs: 14px;
  --fs-sm: 16px;
  --fs-md: 18px;
  --fs-lg: 24px;
  --fs-xl: 32px;
  --fs-xxl: 48px;
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-60: 60px;
}


/* ==========================================================
   CONTAINER & RESPONSIVE LAYOUTS (FLEXBOX ONLY!!!)
========================================================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container,
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  min-width: 260px;
}
.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;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  min-width: 270px;
  max-width: 420px;
  transition: box-shadow 0.16s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 22px rgba(24,64,114,0.12), 0 2px 6px 0 rgba(250,174,56,0.04);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Ensure all cards/sections have min 20px margin */
.card,
.testimonial-card {
  margin-right: 20px;
  margin-bottom: 20px;
}

/* ===========================================
  HEADER & NAVIGATION
=========================================== */
header {
  background: var(--color-primary);
  box-shadow: 0 2px 12px rgba(24,64,114,0.08);
  padding: 0;
}
header .container {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
header img {
  height: 44px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: #fff;
  letter-spacing: 0.04em;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.18s;
}
header nav a:hover, header nav a:focus {
  color: var(--color-accent);
}
.cta-btn {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-md);
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 32px;
  cursor: pointer;
  text-decoration: none;
  margin-left: 18px;
  transition: background 0.18s, color 0.18s, transform 0.18s;
  box-shadow: 0 2px 12px 0 rgba(250,174,56,0.06);
  text-align: center;
  letter-spacing: 0.02em;
}
.cta-btn:hover, .cta-btn:focus {
  background: #ffd276;
  color: #184072;
  transform: translateY(-2px) scale(1.03);
  outline: none;
}
.cta-link {
  font-family: var(--font-display);
  color: var(--color-accent);
  font-weight: 800;
  font-size: var(--fs-md);
  text-underline-offset: 4px;
  letter-spacing: 0.02em;
  transition: color 0.17s;
}
.cta-link:hover, .cta-link:focus {
  color: #184072;
  text-decoration: underline;
}

/* Mobile nav toggle */
.mobile-menu-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  margin-left: 18px;
  display: none;
  cursor: pointer;
  z-index: 990;
  transition: color 0.2s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  color: var(--color-accent);
}

/* =====================================
  MOBILE MENU OVERLAY STYLES
===================================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(24,64,114,0.98);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  transform: translateX(105%);
  transition: transform 0.35s cubic-bezier(0.6,0,0.28,1);
  will-change: transform;
  height: 100dvh;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: #fff;
  background: none;
  border: none;
  padding: 22px 24px 8px 12px;
  align-self: flex-end;
  cursor: pointer;
  z-index: 1200;
  transition: color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 36px;
  flex: 1 1 auto;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  padding: 12px 0;
  margin-bottom: 2px;
  transition: color 0.15s, background 0.12s;
  border-radius: var(--radius-md);
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
  background: rgba(250,174,56,0.07);
}

/* Hide main nav and show toggle on mobile */
@media (max-width: 991px) {
  header nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 992px) {
  .mobile-menu {
    display: none;
  }
}

/* =============================
 TYPOGRAPHY SCALE AND HEADINGS
============================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1.11;
  margin-bottom: 14px;
}
h1 {
  font-size: var(--fs-xxl);
  letter-spacing: -0.03em;
}
h2 {
  font-size: var(--fs-xl);
  margin-top: 8px;
}
h3 {
  font-size: var(--fs-lg);
  margin-top: 6px;
}
h4 {
  font-size: 1.2rem;
}
p {
  margin-bottom: 12px;
  font-size: var(--fs-sm);
  color: var(--color-dark);
}
.text-section p,
footer .text-section p {
  margin-bottom: 8px;
}

/* Hero Section Style */
.hero {
  background: linear-gradient(90deg, #fff 70%, #FAAE38 100%);
  padding: 54px 0 46px 0;
  border-bottom-left-radius: 60px;
  border-bottom-right-radius: 60px;
  box-shadow: 0 3px 24px 0 rgba(250,174,56,0.14);
}
.hero h1 {
  color: var(--color-primary);
  font-size: 2.4rem;
  font-weight: 900;
}
.hero p {
  font-size: 1.15rem;
  color: #3b4d63;
  font-weight: 500;
  max-width: 600px;
}
.hero .cta-btn {
  margin-top: 12px;
}

/* =================================
  CARD, FEATURES, TESTIMONIALS
================================= */
.card-container, .testimonial-card, .feature-item, .card {
  margin-bottom: var(--space-24);
}
.card {
  background: #fff;
  box-shadow: var(--shadow-bold);
  border: 2.5px solid transparent;
  transition: border 0.16s, box-shadow 0.18s;
  border-radius: var(--radius-lg);
}
.card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 6px 24px rgba(250,174,56,0.09);
  z-index: 2;
}
.feature-item strong {
  color: var(--color-primary);
  font-size: 1.1rem;
}

.testimonial-card {
  background: #fff;
  color: #15223a;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  font-size: 1.04rem;
  min-width: 240px;
  max-width: 540px;
  margin-right: 18px;
  gap: 26px;
  border-left: 6px solid var(--color-accent);
  position: relative;
}
.testimonial-card p {
  font-size: 1.04rem;
  color: #26344f;
  font-weight: 500;
  margin-bottom: 8px;
}
.testimonial-card span {
  color: #5d6a7e;
  font-size: 0.97rem;
  font-family: var(--font-body);
}

/* Highlight accent strong typography for modern_bold */
strong {
  color: var(--color-primary);
  font-weight: 700;
}

/* =============================
  FOOTER
============================= */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 32px 0 0 0;
  margin-top: 60px;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  box-shadow: 0 -2px 24px 0 rgba(24,64,114,0.09);
}
footer .container {
  padding-top: 14px;
  padding-bottom: 10px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
footer nav a {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
  transition: color 0.14s;
}
footer nav a:hover {
  color: var(--color-accent);
}
footer .text-section {
  margin-left: 26px;
}
footer .text-section p {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 7px;
}
footer img {
  height: 42px;
  margin-bottom: 16px;
}

/* ==================================
  ADDITIONAL STYLES FOR TABLES
================================== */
thead tr {
  background: #F5F6FA;
  color: #184072;
}
td, th {
  border-bottom: 1px solid #ececf6;
}
tbody tr:hover {
  background: #FAAE38;
  color: #184072;
  transition: background 0.13s, color 0.13s;
}

/* ================================
  SPACING: ICONS, LISTS, ELEMENTS
================================ */
ul li, ol li {
  margin-bottom: 10px;
  line-height: 1.7;
}
ul:last-child {
  margin-bottom: 12px !important;
}

/* ================================
  FORMS, SEARCH BARS
================================ */
input[type="text"] {
  margin-top: 4px;
  box-shadow: 0 1px 4px rgba(24,64,114,0.07);
}

/* ===============================
  BUTTON & LINK HOVER/ACTIVE
================================ */
button, .cta-btn, .cta-link {
  transition: all 0.2s cubic-bezier(0.61,0.02,0.23,1.07);
}

/* =============================
  COOKIES CONSENT BANNER
============================= */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  color: #184072;
  box-shadow: 0 -2px 20px 0 rgba(24,64,114,0.13);
  z-index: 2000;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 36px;
  justify-content: space-between;
  padding: 26px 24px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  font-size: 1rem;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.25s cubic-bezier(0.61,0.03,0.34,1) 0s, opacity 0.22s;
  will-change: transform, opacity;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-btn {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  padding: 9px 23px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--color-primary);
  color: var(--color-accent);
  transition: background 0.17s, color 0.15s, box-shadow 0.12s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 2px 12px 0 rgba(250,174,56,0.18);
}
.cookie-btn.secondary {
  background: #ececf6;
  color: #184072;
  font-weight: 700;
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* Cookie Modal */
.cookie-modal-overlay {
  background: rgba(24,64,114,0.55);
  position: fixed;
  z-index: 2200;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.19s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 420px;
  min-width: 290px;
  padding: 34px 27px 27px 27px;
  box-shadow: 0 4px 36px 4px rgba(24,64,114,0.19);
  color: #184072;
}
.cookie-modal h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}
.cookie-category {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cookie-category label {
  font-weight: 600;
  font-size: 1rem;
  color: #26344f;
}
.cookie-switch {
  width: 42px;
  height: 24px;
  background: #e1e5ee;
  border-radius: 12px;
  position: relative;
  transition: background 0.16s;
  display: inline-block;
  cursor: pointer;
}
.cookie-switch input {
  display: none;
}
.cookie-switch .slider {
  position: absolute;
  top: 3px; left: 4px;
  width: 18px; height: 18px;
  background: var(--color-primary);
  border-radius: 50%;
  transition: left 0.15s, background 0.16s;
}
.cookie-switch input:checked + .slider {
  left: 20px;
  background: var(--color-accent);
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 12px;
}

/* ==========================================================
   RESPONSIVE LAYOUTS & FLEXBOX CORRECTIONS
========================================================== */
@media (max-width: 991px) {
  .footer .content-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
  }
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .hero {
    padding: 36px 0 30px 0;
    border-radius: 0 0 36px 36px;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 26px 6px;
    margin-bottom: 36px;
  }
  .hero {
    padding: 25px 0 16px 0;
    border-radius: 0 0 28px 28px;
  }
  .hero h1 {
    font-size: 1.35rem;
  }
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.12rem; }
  h3 { font-size: 1rem; }
  .container {
    max-width: 99vw;
    padding-left: 8px; padding-right: 8px;
  }
  .card, .testimonial-card {
    min-width: 170px;
    margin-right: 0;
  }
  .card-container, .content-grid, .content-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  .footer .content-wrapper, footer .content-wrapper {
    flex-direction: column;
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .testimonial-card {
    gap: 13px;
    padding: 15px 10px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 17px;
    padding-left: 10px; padding-right: 10px;
  }
  .cookie-modal {
    min-width: 90vw;
    padding: 21px 7vw 18px 7vw;
  }
}

/* Gaps and layout corrections for flex only */
.content-wrapper, .card-container, .content-grid, .feature-item, .testimonial-card {
  gap: 20px;
}

/* Custom class for visually hidden (for accessibility focus trapping in modals etc.) */
.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

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

/* ========== UTILITY CLASSES ========== */
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mt-24 { margin-top: 24px !important; }
.mt-32 { margin-top: 32px !important; }
.text-center { text-align: center !important; }

/* ========== GEOMETRIC DETAILS (MODERN BOLD) ========== */
.hero::before {
  content: '';
  display: block;
  position: absolute;
  z-index: 0;
  top: -50px;
  right: -70px;
  width: 220px;
  height: 220px;
  border-radius: 70px 120px 100px 120px;
  background: rgba(250,174,56,0.21);
  pointer-events: none;
}
@media (max-width: 991px) {
  .hero::before { display: none; }
}

/* ========== ADDITIONAL MICRO-INTERACTIONS ========== */
.cta-btn, .cta-link, .cookie-btn {
  transition: transform 0.10s cubic-bezier(0.72,0,0.29,1.15),
              background 0.18s, color 0.18s;
}
.cta-btn:active, .cookie-btn:active {
  transform: scale(0.96);
}
.card:active {
  transform: scale(0.98);
}

::-webkit-scrollbar {
  width: 11px;
  background: #ececf6;
}
::-webkit-scrollbar-thumb {
  background: #cdd8ee;
  border-radius: 12px;
}


/* Easy modal fade-in */
.cookie-modal-overlay {
  animation: cookie-fade-in 0.25s cubic-bezier(0.66, 0, 0.21, 1);
}
@keyframes cookie-fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* ================================
  PRINT OVERRIDE
================================ */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  body { background: #fff !important; color: #000; }
  .section, .container { padding: 0 !important; margin: 0 !important; }
}
