/* === 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;
}
article, aside, details, figcaption, figure,footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #222;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  text-decoration: none;
  color: inherit;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  border: 0;
  display: block;
}
:focus {
  outline: 2px solid #23416A;
  outline-offset: 2px;
}

/* === Typography === */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Merriweather:wght@700&display=swap');

html {
  font-size: 16px;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #222;
  background: #fff;
  font-size: 1rem;
  font-weight: 400;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  color: #23416A;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.125rem;
  margin-bottom: 16px;
}
p, li {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 12px;
  color: #2a2a2a;
}
strong, b {
  font-weight: 700;
  color: #23416A;
}

/* === Containers & Layout === */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(35,65,106,0.06);
  margin-bottom: 20px;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 240px;
  flex: 1 1 280px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 4px 18px rgba(35,65,106,0.12);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #F3F5F7;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(35,65,106,0.05);
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 420px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* === HERO Section === */
.hero {
  margin-bottom: 60px;
  padding: 64px 0 68px 0;
  background: #F3F5F7;
  border-radius: 0 0 32px 32px;
}
.hero .container {
  align-items: flex-start;
}
.hero h1 {
  color: #23416A;
  font-size: 2.25rem;
  margin-bottom: 16px;
}
.hero p {
  font-size: 1.125rem;
  margin-bottom: 26px;
}

/* === Main Navigation === */
header {
  background: #fff;
  box-shadow: 0 1px 8px rgba(35,65,106,0.04);
  width: 100%;
  z-index: 101;
  position: relative;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 16px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Roboto', Arial, sans-serif;
  padding: 8px 0;
  color: #23416A;
  font-size: 1rem;
  transition: color 0.18s;
  position: relative;
}
.main-nav a:after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: #E89F3C;
  border-radius: 1px;
  transition: width 0.18s;
  margin: 0 auto;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #E89F3C;
}
.main-nav a:hover:after,
.main-nav a:focus:after {
  width: 80%;
}

.cta-button {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  background: #23416A;
  color: #fff;
  padding: 12px 30px;
  border-radius: 32px;
  font-size: 1rem;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
  box-shadow: 0 2px 8px rgba(35,65,106,0.04);
  margin-left: 16px;
  letter-spacing: 0.05em;
}
.cta-button:hover,
.cta-button:focus {
  background: #E89F3C;
  color: #23416A;
  box-shadow: 0 4px 16px rgba(35,65,106,0.13);
}

/* === Features list === */
.features ul,
.services ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 44px;
  margin-bottom: 0;
}
.features li,
.services li {
  padding-left: 0;
  font-size: 1rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #23416A;
}
.features img,
.services img {
  width: 28px;
  height: 28px;
  margin-right: 4px;
  flex-shrink: 0;
}

/* === Quick Links CTA (inside .services) === */
.quick-links {
  display: flex;
  gap: 16px;
  margin-top: 30px;
}

/* === Cards for Testimonials === */
.testimonials .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}
.testimonial-card {
  min-width: 220px;
  max-width: 420px;
  flex: 1 1 300px;
  background: #F3F5F7;
  color: #222;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(35,65,106,0.05);
  padding: 20px 24px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 26px rgba(35,65,106,0.13);
  transform: translateY(-4px) scale(1.01);
}
.testimonial-card p {
  font-size: 1.125rem;
  margin-bottom: 10px;
  color: #23272f;
}
.testimonial-card strong {
  color: #23416A;
  font-weight: 700;
}
.testimonial-card div img {
  width: 21px;
  margin-right: 2px;
  display: inline-block;
  vertical-align: baseline;
}

/* === Contact and text sections === */
.text-section ul {
  margin-bottom: 20px;
  padding-left: 0;
}
.text-section li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #23416A;
  font-size: 1rem;
  margin-bottom: 12px;
}
.text-section img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* === Footer === */
footer {
  background: #F3F5F7;
  padding: 48px 0 0 0;
  margin-top: 64px;
  color: #23416A;
  border-top: 1px solid #E4E6EA;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-between;
  gap: 32px;
}
.footer-nav, .footer-legal, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a,
.footer-legal a {
  color: #23416A;
  font-size: 1rem;
  margin-bottom: 2px;
  transition: color 0.18s;
}
.footer-nav a:hover,
.footer-legal a:hover,
.footer-nav a:focus,
.footer-legal a:focus {
  color: #E89F3C;
}
.footer-contact a {
  color: #E89F3C;
  font-weight: 500;
  transition: color 0.18s;
}
.footer-contact a:hover {
  color: #23416A;
}
.footer-social {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  margin: 0 0 0 20px;
}
.footer-social a img {
  width: 24px;
  filter: grayscale(80%);
  transition: filter 0.2s;
}
.footer-social a:hover img {
  filter: none;
}
.footer-bottom {
  background: transparent;
  margin-top: 36px;
  text-align: center;
  color: #697490;
  font-size: 0.875rem;
  padding-bottom: 26px;
}

/* ======== LEGAL, POLICY, MODAL SECTIONS ======== */
.legal .container {
  padding: 40px 20px;
}
.legal .text-section h2 {
  margin-top: 18px;
  font-size: 1.15rem;
  color: #23416A;
}
.legal .text-section ul {
  margin: 16px 0 24px 0;
}
.legal .text-section li {
  color: #222;
}

/* === Mobile Menu === */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #23416A;
  cursor: pointer;
  margin-left: 10px;
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  z-index: 123;
  transition: color 0.15s;
}
.mobile-menu-toggle:focus {
  color: #E89F3C;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #fff;
  box-shadow: 0 0 0 100vw rgba(35,65,106,0.08);
  z-index: 122;
  transform: translateX(-100vw);
  transition: transform 0.32s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #23416A;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 30px;
  z-index: 124;
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 60px;
}
.mobile-nav a {
  color: #23416A;
  font-size: 1.18rem;
  font-family: 'Roboto', Arial, sans-serif;
  padding: 12px 0;
  border-radius: 8px;
  transition: background 0.12s, color 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #fff;
  background: #E89F3C;
}

