/* ========================
   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;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  background-color: #fff;
  color: #1C395B;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #1C395B;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus-visible {
  outline: 2px solid #F5B041;
  outline-offset: 2px;
}

/* ================
   TYPOGRAPHY
================ */
h1, h2, h3, h4, h5, h6 {
  color: #1C395B;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.13;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}
h4, h5, h6 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}
p {
  margin-bottom: 16px;
  color: #223148;
}
strong {
  font-weight: 700;
  color: #1C395B;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 18px;
}
li {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #223148;
  letter-spacing: 0.01em;
}
.text-section ul, .text-section ol {
  margin-top: 10px;
}

/* ===============
   LAYOUT STRUCTURE
================ */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.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: 14px;
  box-shadow: 0 2px 16px 0 rgba(28,57,91,0.06);
  padding: 32px 28px;
  flex: 1 1 320px;
  transition: box-shadow 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 22px 0 rgba(28,57,91,0.13);
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px 0 rgba(28,57,91,0.06);
  padding: 18px 22px;
}
.features ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 0;
}
.features li {
  min-width: 220px;
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 8px 0 rgba(28,57,91,0.07);
  padding: 20px 18px;
  transition: box-shadow 0.2s;
}
.features li:hover, .features li:focus-within {
  box-shadow: 0 4px 18px 0 rgba(28,57,91,0.13);
}
.features img {
  width: 32px;
  height: 32px;
}
.features strong {
  margin-bottom: 3px;
  font-size: 1.08rem;
}
.feature-desc {
  font-size: 0.98rem;
}

.services-preview ul {
  margin-left: 0;
}
.services-preview li {
  margin-bottom: 8px;
}

.text-section {
  margin-top: 10px;
  margin-bottom: 12px;
}

/* ===============
   HERO SECTION
================ */
.hero {
  background: #F2F2F2;
  margin-bottom: 60px;
  padding: 60px 0 40px 0;
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 700px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 2.7rem;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}
.hero p {
  color: #2d4060;
  margin-bottom: 28px;
  font-size: 1.15rem;
}
.hero .cta-primary {
  margin-top: 6px;
}

/* =============
   BUTTONS
============== */
.cta-primary, .cta-secondary, button, .cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  padding: 12px 28px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  transition: background 0.14s, color 0.14s, box-shadow 0.17s;
  cursor: pointer;
  box-shadow: 0 1px 6px 0 rgba(28,57,91,0.10);
}
.cta-primary {
  background: #1C395B;
  color: #fff;
}
.cta-primary:hover, .cta-primary:focus {
  background: #16304a;
  color: #F5B041;
  box-shadow: 0 3px 18px rgba(28,57,91,0.18);
}
.cta-secondary {
  background: #fff;
  color: #1C395B;
  border: 1px solid #1C395B;
  margin-top: 16px;
}
.cta-secondary:hover, .cta-secondary:focus {
  border-color: #F5B041;
  color: #F5B041;
  background: #f9f9f9;
}
.button-link {
  background: transparent;
  color: #1C395B;
  font-weight: 500;
  padding: 0;
  box-shadow: none;
}

/* ===============
   NAVBAR
================ */
header {
  background: #fff;
  border-bottom: 1px solid #ececec;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 101;
}
header nav {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px 0 12px 0;
  flex-wrap: wrap;
}
header nav a {
  color: #1C395B;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 6px 6px;
  border-radius: 6px;
  transition: color 0.16s, background 0.17s;
}
header nav a:hover, header nav a.active {
  background: #F2F2F2;
  color: #F5B041;
}
header nav a.cta-primary {
  margin-left: auto;
}
header nav img {
  height: 36px;
  margin-right: 4px;
}

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

