/* RESET & BASE TYPOGRAPHY ------------------------------------------------*/
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #1A3962;
  background: linear-gradient(135deg, #f2f5fa 0%, #ffffff 70%);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #1A3962;
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.3rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; margin-bottom: 10px; }
p, ul, ol { font-size: 1rem; margin-bottom: 14px; }
strong { font-weight: 700; }
a {
  color: #1A3962;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #AA6B17;
  outline: none;
}
ul, ol {
  margin-left: 20px;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: none;
}

/* LAYOUT ELEMENTS ----------------------------------------------------------*/
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hero {
  align-items: center;
  text-align: center;
  padding: 36px 0 20px 0;
  background: linear-gradient(90deg, #f2f5fa 70%, #dde3ef 100%);
  border-radius: 18px;
  box-shadow: 0 4px 28px rgba(26,57,98,0.06);
}

/* FLEX LAYOUTS -------------------------------------------------------------*/
.features-grid,
.services,
.team-section,
.blog-posts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.features-grid .feature,
.services .feature,
.team-section .team-profile,
.blog-posts-grid > article {
  flex: 1 1 280px;
  min-width: 230px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(26,57,98,0.08);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow 0.25s, transform 0.25s;
}
.features-grid .feature:hover, .services .feature:hover, .team-section .team-profile:hover, .blog-posts-grid > article:hover {
  box-shadow: 0 8px 28px rgba(170,107,23,0.10);
  transform: translateY(-3px) scale(1.03);
}
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #f2f5fa;
  border-radius: 13px;
  box-shadow: 0 2px 8px rgba(26,57,98,0.08);
  padding: 20px;
  min-width: 250px;
  max-width: 350px;
  color: #1A3962;
  margin-bottom: 20px;
  font-size: 1rem;
}
.testimonial-card p {
  color: #1A3962;
  margin-bottom: 6px;
}
.testimonial-card strong {
  font-size: 0.98rem;
  color: #AA6B17;
}

.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;
  margin-bottom: 20px;
}
.card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  box-shadow: 0 4px 12px rgba(26,57,98,0.07);
  border-radius: 14px;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(170,107,23,0.09);
  transform: translateY(-2px) scale(1.015);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.categories-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}
.categories-list li {
  margin-bottom: 6px;
}
.categories-list a {
  background: #f2f5fa;
  color: #1A3962;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.96rem;
  transition: background 0.18s, color 0.18s;
}
.categories-list a:hover {
  background: #1A3962;
  color: #fff;
}