/* Hide navigation on mobile */
@media (max-width: 930px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 931px) {
  .mobile-menu {
    display: none !important;
  }
}

/* === Cookie Consent Banner === */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: #fff;
  border-top: 1px solid #E4E6EA;
  box-shadow: 0 -1px 12px rgba(35,65,106,0.04);
  padding: 30px 20px 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transition: transform 0.32s, opacity 0.32s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  color: #222;
  font-size: 1rem;
  margin-bottom: 0;
  text-align: center;
}
.cookie-banner .cookie-controls {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 24px;
  border-radius: 32px;
  border: none;
  cursor: pointer;
  background: #F3F5F7;
  color: #23416A;
  margin: 0 2px;
  transition: background 0.18s, color 0.18s, box-shadow 0.16s;
  box-shadow: 0 1px 4px rgba(35,65,106,0.03);
}
.cookie-banner button.accept {
  background: #23416A;
  color: #fff;
  font-weight: 500;
}
.cookie-banner button.accept:hover,
.cookie-banner button.accept:focus {
  background: #E89F3C;
  color: #23416A;
}
.cookie-banner button.settings {
  background: #E89F3C;
  color: #23416A;
  font-weight: 500;
}
.cookie-banner button.settings:hover,
.cookie-banner button.settings:focus {
  background: #23416A;
  color: #fff;
}
.cookie-banner button.reject {
  background: #F3F5F7;
  color: #23416A;
}
.cookie-banner button.reject:hover,
.cookie-banner button.reject:focus {
  background: #ebebeb;
  color: #E89F3C;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 2100;
  background: rgba(35,65,106,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 56px rgba(35,65,106,0.19);
  min-width: 320px;
  max-width: 94vw;
  padding: 38px 18px 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  color: #222;
  position: relative;
}
.cookie-modal h2 {
  color: #23416A;
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #23416A;
  position: absolute;
  top: 18px;
  right: 16px;
  cursor: pointer;
  transition: color 0.14s;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: #E89F3C;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
  width: 100%;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 1rem;
  width: 100%;
}
.cookie-toggle {
  appearance: none;
  width: 36px;
  height: 20px;
  background: #E4E6EA;
  border-radius: 12px;
  position: relative;
  outline: none;
  transition: background 0.18s;
  cursor: pointer;
  flex-shrink: 0;
}
.cookie-toggle:checked {
  background: #E89F3C;
}
.cookie-toggle:disabled {
  background: #ebebeb;
  cursor: default;
}
.cookie-toggle::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 3px rgba(35,65,106,.05);
  transition: left 0.18s;
}
.cookie-toggle:checked::after {
  left: 19px;
}
.cookie-toggle:disabled::after {
  background: #f2f2f2;
}

.cookie-modal-save {
  margin-top: 10px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 26px;
  border-radius: 24px;
  border: none;
  background: #23416A;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  transition: background 0.17s, color 0.17s;
}
.cookie-modal-save:hover, .cookie-modal-save:focus {
  background: #E89F3C;
  color: #23416A;
}

/* === Responsive Design === */
@media (max-width: 1200px) {
  .container {
    max-width: 94vw;
  }
}
@media (max-width: 930px) {
  .footer-contact {
    margin-top: 22px;
  }
  footer .container {
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
  }
  .footer-social {
    margin: 12px 0 0 0;
  }
}
@media (max-width: 800px) {
  .content-wrapper {
    gap: 0;
  }
  .hero {
    padding: 42px 0 50px 0;
    border-radius: 0 0 18px 18px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .section {
    padding: 30px 8px;
    margin-bottom: 36px;
  }
  .hero {
    padding: 28px 0 38px 0;
    border-radius: 0 0 12px 12px;
  }
  .card-container,
  .features ul,
  .services ul,
  .content-grid,
  .testimonials .content-wrapper {
    flex-direction: column;
    gap: 18px !important;
  }
  .testimonial-card, .card {
    min-width: 0;
    max-width: 100%;
    padding: 16px 14px;
  }
  .footer-bottom {
    padding-bottom: 18px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .quick-links {
    gap: 8px;
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 540px) {
  html {
    font-size: 14px;
  }
  .container {
    padding: 0 4px;
  }
  header .container {
    padding: 10px 4px;
  }
  .hero {
    padding: 14px 0 15px 0;
  }
}

/* === Utilities === */
.mt-32 { margin-top: 32px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mt-16 { margin-top: 16px !important; }
.mb-16 { margin-bottom: 16px !important; }
.center { text-align: center !important; }
.flex-row {
  display: flex;
  flex-direction: row;
  gap: 20px;
}
.flex-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* === Minimal Micro-interactions === */
a, .cta-button, button, .main-nav a, .mobile-nav a {
  transition: color 0.15s, background 0.15s, box-shadow 0.16s, border-color 0.13s;
}
section, .card, .testimonial-card {
  transition: box-shadow 0.24s;
}

/* === Minimal Custom Scrollbar for Desktop === */
@media (min-width: 900px) {
  ::-webkit-scrollbar { width: 10px; background: #F3F5F7; }
  ::-webkit-scrollbar-thumb { background: #e0e2e9; border-radius: 5px; }
  ::-webkit-scrollbar-thumb:hover { background: #E89F3C; }
}

/* === Accessibility Enhancements === */
[tabindex]:focus, a:focus-visible, button:focus-visible {
  box-shadow: 0 0 0 3px #E89F3C77;
}

/* === Hide outline if not keyboard === */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}
