/* CSS RESET + BASE STYLES */
html { box-sizing: border-box; font-size: 16px; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  color: #234073;
  background: #fff;
  line-height: 1.6;
  font-size: 1rem;
}
img { max-width: 100%; display: block; height: auto; }
a { color: #234073; text-decoration: none; transition: color 0.2s; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: 8px; }
.hide { display: none !important; }

/* TYPOGRAPHY (geometric fonts & hierarchy) */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  color: #234073;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1rem; }
p, ul, ol { font-size: 1rem; margin-bottom: 14px; }
.ccta-text, .cta-text { font-size: 1.3rem; color: #234073; font-weight: 500; }
.topic-tag {
  font-size: 0.85rem;
  background: #E2EAF8;
  color: #234073;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 6px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  display: inline-block;
}
strong { font-weight: 700; }

/* STRUCTURE */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 4px 18px 0 rgba(35,64,115,0.05);
}
section:last-child { margin-bottom: 0; }

/* FLEX & GEOMETRIC LAYOUTS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 8px 0 rgba(35,64,115,0.07);
  margin-bottom: 20px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 270px;
  flex: 1 0 270px;
}
.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;
  background: #E2EAF8;
  border-radius: 24px;
  box-shadow: 0 2px 10px 0 rgba(35, 64, 115, 0.06);
  padding: 20px;
  min-height: 110px;
  margin-bottom: 20px;
  color: #234073;
  transition: transform 0.18s cubic-bezier(.22,1,.36,1), box-shadow 0.23s;
  border-left: 5px solid #FFB72B;
  font-family: 'Roboto', Arial, sans-serif;
}
.testimonial-card:hover {
  transform: translateY(-2px) scale(1.018);
  box-shadow: 0 4px 20px rgba(35,64,115,0.11);
}
.testimonial-author {
  font-size: 0.98rem;
  font-weight: 700;
  margin-left: auto;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #234073;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 16px;
}
.text-section {
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* BUTTONS & CTA */
.cta-primary,
.cta-primary:visited {
  background: #234073;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 13px 32px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.16s, box-shadow 0.16s, color 0.17s;
  display: inline-block;
  margin-top: 8px;
  box-shadow: 0 2px 12px rgba(35,64,115,0.09);
}
.cta-primary:hover,
.cta-primary:focus {
  background: #FFB72B;
  color: #234073;
  box-shadow: 0 4px 24px rgba(35,64,115,0.13);
}
.cta-secondary {
  background: #FFB72B;
  color: #234073;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: none;
  padding: 11px 26px;
  border-radius: 10px;
  margin-top: 10px;
  cursor: pointer;
  transition: background 0.16s, color 0.15s;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #234073;
  color: #fff;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

/* HEADER & NAV */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(35,64,115,0.04);
  padding: 0 0 0 0;
  position: sticky;
  top: 0;
  z-index: 60;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  justify-content: flex-start;
  padding: 18px 16px 16px 16px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: #234073;
  font-size: 1.0rem;
  padding: 7px 10px;
  border-radius: 8px;
  transition: background 0.13s, color .13s;
  position: relative;
}
header nav a:hover, header nav a.active {
  color: #FFB72B;
  background: #E2EAF8;
}
header nav a.cta-primary {
  margin-left: auto;
}
header nav img {
  height: 36px; width: auto;
  margin-right: 8px;
}

/* HAMBURGER MENU STYLES */
.mobile-menu-toggle {
  display: none;
  background: #FFB72B;
  border-radius: 7px;
  font-size: 1.7rem;
  color: #234073;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 17px;
  top: 15px;
  z-index: 120;
  border: none;
}
.mobile-menu {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform .33s cubic-bezier(.72,.02,.31,1.09), box-shadow .27s;
  box-shadow: 0 0 0 rgba(35,64,115,0.02);
  display: flex;
  flex-direction: column;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 0 0 24px rgba(35,64,115,0.19);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 19px 22px 0 0;
  font-size: 2.1rem;
  background: #E2EAF8;
  border-radius: 8px;
  color: #234073;
  border: none;
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #FFB72B;
  color: #234073;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin: 0 25px;
}
.mobile-nav a {
  width: 100%;
  color: #234073;
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-radius: 9px;
  padding: 14px 8px;
  margin-bottom: 8px;
  transition: background .16s, color .16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E2EAF8;
  color: #FFB72B;
}

@media (max-width: 1024px) {
  header nav {
    gap: 15px;
    padding: 14px 8px 14px 8px;
  }
}
@media (max-width: 900px) {
  header nav a.cta-primary {
    margin-left: unset;
  }
}
@media (max-width: 850px) {
  header nav {
    gap: 10px; flex-wrap: wrap;
  }
}
@media (max-width: 830px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* --- MAIN CONTENT & CARD --- */
ul {
  list-style: none;
}
ul li {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
  font-family: 'Roboto', Arial, sans-serif;
}
ul li img {
  width: 28px;
  height: 28px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(35,64,115,0.07);
}
.card, .testimonial-card {
  margin-bottom: 20px;
}

/* FOOTER */
footer {
  background: #234073;
  color: #fff;
  padding: 38px 0 20px 0;
  font-family: 'Roboto', Arial, sans-serif;
  margin-top: 30px;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}
footer nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 12px;
}
footer nav a {
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background .13s, color .13s;
}
footer nav a:hover, footer nav a:focus {
  background: #FFB72B;
  color: #234073;
}
footer .text-section p {
  font-size: 0.97rem;
  color: #fff;
  text-align: center;
  margin-bottom: 0;
  margin-top: 4px;
}

/* --- COOKIES BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 3000;
  background: #fff;
  box-shadow: 0 -2px 16px rgba(35,64,115,0.13);
  border-top: 4px solid #234073;
  padding: 24px 20px 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: bannerAppear .6s cubic-bezier(.28,1.29,.31,1.01);
}
@keyframes bannerAppear { from { transform: translateY(100%); opacity:0;} to{transform: translateY(0); opacity:1;} }
.cookie-banner__desc {
  font-size: 1rem;
  color: #234073;
  text-align: center;
}
.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-banner button {
  padding: 10px 20px;
  border-radius: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: none;
  transition: background .16s, color .16s;
  cursor: pointer;
}
.cookie-accept {
  background: #234073;
  color: #fff;
}
.cookie-accept:hover { background: #FFB72B; color: #234073; }
.cookie-reject {
  background: #E2EAF8;
  color: #234073;
}
.cookie-reject:hover { background: #FFB72B; color: #234073; }
.cookie-settings {
  background: #FFB72B;
  color: #234073;
}
.cookie-settings:hover { background: #234073; color: #fff; }

/* COOKIE MODAL & ANIMATION */
.cookie-modal {
  background: #fff;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1);
  box-shadow: 0 10px 48px rgba(35,64,115,0.17);
  border-radius: 24px;
  z-index: 3500;
  padding: 36px 22px 24px 22px;
  min-width: 340px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 17px;
  animation: modalAppear .24s cubic-bezier(.28,1.29,.31,1.01);
}
@keyframes modalAppear { from { transform: translate(-50%,-47%) scale(0.92); opacity: 0; } to{ transform: translate(-50%,-50%) scale(1); opacity:1; } }
.cookie-modal__header {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #234073;
  margin-bottom: 6px;
}
.cookie-modal__category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.cookie-modal__category span {
  font-weight: 600;
  color: #234073;
}
.toggle-switch {
  width: 44px; height: 22px;
  border-radius: 12px;
  background: #E2EAF8;
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: background .16s;
}
.toggle-switch[data-checked="true"] { background: #FFB72B; }
.toggle-switch .toggle-knob {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #234073;
  transition: left .16s;
  position: absolute;
  left: 2px;
  top: 1px;
}
.toggle-switch[data-checked="true"] .toggle-knob {
  left: 22px;
  background: #234073;
}
.cookie-modal__footer {
  display: flex;
  gap: 11px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-modal__close {
  background: #E2EAF8;
  color: #234073;
  border-radius: 7px;
  padding: 7px 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.95rem;
}
.cookie-modal__close:hover {
  background: #FFB72B;
  color: #234073;
}
.cookie-modal__desc {
  color: #234073;
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .cookie-modal { min-width: 96vw; padding: 18px 10px 10px 10px; }
}

/* RESPONSIVE DESIGN */
@media (max-width: 1170px) {
  .container { max-width: 95vw; }
}
@media (max-width: 900px) {
  section { padding: 26px 8px; border-radius: 20px; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  section { margin-bottom: 34px; padding: 18px 2px; border-radius: 13px; }
  .container { padding: 0 4px; }
  .content-wrapper, .text-section { gap: 10px; }
  .testimonials { gap: 10px; }
  .card-container, .content-grid { gap: 10px; }
  .testimonial-card { padding: 11px 10px; border-radius: 14px; font-size: 0.99rem; }
  .card { padding: 15px 9px; border-radius: 9px; }
  header nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .text-image-section { flex-direction: column; align-items: stretch; gap: 14px; }
}
@media (max-width: 500px) {
  h1 { font-size: 1.44rem; }
  h2 { font-size: 1.09rem; margin-bottom: 10px; }
  h3 { font-size: 1rem; }
  footer { padding: 18px 0 10px 0; border-radius: 0; }
}

/* MICRO-INTERACTIONS & EFFECTS */
.card, .cta-primary, .cta-secondary, .testimonial-card, .feature-item, .cookie-banner, .cookie-modal {
  transition: box-shadow .22s, transform .15s, background .15s, color .17s;
}
.card:hover {
  box-shadow: 0 4px 28px rgba(35,64,115,0.17); transform: translateY(-2px) scale(1.02);
}
a, button, .cta-primary, .cta-secondary, .mobile-menu-toggle, .mobile-menu-close {
  transition: background .15s, color .15s, box-shadow .17s, border .14s;
}

/* GEOMETRIC DECORATIVE ELEMENTS (angular shapes where desired) */
section::before {
  content: '';
  display: block;
  position: absolute;
  border-radius: 14px;
  z-index: 0;
  opacity: 0.07;
  box-shadow: 0 18px 60px #234073;
}

@media (max-width: 600px) {
  .testimonial-card { min-height: 70px; padding: 8px 6px; }
}

/* ACCESSIBILITY & UTILITIES */
:focus {
  outline: 2.5px solid #FFB72B;
  outline-offset: 2px;
}
/* Ensuring spacing between sections/cards is at least 20px */
.card-container > *, .content-grid > *, .card, .testimonial-card, .feature-item {
  margin-bottom: 20px;
}
section > .container > .content-wrapper > *:not(:last-child) {
  margin-bottom: 20px;
}

/* Remove section::before on mobile to avoid layout issues */
@media (max-width: 560px) {
  section::before { display: none; }
}
