/* ----------------------------------------
   CSS RESET & BASELINE
---------------------------------------- */
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, main, 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;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #1A2330;
  background: #F5F7FA;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  layout-flow: column;
  display: flex;
  flex-direction: column;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #12335B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #0A223F;
  text-decoration: underline;
}
ul, ol {
  margin-left: 1.2em;
  margin-bottom: 1em;
  padding-left: 1.1em;
}
li {
  margin-bottom: 0.5em;
}
strong, b {
  font-weight: 600;
}
hr {
  border: 0;
  border-bottom: 1px solid #d1dae7;
  margin: 32px 0;
}
.hidden {
  display: none !important;
}


/* ----------------------------------------
   TYPOGRAPHY
---------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: #12335B;
  margin-bottom: 16px;
  font-weight: 700;
  line-height: 1.18;
}
h1 {
  font-size: 2.4rem;
  margin-top: 0;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
p, .subheadline {
  font-size: 1rem;
  margin-bottom: 16px;
}
.subheadline {
  color: #486490;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
  margin-bottom: 28px;
}

/* ----------------------------------------
   LAYOUT CONTAINERS
---------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(18, 51, 91, 0.06);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(18, 51, 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;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  color: #163152;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(18, 51, 91, 0.09);
  padding: 20px;
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 400px;
  transition: box-shadow 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 20px rgba(18, 51, 91, 0.13);
}
.testimonial-card strong {
  color: #1A2330;
  font-size: 0.97em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Specific layouts for sliders and lists */
.testimonial-slider,
.testimonial-list,
.service-highlights,
.service-list,
.blog-post-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.service-card {
  background: #fff;
  border-radius: 13px;
  padding: 22px 20px;
  margin-bottom: 20px;
  flex: 1 1 260px;
  max-width: 320px;
  box-shadow: 0 2px 8px rgba(18,51,91,0.08);
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-card:hover {
  box-shadow: 0 6px 24px rgba(18, 51, 91, 0.13);
}
.price {
  margin-top: 5px;
  color: #12335B;
  font-weight: bold;
  font-size: 1.07em;
}

/* Cards for blog posts */
.blog-post-grid article {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(18,51,91,0.07);
  padding: 18px 16px 16px 16px;
  min-width: 220px;
  max-width: 350px;
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  gap: 10px;
  transition: box-shadow 0.2s;
}
.blog-post-grid article:hover {
  box-shadow: 0 5px 18px rgba(18,51,91,0.10);
}

.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}
.blog-categories span {
  font-size: 0.95em;
  color: #486490;
  background: #e9eef8;
  padding: 3px 10px;
  border-radius: 6px;
}

form, .contact-details, .team-intro {
  margin-bottom: 20px;
}
.form-note, .data-privacy-note {
  font-size: 0.95em;
  color: #446175;
  margin-top: 17px;
}


/* ----------------------------------------
   MAIN NAVIGATION & HEADER
---------------------------------------- */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 3px 16px 0 rgba(18,51,91,0.04);
  z-index: 40;
  position: sticky;
  top: 0;
}
.main-nav {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 0 20px;
  height: 82px;
}
.main-nav > a {
  display: flex;
  align-items: center;
  height: 54px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #12335B;
  margin-right: 9px;
  padding: 0 10px;
  border-radius: 7px;
  transition: background .17s, color .17s;
}
.main-nav > a.button-primary {
  margin-left: auto;
  background: #12335B;
  color: #fff !important;
  font-weight: bold;
  padding: 0 22px;
  height: 40px;
  font-size: 1.07rem;
  border-radius: 9px;
  box-shadow: 0 2px 10px rgba(18,51,91,.08);
}
.main-nav > a.button-primary:hover,
.main-nav > a.button-primary:focus {
  background: #1b4176;
  box-shadow: 0 3px 17px rgba(18,51,91,.13);
}
.main-nav > a:not(.button-primary):hover,
.main-nav > a:not(.button-primary):focus {
  background: #e7eef6;
  color: #1B4176;
}
.main-nav > a:first-child img {
  width: 46px;
  margin-top: 2px;
  margin-right: 14px;
  vertical-align: middle;
}