/* HEADER NAVIGATION --------------------------------------------------------*/
header {
  background: linear-gradient(90deg, #1A3962 80%, #D38A1D 100%);
  color: #fff;
  padding: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  min-height: 72px;
}
.logo img {
  max-height: 52px;
}
nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 1rem;
  position: relative;
  padding: 6px 4px;
  transition: color 0.19s;
}
nav a:hover, nav a:focus {
  color: #D38A1D;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 28px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-left: 20px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.17s, color 0.17s, box-shadow 0.22s;
}
.cta.primary {
  background: linear-gradient(90deg, #1A3962 80%, #AA6B17 120%);
  color: #fff;
  box-shadow: 0 2px 12px rgba(170,107,23,0.06);
  border: none;
}
.cta.primary:hover, .cta.primary:focus {
  background: linear-gradient(90deg, #AA6B17 40%, #1A3962 130%);
  color: #fff;
  box-shadow: 0 6px 22px rgba(170,107,23,0.18);
}
.cta.secondary {
  background: #fff;
  color: #1A3962;
  border: 2px solid #AA6B17;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #AA6B17;
  color: #fff;
  border-color: #1A3962;
  box-shadow: 0 4px 18px rgba(26,57,98,0.13);
}
.mobile-menu-toggle {
  display: none;
  background: #AA6B17;
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  margin-left: 20px;
  cursor: pointer;
  transition: background 0.15s;
  z-index: 200;
}
.mobile-menu-toggle:hover {
  background: #D38A1D;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #1A3962;
  box-shadow: 0 4px 60px rgba(26,57,98,0.30);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 30px 24px 24px 24px;
  z-index: 2500;
  transform: translateX(-102%);
  transition: transform 0.33s cubic-bezier(.77,0,.18,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.1rem;
  align-self: flex-end;
  padding: 10px 18px 16px 0;
  cursor: pointer;
  z-index: 1;
  transition: color 0.15s;
}
.mobile-menu-close:hover {
  color: #D38A1D;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin-top: 22px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.22rem;
  color: #fff;
  padding: 10px 0;
  width: 100%;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  transition: color 0.17s, background 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #AA6B17;
  background: rgba(211,138,29,0.12);
  border-radius: 5px;
}

/* FOOTER -------------------------------------------------------------------*/
footer {
  background: #1A3962;
  color: #fff;
  padding: 48px 0 16px 0;
  margin-top: 80px;
}
footer .container {
  flex-direction: column;
  gap: 30px;
}
.footer-logo-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 36px;
  margin-bottom: 18px;
}
.footer-logo-nav img {
  max-height: 44px;
  margin-bottom: 0;
}
.footer-logo-nav nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-logo-nav nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.87;
  transition: color 0.15s, opacity 0.15s;
}
.footer-logo-nav nav a:hover {
  color: #D38A1D;
  opacity: 1;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 8px;
}
.footer-legal a {
  color: #fff;
  font-size: 0.94rem;
  opacity: 0.76;
  transition: color 0.14s;
}
.footer-legal a:hover {
  color: #AA6B17;
  opacity: 1;
}
.brand-credits {
  color: #fff;
  font-size: 0.92rem;
  opacity: 0.70;
  margin-top: 10px;
}

/* FORMATTING STYLES --------------------------------------------------------*/
ul li, ol li {
  margin-bottom: 8px;
}
ul li img, ol li img {
  vertical-align: middle;
  margin-right: 10px;
  width: 22px;
  height: 22px;
}
.certs {
  font-size: 0.98rem;
  color: #AA6B17;
  margin-top: 10px;
  letter-spacing: 0.3px;
}

/* BLOG POST GRID -----------------------------------------------------------*/
.blog-posts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 22px;
}
.blog-posts-grid > article {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 3px 16px rgba(26,57,98,0.07);
  padding: 22px 20px;
  flex: 1 1 310px;
  min-width: 240px;
  transition: box-shadow 0.23s, transform 0.22s;
  margin-bottom: 20px;
}
.blog-posts-grid > article:hover {
  box-shadow: 0 10px 24px rgba(211,138,29,0.12);
  transform: translateY(-4px) scale(1.025);
}
.blog-posts-grid h3 {
  font-size: 1.13rem;
  margin-bottom: 8px;
}

