/* 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-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  background: #FAFBFC;
  color: #16364d;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 10px;
}
a {
  color: #18477A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #a3bde2;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 12px;
}
hr {
  border: 0;
  height: 1px;
  background: #e3e8f0;
  margin: 32px 0;
}
.button, .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #18477A;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 12px 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 3px 16px 0 rgba(24,71,122,0.07);
  transition: background 0.2s, box-shadow 0.3s, transform 0.2s;
  margin-top: 20px;
  text-shadow: none;
}
.button:hover, .btn-primary:hover, .button:focus, .btn-primary:focus {
  background: #28588f;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 24px 0 rgba(24,71,122,0.14);
}
.btn-primary:active {
  background: #16364d;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #18477A;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
  line-height: 1.18;
}
h1 { font-size: 2.25rem; margin-bottom: 20px; }
h2 { font-size: 1.5rem; margin-bottom: 16px; }
h3 { font-size: 1.16rem; margin-bottom: 12px; font-weight: 600; }
.subheadline {
  color: #579ad4;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 500;
  margin-bottom: 24px;
}
p, .content-wrapper > ul, .content-wrapper > ol {
  font-family: 'Roboto', Arial, sans-serif;
  color: #335169;
  font-size: 1rem;
  margin-bottom: 18px;
  letter-spacing: .01em;
}
strong {
  color: #18477A;
  font-weight: 700;
}
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #f8fafc;
  border-radius: 22px;
  box-shadow: 0 2px 12px 0 rgba(75, 125, 212, 0.07);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* HEADER & MAIN NAV */
header {
  background: #FBFAF8;
  border-bottom: 1px solid #e1e8f0;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 2px 18px 0 rgba(24,71,122,.04);
}
.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
  padding: 16px 0;
}
.main-nav img {
  height: 44px;
  margin-right: 18px;
  border-radius: 0;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #18477A;
  font-weight: 500;
  font-size: 1.08rem;
  margin-right: 2px;
  border-radius: 22px;
  padding: 6px 16px;
  transition: background 0.2s, color .2s;
  text-align: center;
}
.main-nav a:last-child { margin-right: 0; }
.main-nav a:hover, .main-nav a:focus {
  background: #e5eaf3;
  color: #28588f;
}
.main-nav .btn-primary {
  margin-left: auto;
  min-width: 150px;
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 28px;
  top: 22px;
  z-index: 101;
  font-size: 2rem;
  border: none;
  background: #ffd173;
  color: #18477A;
  border-radius: 12px;
  width: 48px;
  height: 44px;
  box-shadow: 0 2px 12px 0 rgba(255,209,115,0.08);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #ffe0a8;
  color: #28588f;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(250, 251, 252, 0.98);
  box-shadow: 0 0 40px 0 rgba(24,71,122,0.14);
  height: 100vh;
  width: 100vw;
  z-index: 120;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.76, .24, .42, .97);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 48px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #ffd173;
  border: none;
  font-size: 2rem;
  color: #18477A;
  border-radius: 12px;
  position: absolute;
  top: 24px;
  right: 28px;
  width: 48px;
  height: 44px;
  box-shadow: 0 2px 12px 0 rgba(255,209,115,0.12);
  z-index: 131;
  transition: background .2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #ffe0a8;
  color: #28588f;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 70px;
  width: 93vw;
  padding-left: 30px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  color: #18477A;
  background: #f3f6fa;
  border-radius: 17px;
  padding: 14px 20px;
  transition: background .18s, color .14s;
  min-width: 190px;
  margin-bottom: 4px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #ffd1731a;
  color: #28588f;
}
@media (max-width: 1023px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1024px) {
  .mobile-menu,
  .mobile-menu.open,
  .mobile-menu-close {
    display: none;
  }
  .main-nav {
    display: flex !important;
  }
}

/* HERO SECTION */
.hero {
  background: linear-gradient(145deg, #f6d9f4 0%, #f3f6fa 35%, #b2d6fc 100%);
  padding: 72px 0 42px 0;
  margin-bottom: 34px;
  box-shadow: 0 6px 24px 0 rgba(220, 197, 255, .08);
}
.hero .container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 17px;
}
.hero h1 {
  font-size: 2.5rem;
  color: #18477A;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.6px;
}
.hero .btn-primary {
  margin-top: 8px;
}

/* FEATURES SECTION */
.features {
  background: #f9f7fd;
  border-radius: 20px;
  padding: 40px 20px;
  box-shadow: 0 1px 7px 0 rgba(180,190,255,0.08);
  margin-bottom: 60px;
}
.features .content-wrapper > ul {
  font-size: 1.12rem;
  color: #327fa6;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-left: 0;
}
.features .content-wrapper > ul li {
  background: #f3faff;
  color: #16364d;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 18px;
  box-shadow: 0 1px 2px 0 rgba(75, 125, 212, 0.04);
}
.features .content-wrapper > ul li img {
  width: 30px;
  height: 30px;
  margin-right: 9px;
  border-radius: 0;
  flex-shrink: 0;
}