/* Hamburger button for mobile */
.mobile-menu-toggle {
  display: none;
  background: #12335B;
  color: #fff;
  border: 0;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  position: absolute;
  top: 16px;
  right: 20px;
  cursor: pointer;
  z-index: 102;
  transition: background 0.2s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #1b4176;
}

/* Mobile Menu Styles */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  background: #F5F7FA;
  box-shadow: 0 8px 28px rgba(18,51,91,0.12);
  position: fixed;
  top: 0;
  right: 0;
  width: 86vw;
  max-width: 335px;
  height: 100vh;
  padding: 32px 24px 24px 32px;
  transform: translateX(102%);
  z-index: 200;
  transition: transform 0.28s cubic-bezier(.65,.01,.48,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #12335B;
  align-self: flex-end;
  margin-bottom: 24px;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #12335B;
  font-weight: 500;
  background: #fff;
  border-radius: 7px;
  padding: 12px 8px 12px 16px;
  box-shadow: 0 1px 4px rgba(18,51,91,0.08);
  transition: background .19s, color .18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #e7eef6;
  color: #0A223F;
}

/* Overlay when mobile menu is open */
body.menu-open::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(18,51,91,0.30);
  z-index: 10;
  pointer-events: all;
  animation: fadeInBg 0.28s;
}
@keyframes fadeInBg {
  from { opacity: 0; } to { opacity: 1; }
}

/* Hide main nav and show burger on mobile */
@media (max-width: 980px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 980px) {
  header {
    min-height: 68px;
  }
}

/* ----------------------------------------
   HERO SECTIONS & HEADINGS
---------------------------------------- */
.hero {
  background: #12335B url('../assets/hero-bg.svg') no-repeat bottom right;
  background-size: cover;
  color: #fff;
  min-height: 280px;
  display: flex;
  align-items: center;
  margin-bottom: 0;
  padding: 50px 0 44px 0;
}
.hero h1,
.hero .subheadline {
  color: #fff;
}
.hero .button-primary {
  margin-top: 18px;
}

/* ----------------------------------------
   FEATURES & SERVICES
---------------------------------------- */
.features, .services {
  background: #fff;
}
.features ul,
.services ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  list-style: none;
  margin: 0;
  padding: 0;
}
.features ul li, .services ul li {
  background: #f5f7fa;
  border-radius: 11px;
  padding: 20px 18px 16px 18px;
  box-shadow: 0 1px 7px rgba(18,51,91,0.07);
  min-width: 180px;
  max-width: 320px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  font-size: 1em;
}
.features ul li img {
  width: 34px;
  margin-bottom: 8px;
}
.features ul li strong {
  color: #12335B;
  font-size: 1.08em;
  margin-bottom: 7px;
}

/* ----------------------------------------
   TESTIMONIALS SECTIONS
---------------------------------------- */
.testimonials {
  background: #e9eef8;
}
.testimonial-slider,
.testimonial-list {
  gap: 28px;
}
.testimonial-card {
  background: #fff;
  color: #12335B;
  min-width: 220px;
  max-width: 410px;
  margin-bottom: 20px;
  border-left: 5px solid #12335B;
  padding: 26px 22px;
  box-shadow: 0 2px 10px rgba(18,51,91,0.08);
  transition: box-shadow 0.2s;
}
.testimonial-card p {
  color: #163152;
  font-size: 1.05em;
}
.star-rating {
  font-size: 1.12em;
  letter-spacing: 1.5px;
  color: #FFCF4F;
  margin-bot: 5px;
}

/* ----------------------------------------
   CALL-TO-ACTION SECTION
---------------------------------------- */
.cta {
  background: #12335B;
  color: #fff;
}
.cta h2, .cta h1, .cta p, .cta a {
  color: #fff;
}
.cta .button-primary {
  background: #FFCF4F;
  color: #12335B !important;
  margin-top: 14px;
}
.cta .button-primary:hover {
  background: #F8D869;
}

