/* =========================
   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 {
  box-sizing: border-box;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

* { box-sizing: inherit; }
img, picture, video {
  max-width: 100%;
  display: block;
  height: auto;
}

body {
  min-height: 100vh;
  background: #F7F7F5;
  color: #183153;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* =========================
   VARIABLE DECLARATIONS
   ========================= */
:root {
  --primary: #183153;
  --secondary: #3A99D8;
  --accent: #F7F7F5;
  --white: #fff;
  --dark: #10203F;
  --black: #151B27;
  --shadow-card: 0 4px 32px 0 rgba(24,49,83,0.10);
  --shadow-hover: 0 6px 40px 0 rgba(58,153,216,0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --transition: 0.3s cubic-bezier(.4,1,.3,1);
  --font-display: 'Playfair Display', serif;
  --font-body: 'Montserrat', Arial, Helvetica, sans-serif;
}

@media (max-width: 480px) {
  html { font-size: 15px; }
}

@media (min-width: 1100px) {
  html { font-size: 18px; }
}

/* =========================
   CONTAINERS & BASIC LAYOUT
   ========================= */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: flex-start;
  align-items: flex-start;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  background: var(--accent);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 32px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 300px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card:hover, .card:focus-within {
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px) scale(1.02);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

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

/* =========================
   TYPOGRAPHY & HEADINGS
   ========================= */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -1.5px;
  color: var(--primary);
  line-height: 1.16;
}
@media (max-width: 600px) {
  h1, .h1 { font-size: 2.1rem; }
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 12px;
  line-height: 1.18;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
h4, .h4 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}
p, ul, ol {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.7;
}
strong, b { font-weight: 700; }
em, i { font-style: italic; }

ul, ol {
  margin-left: 1.3em;
  margin-bottom: 18px;
  padding-left: 0;
}
ul li, ol li {
  margin-bottom: 8px;
  padding-left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  word-break: break-word;
}
ul li img, ol li img {
  width: 22px;
  height: 22px;
  margin-right: 10px;
  flex-shrink: 0;
}

/* =========================
   BUTTONS
   ========================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 700;
  background: var(--secondary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 20px 0 rgba(58,153,216,0.10);
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.03);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  background: var(--white);
  color: var(--secondary);
  border: 2px solid var(--secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: none;
  transition: background var(--transition), color var(--transition), border var(--transition);
  text-decoration: none;
  letter-spacing: 1px;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--primary);
}

/* =========================
   HEADER & NAVIGATION
   ========================= */
header {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 16px rgba(24,49,83,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 24px;
}
header img {
  height: 50px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.03rem;
  letter-spacing: 0.5px;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: var(--white);
}

/* Hide burger on desktop */
.mobile-menu-toggle {
  display: none;
}

/* Hide mobile menu on desktop */
.mobile-menu {
  display: none;
}

@media (max-width: 950px) {
  .main-nav {
    gap: 11px;
  }
  header .container {
    gap: 10px;
  }
}

@media (max-width: 820px) {
  header .container {
    gap: 0;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--white);
    background: none;
    border: none;
    padding: 7px 14px;
    cursor: pointer;
    margin-left: 12px;
    z-index: 1102;
    border-radius: 8px;
    transition: background var(--transition);
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: var(--secondary);
    color: var(--white);
  }
}

/* MOBILE SLIDE-MENU STYLES */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: var(--primary);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0 40px 40px 28px;
  transform: translateX(-100vw);
  transition: transform 0.34s cubic-bezier(.83,0,.17,1);
  z-index: 2000;
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(24,49,83,0.20);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 0 18px 0;
  background: var(--secondary);
  color: var(--white);
  font-size: 2.3rem;
  border: none;
  border-radius: 16px;
  padding: 4px 18px;
  cursor: pointer;
  transition: background var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #126fa7;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 18px;
}
.mobile-nav a {
  color: var(--white);
  font-weight: 700;
  font-size: 1.18rem;
  font-family: var(--font-body);
  text-decoration: none;
  background: none;
  padding: 13px 6px 13px 0;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--white);
}

@media (max-width: 440px) {
  .mobile-menu {
    padding: 0 9vw 32px 5vw;
  }
  .mobile-nav a {
    font-size: 1rem;
  }
  .mobile-menu-close {
    padding: 4px 11px;
    font-size: 2rem;
  }
}

/* ==============
   MAIN & HERO
   ============== */
main {
  width: 100%;
  margin: 0 auto;
  padding-bottom: 32px;
}
section {
  width: 100%;
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: none;
}
@media (max-width: 600px) {
  section {
    padding: 32px 0 32px 0;
  }
}

/* ============
   TESTIMONIALS
   ============ */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 16px 0 rgba(24,49,83,0.09);
  margin-bottom: 20px;
  margin-top: 0;
  max-width: 600px;
}
.testimonial-card p {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0;
}
.testimonial-card span {
  font-family: var(--font-body);
  color: var(--dark);
  font-weight: 600;
  font-size: 1rem;
}

/* ============
   FOOTER
   ============ */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 38px 0 16px 0;
  width: 100%;
}
footer .container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
footer a {
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  transition: color var(--transition);
}
footer a:hover, footer a:focus {
  color: var(--secondary);
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer-social a img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  transition: background var(--transition), transform var(--transition);
  background: var(--accent);
  padding: 5px;
}
.footer-social a:hover img, .footer-social a:focus img {
  background: var(--secondary);
  transform: scale(1.09) rotate(-5deg);
}
@media (max-width: 800px) {
  footer .container {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    padding-bottom: 8px;
  }
}
footer p {
  color: var(--accent);
  font-size: 1rem;
  margin: 8px 0;
  font-family: var(--font-body);
}