/* SERVICES & ABOUT */
.services, .services-overview, .about-section, .about-preview, .legal, .contact-section {
  background: #f3f6fa;
  border-radius: 20px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 2px 14px 0 rgba(140,164,190,0.05);
}
.services .content-wrapper > ul,
.services-overview .content-wrapper > ul,
.about-section .content-wrapper > ul {
  list-style: disc;
  color: #2c6388;
  gap: unset;
  background: none;
  font-size: 1.06rem;
}
.services .content-wrapper > ul li,
.services-overview .content-wrapper > ul li,
.about-section .content-wrapper > ul li {
  padding: 0 0 0 2px;
  background: none;
  border-radius: 0;
  margin-bottom: 9px;
}

.highlighted-story {
  background: #fef6fa;
  color: #155160;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(255,173,230,0.08);
  padding: 18px 22px;
  margin-bottom: 18px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
}

/* CARD, CARD CONTAINERS, FLEX PATTERNS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(75,125,212,0.07);
  min-width: 200px;
  margin-bottom: 20px;
  position: relative;
  padding: 28px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: box-shadow .18s, transform .18s;
}
.card:hover {
  box-shadow: 0 4px 24px 0 rgba(32,71,122,0.12);
  transform: translateY(-4px) scale(1.01);
}
.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;
}

/* TESTIMONIALS */
.testimonials, .testimonials-recent {
  padding: 38px 0 32px 0;
  background: #edfcf9;
  border-radius: 18px;
  margin-bottom: 60px;
  box-shadow: 0 1px 8px 0 rgba(78,186,183,.06);
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 10px 0 rgba(153,196,205,0.17);
  margin-bottom: 20px;
  max-width: 600px;
}
.testimonial-card p {
  color: #1A2842;
  font-size: 1.15rem;
  font-style: italic;
  font-family: 'Roboto', Arial, sans-serif;
  letter-spacing: .01em;
  margin-bottom: 7px;
}
.testimonial-card .reviewer {
  color: #18477A;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.03rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.testimonial-card .stars {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 6px;
}
.testimonial-card .stars img {
  width: 20px;
  height: 20px;
  border-radius: 0;
}

/* CONTACT DETAILS */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 13px;
  background: #f3faff;
  border-radius: 12px;
  padding: 16px 24px;
  margin: 22px 0 18px 0;
  font-size: 1rem;
}
.contact-details img {
  height: 22px;
  width: 22px;
  margin-right: 10px;
  border-radius: 0;
}
.contact-details a:hover {
  color: #3ab5ad;
  text-decoration: underline;
}

/* FOOTER */
footer {
  background: #F3F6FA;
  color: #214C70;
  border-top: 1px solid #dae7f5;
  margin-top: 40px;
  padding: 34px 0 22px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 18px;
}
.footer-nav a {
  color: #18477A;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 13px;
  padding: 4px 13px;
  transition: background .2s;
}
.footer-nav a:hover {
  background: #FFD173;
  color: #16364d;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: .95rem;
}
.footer-contact img {
  width: 19px;
  height: 19px;
  margin-right: 7px;
  border-radius: 0;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  font-size: .96rem;
  color: #678eb3;
}
.footer-brand img {
  width: 54px;
  height: auto;
  border-radius: 0;
  margin-bottom: 6px;
}