/* ----------------------------------------
   BUTTONS
---------------------------------------- */
.button-primary, a.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #12335B;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 30px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(18,51,91,.07);
  transition: background 0.18s, box-shadow 0.18s, color 0.17s;
  outline: none;
}
.button-primary:hover, .button-primary:focus,
a.button-primary:hover, a.button-primary:focus {
  background: #1b4176;
  color: #fff;
  box-shadow: 0 3px 17px rgba(18,51,91,.18);
}
.button-secondary, a.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFCF4F;
  color: #12335B;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 11px 22px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(18,51,91,.06);
  transition: background 0.16s, box-shadow 0.17s, color 0.13s;
}
.button-secondary:hover, .button-secondary:focus,
a.button-secondary:hover, a.button-secondary:focus {
  background: #ffe48d;
  color: #0A223F;
}
.button-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ----------------------------------------
   FOOTER
---------------------------------------- */
footer {
  background: #122742;
  color: #fff;
  padding: 36px 0 18px 0;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.footer-nav {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.footer-nav a {
  color: #D9E1ED;
  font-size: 0.98em;
  font-family: 'Open Sans', Arial, sans-serif;
  transition: color 0.14s;
}
.footer-nav a:hover {
  color: #FFCF4F;
  text-decoration: underline;
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.99em;
  gap: 9px;
  color: #fff;
}
.footer-brand img {
  width: 34px;
}

/* ----------------------------------------
   LEGAL & TEXT SECTIONS
---------------------------------------- */
.legal .text-section,
.about .text-section {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 5px rgba(18,51,91,0.06);
  padding: 28px 18px;
  margin-bottom: 24px;
}
.text-section h2,
.text-section h3 {
  margin-top: 19px;
}
.team-intro {
  background: #F5F7FA;
  border-radius: 10px;
  margin-top: 18px;
  padding: 13px 14px;
  font-size: 1em;
}
.contact-details dl {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-details dt {
  font-weight: bold;
  color: #12335B;
}
.contact-details dd {
  margin-left: 0;
  margin-bottom: 8px;
}

/* ----------------------------------------
   COOKIE CONSENT BANNER & MODAL
---------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  color: #163152;
  box-shadow: 0 -4px 24px rgba(18,51,91,0.17);
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 20px 16px 20px;
  font-size: 1em;
  animation: bannerSlideUp 0.32s cubic-bezier(.18,.63,.54,1);
}
@keyframes bannerSlideUp {
  from { transform: translateY(75px); opacity: 0 }
  to   { transform: none; opacity: 1 }
}
.cookie-banner .button-group {
  margin-top: 8px;
}
.cookie-banner .cookie-button {
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 7px;
  padding: 8px 18px;
  font-size: 1rem;
  border: none;
  margin: 0 6px;
  background: #f5f7fa;
  color: #12335B;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(18,51,91, 0.08);
  transition: background 0.16s, color 0.13s;
}
.cookie-banner .cookie-button.accept {
  background: #FFCF4F;
  color: #12335B;
  font-weight: bold;
}
.cookie-banner .cookie-button.accept:hover,
.cookie-banner .cookie-button.accept:focus {
  background: #ffe48d;
}
.cookie-banner .cookie-button.reject {
  background: #e7eef6;
}
.cookie-banner .cookie-button.reject:hover,
.cookie-banner .cookie-button.reject:focus {
  background: #d1dae7;
}
.cookie-banner .cookie-button.settings {
  background: #f5f7fa;
}
.cookie-banner .cookie-button.settings:hover,
.cookie-banner .cookie-button.settings:focus {
  background: #e9eef8;
}

.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18,51,91,0.35);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  animation: fadeInBg .24s;
}
.cookie-modal {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 94vw;
  width: 420px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 28px rgba(18,51,91,0.17);
  padding: 34px 30px 22px 30px;
  z-index: 10002;
  animation: modalDropIn .3s cubic-bezier(.18,.63,.54,1);
}
@keyframes modalDropIn {
   from {transform: scale(0.97) translateY(30px); opacity: 0;}
   to {transform: none; opacity: 1;}
}
.cookie-modal h2 {
  font-size: 1.3rem;
  color: #12335B;
}
.cookie-category {
  display: flex;
  align-items: center;
  padding: 11px 0;
  gap: 15px;
  border-bottom: 1px solid #e7eef6;
}
.cookie-category-label {
  flex: 1 1 auto;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #1A2330;
  font-size: 1.07em;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  background: #e7eef6;
  border-radius: 16px;
  position: relative;
  outline: none;
  transition: background .16s;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: #FFCF4F;
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(18,51,91,0.10);
  transition: left .14s;
}
.cookie-toggle:checked:before {
  left: 18px;
}
.cookie-category.essential .cookie-toggle {
  opacity: 0.45;
  pointer-events: none;
}
.cookie-modal .button-group {
  margin-top: 8px;
}
.cookie-modal .cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #163152;
  position: absolute;
  top: 16px;
  right: 22px;
  cursor: pointer;
  z-index: 10003;
}

/* ----------------------------------------
   MEDIA QUERIES (Responsive - Mobile First)
---------------------------------------- */
@media (max-width: 900px) {
  .container { max-width: 98vw; }
  .main-nav { gap: 7px; }
  .content-wrapper { gap: 17px; }
  .footer-nav { gap: 14px; }
  .blog-post-grid, .service-list, .service-highlights,
  .testimonial-slider, .testimonial-list, .features ul, .services ul {
    gap: 14px;
  }
  .testimonial-card, .service-card, .features ul li, .blog-post-grid article {
    min-width: 168px;
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .section { padding: 24px 6px; margin-bottom: 33px; }
  .container { padding: 0 7px; }
  .hero { padding: 32px 0 28px 0; min-height: 190px; }
  .footer-brand { font-size: 0.92em; }
  .content-wrapper { gap: 11px; }
  .main-nav, .footer-nav { padding: 0 7px; }
  .blog-categories { gap: 6px; }
  .testimonial-card, .service-card, .features ul li, .blog-post-grid article {
    padding: 15px 10px;
    min-width: 120px;
  }
}
@media (max-width: 640px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.12rem; }
  h3 { font-size: 1.05rem; }
  .main-nav > a { font-size: 0.98em; padding: 0 7px; }
  .testimonial-card,
  .service-card,
  .features ul li,
  .blog-post-grid article {
    min-width: 92vw;
    max-width: 97vw;
    padding: 11px 6px;
    font-size: 0.96em;
  }
  .footer-brand { gap: 6px; }
  .cookie-modal { padding: 22px 7px; width: 97vw; }
}
@media (max-width: 510px) {
  .main-nav > a.button-primary, .button-primary, .button-secondary, a.button-primary, a.button-secondary {
    padding: 11px 7px;
    font-size: .96rem;
  }
  .footer-brand img { width: 25px; }
}
@media (max-width: 768px) {
  .content-grid, .text-image-section, .features ul, .service-highlights, .service-list, .testimonial-slider, .testimonial-list, .blog-post-grid {
    flex-direction: column;
    gap: 17px;
  }
}


/* ----------------------------------------
   UTILITIES & MICRO-INTERACTIONS
---------------------------------------- */
::-webkit-selection, ::selection {
  background: #FFCF4F;
  color: #12335B;
}
section:target {
  animation: highlightSection 1s;
}
@keyframes highlightSection {
  0% { background-color: #FFCF4F44; }
  80% { background-color: transparent; }
  100% { background-color: transparent; }
}

/* Subtle shadow on focus */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px #FFCF4F;
  border-radius: 5px;
}

/* ----------- END OF CSS --------------- */