/* ==========================
   MOBILE MENU - HAMBURGER
========================== */
@media (max-width: 1024px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #ececec;
    color: #1C395B;
    font-size: 2rem;
    border-radius: 10px;
    width: 44px;
    height: 44px;
    margin-left: 14px;
    transition: background 0.16s, box-shadow 0.16s;
    box-shadow: 0 2px 6px 0 rgba(28,57,91,0.09);
    z-index: 112;
    cursor: pointer;
  }
  .mobile-menu-toggle:hover,
  .mobile-menu-toggle:focus {
    color: #F5B041;
    background: #F2F2F2;
  }
  .mobile-menu {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(28,57,91,0.95);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
    z-index: 111;
    transform: translateX(-100%);
    transition: transform 0.36s cubic-bezier(0.49,0.05,0.29,0.93);
    width: 100vw;
    overflow-y: auto;
    will-change: transform;
  }
  .mobile-menu.open {
    transform: translateX(0);
    display: flex;
  }
  .mobile-menu-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.4rem;
    align-self: flex-end;
    margin: 22px 30px 14px 0;
    cursor: pointer;
    transition: color 0.14s;
  }
  .mobile-menu-close:hover,
  .mobile-menu-close:focus {
    color: #F5B041;
  }
  .mobile-menu nav.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    padding: 18px 36px;
    margin-top: 18px;
  }
  .mobile-menu nav.mobile-nav a {
    color: #fff;
    font-size: 1.16rem;
    font-weight: 500;
    padding: 22px 4px 8px 0;
    border-radius: 6px;
    min-width: 75vw;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: color 0.17s, background 0.19s;
    outline: none;
  }
  .mobile-menu nav.mobile-nav a:hover,
  .mobile-menu nav.mobile-nav a:focus,
  .mobile-menu nav.mobile-nav a.active {
    background: #1C395B;
    color: #F5B041;
  }
}

/* =============
   MAIN CONTENT
=============== */
main {
  margin-top: 0;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
/* Above per requirements - don't remove! */

/* Content wrapper flexibility */
@media (min-width: 769px) {
  .content-wrapper {
    flex-direction: row;
    gap: 40px;
  }
}

/* =============
   CTA SECTION
=============== */
.cta {
  background: #F2F2F2;
  border-radius: 14px;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 1px 12px 0 rgba(44,56,85,0.07);
}
.cta .content-wrapper {
  align-items: center;
  max-width: 580px;
  margin: 0 auto;
}
.cta h2 {
  text-align: center;
}
.cta p {
  text-align: center;
  margin-bottom: 20px;
}

/* ================
   TESTIMONIALS
================ */
.testimonials {
  background: #F2F2F2;
  border-radius: 16px;
  box-shadow: 0 1px 12px 0 rgba(44,56,85,0.07);
  margin-bottom: 60px;
  padding: 40px 0;
}
.testimonials .content-wrapper {
  gap: 32px;
  align-items: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(20,37,60,0.075);
  max-width: 580px;
  min-width: 220px;
  color: #1C395B;
}
.testimonial-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 5px;
}
.testimonial-card p {
  font-size: 1.10rem;
  color: #223148;
}
.testimonial-meta {
  font-size: 0.94rem;
  color: #6980A0;
}
.testimonial-card strong {
  color: #1C395B;
}

/* =============
   BRAND INFO & FOOTER
=============== */
footer {
  background: #fff;
  border-top: 1px solid #ececec;
  padding: 36px 0 10px 0;
}
footer .container {
  max-width: 1140px;
  margin: 0 auto;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 142px;
  margin-bottom: 12px;
}
footer nav a {
  color: #1C395B;
  font-size: 1rem;
  margin-bottom: 2px;
  transition: color 0.14s;
  padding: 3px 0;
}
footer nav a:hover, footer nav a:focus {
  color: #F5B041;
}
footer .brand-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  min-width: 190px;
  margin-bottom: 16px;
}
footer .brand-info img:first-child {
  width: 48px;
  margin-bottom: 6px;
}
footer .brand-info p {
  color: #223148;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}
footer .brand-info img {
  width: 18px;
  height: 18px;
  margin-right: 6px;
}
footer {
  font-size: 0.96rem;
  color: #223148;
}

/* ===============
   UTILS/SPACING
================ */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-8 { margin-bottom: 8px !important; }
.mb-16 { margin-bottom: 16px !important; }

/* ==============
   RESPONSIVE
================ */
@media (max-width: 900px) {
  .container {
    max-width: 98%;
    padding-left: 7vw;
    padding-right: 7vw;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.32rem; }
  .section, section, .testimonials, .cta {
    padding: 28px 4vw;
    margin-bottom: 42px;
  }
  .content-wrapper {
    gap: 14px;
  }
  .card {
    padding: 16px 10px;
  }
  .features ul, .card-container, .content-grid {
    gap: 10px;
  }
  .features li {
    padding: 12px 9px;
    min-width: 142px;
    font-size: 0.96rem;
  }
  .cta .content-wrapper, .hero .content-wrapper {
    max-width: 99vw;
    padding: 0;
  }
  .testimonial-card {
    min-width: 70vw;
    max-width: 99vw;
    padding: 14px;
  }
  .testimonials .content-wrapper {
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 14px;
  }
  footer .brand-info {
    min-width: 120px;
  }
}
@media (max-width: 540px) {
  h1{font-size: 1.25rem;}
  h2{font-size: 1.08rem;}
  .container {padding-left: 2vw;padding-right:2vw;}
  .cta .content-wrapper, .hero .content-wrapper {padding: 0;}
}

/* ===============
   MICRO-INTERACTIONS
================ */
.card, .feature-item, .testimonial-card {
  transition: box-shadow 0.22s, transform 0.18s;
}
.card:hover, .feature-item:hover, .testimonial-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 6px 28px 0 rgba(28,57,91,0.13);
}
.cta-primary, .cta-secondary, .cookie-btn {
  transition: background 0.22s, color 0.17s, box-shadow 0.2s, border 0.17s;
}