/* COOKIE CONSENT FIXED BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #e7f3ff;
  color: #18477A;
  z-index: 950;
  box-shadow: 0 0 24px 0 rgba(75,161,240,.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 8vw 15px 8vw;
  gap: 16px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.06rem;
  animation: fadeInCookie 1s cubic-bezier(.62,.42,.32,1.14);
}
@keyframes fadeInCookie {
  from { transform: translateY(65px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
  margin-top: 4px;
}
.cookie-banner .cookie-btn {
  padding: 10px 24px;
  background: #18477A;
  color: #fff;
  border: none;
  border-radius: 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: .98rem;
  margin-top: 0;
  cursor: pointer;
  transition: background .15s;
  box-shadow: 0 1px 8px rgba(24,71,122,0.06);
  min-width: 120px;
}
.cookie-banner .cookie-btn.secondary {
  background: #FFD173;
  color: #18477A;
}
.cookie-banner .cookie-btn.settings {
  background: #8ad7f7;
  color: #18477A;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #28588f;
  color: #fff;
}
.cookie-banner .cookie-btn.secondary:hover,
.cookie-banner .cookie-btn.secondary:focus {
  background: #ffe5a8;
  color: #18477A;
}
.cookie-banner .cookie-btn.settings:hover,
.cookie-banner .cookie-btn.settings:focus {
  background: #c1e8fb;
  color: #18477A;
}

/* COOKIE MODAL POPUP */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(1);
  z-index: 1002;
  background: #fff;
  color: #18477A;
  box-shadow: 0 12px 48px 0 rgba(22,71,122, 0.11);
  border-radius: 22px;
  min-width: 90vw;
  max-width: 410px;
  min-height: 240px;
  padding: 36px 23px 20px 23px;
  animation: fadeInCookieModal .45s cubic-bezier(.72,.04,.26,1.18);
  display: flex;
  flex-direction: column;
  gap: 22px;
  opacity: 1;
}
@keyframes fadeInCookieModal {
  from { transform: translate(-50%,30%) scale(.92); opacity:0; }
  to { transform: translate(-50%,-50%) scale(1); opacity:1; }
}
.cookie-modal .modal-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.27rem;
  font-weight: 700;
  margin-bottom: 3px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 1.01rem;
}
.cookie-category .cookie-switch {
  margin-left: 9px;
  accent-color: #18477A;
}
.cookie-category .alwayson {
  color: #adadad;
  font-size: 0.97em;
  margin-left: 7px;
}
.cookie-modal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 20px;
}
.cookie-modal .modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #18477A;
  position: absolute;
  right: 20px;
  top: 14px;
  cursor: pointer;
  padding: 4px;
}
.cookie-modal .modal-close:hover { color: #FFD173; }

/* Utility */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* LEGAL TEXT */
.legal {
  background: #f9f7fd;
  padding: 38px 22px;
  border-radius: 18px;
}
.legal h1, .legal h2 {
  color: #18477A;
  font-family: 'Montserrat', Arial, sans-serif;
}
.legal ul li {
  color: #2c6388;
  margin-bottom: 8px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
  h1 { font-size: 2rem; }
  .container { max-width: 98vw; }
  .footer-brand img { width: 42px; }
  .footer-brand { font-size: .9rem; }
}
@media (max-width: 768px) {
  .container { padding: 0 10px; }
  .footer-contact, .footer-brand, .footer-nav {
    align-items: flex-start;
  }
  .content-grid,
  .footer .container {
    flex-direction: column;
    gap: 22px;
  }
  .hero, .section, .features, .services, .services-overview, .about-section, .about-preview, .contact-section, .legal {
    padding: 25px 6px;
    margin-bottom: 36px;
    border-radius: 12px;
  }
  .card-container, .content-grid {
    gap: 12px;
  }
  .card {
    min-width: 100%;
    padding: 18px 12px 14px 12px;
    border-radius: 12px;
    margin-bottom: 14px;
  }
  .testimonials, .testimonials-recent {
    border-radius: 10px;
    margin-bottom: 40px;
    padding: 22px 2px 18px 2px;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.09rem; }
  .hero { padding: 36px 0 14px 0; }
  .content-wrapper { gap: 14px; }
  .footer-brand img { width: 38px; }
  .testimonials, .testimonials-recent {
    padding: 10px 3px 2px 3px;
  }
}
@media (max-width: 640px) {
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: center !important;
  }
}

/* VISUAL HIERARCHY AND EFFECTS */
.card, .testimonial-card, .about-section, .about-preview, .services-overview, .services, .features, .contact-section, .legal, .footer-brand, .cookie-modal{
  box-shadow: 0 2px 12px 0 rgba(142,156,238,0.07);
  border-radius: 18px;
}
.section, .services, .about-section, .features, .contact-section {
  margin-bottom: 60px;
}

/* MICRO-INTERACTIONS */
.btn-primary, .button, .cookie-btn {
  transition: background 0.2s, box-shadow 0.2s, transform 0.18s;
}
/* Subtle fade-in for main content wrappers */
main > section, .content-wrapper {
  animation: fadeInSection 0.65s cubic-bezier(.47,1.64,.41,.8) both;
}
@keyframes fadeInSection {
  from { opacity: 0; transform: translateY(24px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* SCROLLBAR FOR MODALS & NAV */
.mobile-menu, .cookie-modal {
  scrollbar-width: thin;
  scrollbar-color: #ffd173 #fafbfc;
}
.mobile-menu::-webkit-scrollbar, .cookie-modal::-webkit-scrollbar {
  width: 7px;
}
.mobile-menu::-webkit-scrollbar-thumb, .cookie-modal::-webkit-scrollbar-thumb {
  background: #ffd173;
  border-radius: 8px;
}
.mobile-menu::-webkit-scrollbar-track, .cookie-modal::-webkit-scrollbar-track {
  background: #fafbfc;
}

/* CUSTOM FONT IMPORTS */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,500,600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');