/* ====================
   CARDS & FEATURE LIST
   ==================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
}
.feature-list {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 32px;
}
.feature-item img {
  width: 32px;
  height: 32px;
}

/* =====================
   CONTENT GRID
   ===================== */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
@media (max-width: 900px) {
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}

/* =====================
   MISC DECORATIVE ELEMENTS
   ===================== */
hr {
  border: none;
  border-top: 2px solid var(--accent);
  margin: 32px 0;
}

/* ==============
   LINKS
   ============== */
a {
  color: var(--secondary);
  text-decoration: underline;
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--primary);
  text-decoration: none;
}

/* ===================================
   COOKIE CONSENT BANNER & MODAL
   =================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--primary);
  color: var(--white);
  padding: 22px 16px 18px 16px;
  box-shadow: 0 -2px 26px rgba(24,49,83,0.13);
  z-index: 4001;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 30px;
  animation: cookie-slideup 0.7s cubic-bezier(.25,1,.6,1);
}
@keyframes cookie-slideup {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  font-size: 1rem;
  color: var(--white);
  margin-right: 18px;
  margin-bottom: 0;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 13px;
}
.cookie-btn {
  padding: 9px 22px;
  border: none;
  border-radius: 9px;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  margin-left: 0;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: 0 3px 10px rgba(58,153,216,0.08);
}
.cookie-btn.accept {
  background: var(--secondary);
  color: var(--white);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #228fd2;
}
.cookie-btn.reject {
  background: var(--white);
  color: var(--secondary);
  border: 2px solid var(--white);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--secondary);
  color: var(--white);
}
.cookie-btn.settings {
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--secondary);
  color: var(--white);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .cookie-banner p {
    font-size: 0.97rem;
  }
}

/* COOKIE MODAL OVERLAY */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(24,49,83, 0.85);
  z-index: 4002;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadein-cookie 0.2s; 
}
@keyframes fadein-cookie {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--white);
  color: var(--primary);
  border-radius: var(--radius);
  max-width: 380px;
  width: 84vw;
  padding: 36px 28px 28px 28px;
  box-shadow: 0 8px 40px rgba(58,153,216,0.17);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 25px;
  animation: cookiescale 0.4s cubic-bezier(.3,1.7,.6,1);
}
@keyframes cookiescale {
  from { transform: scale(0.93); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  color: var(--primary);
  font-size: 1.3rem;
  font-family: var(--font-display);
  margin-bottom: 0;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 10px 0;
  border-bottom: 1px solid #dbe9f0;
}
.cookie-category:last-child { border-bottom: none; }
.cookie-switch {
  position: relative;
  display: flex;
  align-items: center;
}
.cookie-switch input[type='checkbox'] {
  display: none;
}
.cookie-switch label {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  background: #dde8f2;
  border-radius: 16px;
  cursor: pointer;
  transition: background 0.22s;
}
.cookie-switch label::after {
  content: '';
  display: block;
  position: absolute;
  left: 3px; top: 3px;
  width: 18px; height: 18px;
  background: var(--secondary);
  border-radius: 50%;
  transition: left 0.18s, background 0.22s;
}
.cookie-switch input:checked + label {
  background: var(--secondary);
}
.cookie-switch input:checked + label::after {
  left: 23px;
  background: var(--primary);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin-top: 8px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  font-size: 0.98rem;
  padding: 9px 20px;
}
@media (max-width: 500px) {
  .cookie-modal { padding: 22px 8vw 18px 8vw; }
}

/* ==================
   RESPONSIVENESS
   ================== */
@media (max-width: 750px) {
  h1, .h1 { font-size: 2.1rem; }
  h2, .h2 { font-size: 1.3rem; }
  footer .container {
    gap: 12px;
  }
}
@media (max-width: 600px) {
  section, .section {
    padding: 24px 4vw;
  }
  .card {
    min-width: 90vw;
  }
}

/* Ensure adequate margins between all elements */
.section, section, .card, .testimonial-card,
.text-section, .card-container > *, .content-wrapper > * {
  margin-bottom: 20px !important;
}
.section:last-child, section:last-child,
.card:last-child, .card-container > *:last-child, .testimonial-card:last-child, .text-section:last-child {
  margin-bottom: 0 !important;
}

/* Prevent overlap and ensure adequate z-index when needed */
header, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
  z-index: 2000;
}

/* ================
   MODERN_BOLD SHAPES
   ================ */
/* Decorative geometric shapes for modern_bold */
.hero-shape {
  position: absolute;
  top: -48px; left: -44px;
  width: 150px; height: 83px;
  background: var(--secondary);
  opacity: 0.07;
  border-radius: 0 42px 90px 0;
  z-index: 0;
}
@media (max-width: 600px) {
  .hero-shape { display: none; }
}

/* =============================
   ANIMATION & INTERACTION
   ============================= */
.btn-primary, .btn-secondary, .cookie-btn {
  will-change: background, transform, box-shadow;
}
.btn-primary:active, .btn-secondary:active, .cookie-btn:active {
  transform: scale(0.97);
}

/* Misc microinteractions */
.card {
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 10px 32px 0 rgba(24,49,83,0.19);
  transform: translateY(-5px) scale(1.025);
}

/* =============================
   ACCESSIBILITY & CONTRAST
   ============================= */
.testimonial-card, .text-section, section,
.card, .feature-item {
  background: var(--accent);
  color: #183153;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 10px 0 rgba(24,49,83,0.08);
}
.testimonial-card p,
.testimonial-card span {
  color: #183153;
}

/* =============================
   SPECIAL UTILITY CLASSES
   ============================= */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.gap-20 { gap: 20px !important; }
.gap-32 { gap: 32px !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.w-100 { width: 100% !important; }

/* Hide visually for accessibility */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

/* ===============================
   FOCUS STATES
   =============================== */
:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

/* END */