/* MODALS & DIALOGS ---------------------------------------------------------*/
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #1A3962;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 10px 14px 10px;
  z-index: 9999;
  box-shadow: 0 -6px 32px rgba(26,57,98,0.13);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.37s cubic-bezier(.65,-0.01,.18,1);
}
.cookie-banner.show {
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner p {
  font-size: 1rem;
  margin-bottom: 0;
  color: #fff;
  text-align: center;
}
.cookie-actions {
  display: flex;
  gap: 18px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.cookie-actions button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 22px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  margin-bottom: 2px;
  transition: background 0.14s, color 0.14s, box-shadow 0.19s;
}
.cookie-actions .accept {
  background: #AA6B17;
  color: #fff;
  font-weight: 700;
}
.cookie-actions .accept:hover {
  background: #D38A1D;
}
.cookie-actions .reject {
  background: #fff;
  color: #1A3962;
  border: 1.3px solid #AA6B17;
  font-weight: 700;
}
.cookie-actions .reject:hover {
  background: #AA6B17;
  color: #fff;
}
.cookie-actions .settings {
  background: transparent;
  color: #fff;
  border: 1.3px solid #fff;
}
.cookie-actions .settings:hover {
  background: #D38A1D;
  color: #fff;
  border-color: #D38A1D;
}
.cookie-modal {
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  max-width: 430px;
  margin: 0 auto;
  background: #fff;
  color: #1A3962;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -4px 28px rgba(26,57,98,0.18);
  z-index: 10000;
  padding: 28px 30px 22px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(180px);
  transition: opacity 0.35s, transform 0.33s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-modal h3 {
  font-size: 1.22rem;
  margin-bottom: 14px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5em 0;
  border-bottom: 1px solid #edeff2;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-category label {
  font-size: 1rem;
  font-weight: 600;
}
.cookie-toggle {
  width: 36px;
  height: 20px;
  background: #f2f5fa;
  border-radius: 11px;
  position: relative;
  margin-left: 8px;
  display: inline-block;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-toggle span {
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: #AA6B17;
  border-radius: 50%;
  transition: left 0.18s, background 0.18s;
  pointer-events: none;
  z-index: 1;
}
.cookie-toggle input:checked + span {
  left: 18px;
  background: #1A3962;
}
.modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.modal-actions button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 22px;
  border-radius: 21px;
  border: none;
  transition: background 0.14s, color 0.14s;
  cursor: pointer;
}
.modal-actions .save {
  background: #AA6B17;
  color: #fff;
  font-weight: 700;
}
.modal-actions .close {
  background: #fff;
  color: #AA6B17;
  border: 1.2px solid #AA6B17;
}
.modal-actions .close:hover {
  background: #AA6B17;
  color: #fff;
}

/* RESPONSIVE MEDIA QUERIES -------------------------------------------------*/
@media (max-width: 1200px) {
  .container {
    max-width: 980px;
  }
}
@media (max-width: 992px) {
  .container {
    max-width: 820px;
  }
  .features-grid .feature, .services .feature, .team-section .team-profile, .blog-posts-grid > article {
    min-width: 180px;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  .container {
    max-width: 100%;
    padding: 0 6vw;
  }
  .section {
    margin-bottom: 40px;
    padding: 26px 5px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero {
    padding: 28px 0 10px 0;
    border-radius: 12px;
  }
  .features-grid, .services, .team-section, .blog-posts-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .features-grid .feature, .services .feature, .team-section .team-profile, .blog-posts-grid > article {
    min-width: 0;
    width: 100%;
    margin-bottom: 12px;
  }
  .testimonials {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    max-width: 100%;
    min-width: 0;
    font-size: 0.98rem;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  header .container {
    flex-direction: row;
    justify-content: space-between;
    padding: 0 10px;
  }
  nav { display: none; }
  .cta.primary, .cta.secondary { display: none; }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .footer-logo-nav {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .footer-legal {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .content-grid {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
}
@media (max-width: 520px) {
  html { font-size: 14px; }
  .section {
    margin-bottom: 28px;
    padding: 18px 2px;
  }
  .hero {
    padding: 18px 0 4px 0;
    border-radius: 8px;
  }
  .blog-posts-grid > article {
    padding: 12px 8px;
  }
  .cookie-modal {
    padding: 16px 10px 10px 10px;
    max-width: 99vw;
    border-radius: 12px 12px 0 0;
  }
}

/* UTILS & MICRO-INTERACTIONS -----------------------------------------------*/
.fade-in {
  animation: fadeIn 0.65s cubic-bezier(.56, .00, .18, 1) both;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-thumb {
  background: #e1e7f0;
  border-radius: 6px;
}
::-webkit-scrollbar-track {
  background: #fff;
}

/* ACCENT COLORED TEXT ------------------------------------------------------*/
.accent { color: #AA6B17; }

/* Z-INDEX LAYERS -----------------------------------------------------------*/
header, .mobile-menu, .cookie-banner, .cookie-modal { z-index: 50; }

/* ACCESSIBILITY ------------------------------------------------------------*/
:focus {
  outline: 2px solid #AA6B17;
  outline-offset: 2px;
}

/* PRINT / NOISE REDUCTION --------------------------------------------------*/
@media print {
  header, footer, .cookie-banner, .cookie-modal, .mobile-menu { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
}