/* ===============
   COOKIE BANNER
================ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: #fff;
  box-shadow: 0 -2px 32px 0 rgba(28,57,91,0.12);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 28px;
  padding: 22px 20px 16px 20px;
  min-height: 50px;
  border-radius: 22px 22px 0 0;
  font-size: 1rem;
  opacity: 1;
  transition: transform 0.32s cubic-bezier(0.72,0.21,0.34,1.04), opacity 0.23s;
}
.cookie-banner.closed {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner .cookie-text {
  color: #223148;
  flex: 1 1 410px;
}
.cookie-banner .cookie-btn {
  margin-left: 8px;
  min-width: 140px;
  background: #1C395B;
  color: #fff;
  font-weight: 600;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
}
.cookie-banner .cookie-btn.secondary {
  background: #fff;
  color: #1C395B;
  border: 1px solid #1C395B;
}
.cookie-banner .cookie-btn.secondary:hover,
.cookie-banner .cookie-btn.secondary:focus {
  background: #F2F2F2;
  color: #F5B041;
  border-color: #F5B041;
}
.cookie-banner .cookie-btn.settings {
  background: #F5B041;
  color: #1C395B;
  border: none;
}
.cookie-banner .cookie-btn.settings:hover,
.cookie-banner .cookie-btn.settings:focus {
  background: #ffd381;
  color: #1C395B;
}

/* Modal overlay for cookie settings*/
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(28,57,91,0.33);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.closed {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 44px 0 rgba(28,57,91,0.18);
  padding: 38px 29px 26px 29px;
  width: 95vw;
  max-width: 480px;
  min-width: 310px;
  transition: transform 0.27s cubic-bezier(0.42,1.23,0.34,1.08);
  transform: translateY(0);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.cookie-modal h2 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-bottom: 9px;
}
.cookie-modal .cookie-toggle {
  width: 35px;
  height: 20px;
  border-radius: 12px;
  background: #F2F2F2;
  position: relative;
  margin-left: 8px;
  border: none;
  appearance: none;
  outline: none;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-modal .cookie-toggle:checked {
  background: #F5B041;
}
.cookie-modal .cookie-toggle:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(44,56,85,0.08);
  transition: transform 0.18s;
}
.cookie-modal .cookie-toggle:checked:before {
  transform: translateX(15px);
}
.cookie-modal .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}
.cookie-modal .cookie-btn {
  padding: 10px 22px;
  border-radius: 20px;
  font-size: 1rem;
  background: #1C395B;
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.cookie-modal .cookie-btn.secondary {
  background: #fff;
  border: 1px solid #1C395B;
  color: #1C395B;
}
.cookie-modal .cookie-btn.secondary:hover {
  color: #F5B041;
  border-color: #F5B041;
}
.cookie-modal .cookie-btn.close {
  background: transparent;
  color: #1C395B;
  border: none;
  font-size: 1.12rem;
  margin-left: auto;
  margin-top: -18px;
  align-self: flex-end;
  padding: 0 8px;
}
.cookie-modal .cookie-btn.close:hover {
  color: #F5B041;
  background: #F2F2F2;
}
@media (max-width: 700px) {
  .cookie-banner {flex-direction: column;gap:10px;align-items:flex-start;}
  .cookie-banner .cookie-btn {margin-left:0;margin-top:6px;min-width:110px;}
  .cookie-modal {padding: 14vw 5vw 7vw 5vw;width:97vw;max-width:98vw;}
}

/* Hide cookie banner and modal by default (JS controlled) */
.cookie-banner, .cookie-modal-overlay { display: none; }
.cookie-banner.visible { display: flex; }
.cookie-modal-overlay.visible { display: flex; }

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

/* EOF */
