/* =======================
   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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F5F6F7;
  color: #212529;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #174664;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #FFB300;
  outline: none;
}
ul, ol {
  list-style: none;
}

/* ==================
   BRAND TYPOGRAPHY
   ================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #174664;
  margin-bottom: 16px;
  font-weight: 700;
  line-height: 1.2;
}
h1 {
  font-size: 2.25rem; /* 36px */
  margin-bottom: 24px;
}
h2 {
  font-size: 1.5rem; /* 24px */
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem; /* 20px */
  margin-bottom: 12px;
}
h4 {
  font-size: 1.125rem; /* 18px */
  margin-bottom: 8px;
}
p, li {
  color: #334150;
  font-size: 1rem; /* 16px */
}
strong {
  font-weight: 700;
}

/* TYPOGRAPHY SCALE FOR CORPORATE HIERARCHY */
@media (min-width: 992px) {
  h1 { font-size: 2.75rem; /* 44px */}
  h2 { font-size: 2rem; /* 32px */}
  h3 { font-size: 1.5rem; /* 24px */}
  h4 { font-size: 1.25rem; /* 20px */}
}

/* =====================
   STRUCTURED LAYOUTS
   ===================== */
.container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(23,70,100,0.04);
}
@media (max-width: 768px) {
  .section {
    padding: 24px 4px;
    margin-bottom: 36px;
    border-radius: 10px;
  }
}

/* ==================
   HEADER & NAV
   ================== */
header {
  background: #fff;
  border-bottom: 1px solid #e3e8ee;
  box-shadow: 0 1px 5px rgba(23,70,100,0.02);
  position: relative;
  z-index: 100;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}
.main-nav > a img {
  height: 38px;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 14px;
}
.main-nav li {
  margin-bottom: 0 !important;
}
.main-nav ul li a {
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 500;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #174664;
  transition: background 0.14s, color 0.18s;
}
.main-nav ul li a:hover,
.main-nav ul li a:focus {
  background: #F5F6F7;
  color: #FFB300;
}
.main-nav .btn-primary {
  margin-left: 18px;
}
@media (max-width: 991px) {
  .main-nav ul {
    gap: 7px;
  }
  .main-nav .btn-primary {
    margin-left: 8px;
  }
}

/* =======================
   BUTTONS & INTERACTIONS
   ======================= */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 32px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(23,70,100,0.07);
  transition: background 0.24s, color 0.21s, box-shadow 0.18s;
  text-align: center;
  outline: none;
  margin-top: 8px;
  min-width: 180px;
}
.btn-primary {
  background: #174664;
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #FFB300;
  color: #174664;
  box-shadow: 0 4px 14px rgba(255, 179, 0, 0.12);
}
.btn-secondary {
  background: transparent;
  color: #174664;
  border: 2px solid #174664;
}
.btn-secondary:hover,
.btn-secondary:focus {
  border-color: #FFB300;
  color: #FFB300;
}

/* ===============
   HERO SECTION
   =============== */
.hero {
  background: linear-gradient(90deg, #174664 75%, #EDF2FB 150%);
  color: #fff;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 8px 22px rgba(23,70,100,0.11);
  padding: 56px 0 36px 0;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero .content-wrapper {
  color: #fff;
  gap: 20px;
}
.hero h1 {
  color: #fff;
}
.hero p {
  color: #F5F6F7;
  font-size: 1.18rem;
}
.hero .btn-primary {
  background: #FFB300;
  color: #174664;
}
.hero .btn-primary:hover {
  background: #fff;
  color: #174664;
}
@media (max-width: 768px) {
  .hero {
    border-radius: 0 0 16px 16px;
    padding: 34px 0 18px 0;
  }
}

/* ====================
   FEATURE / SERVICES
   ==================== */
.feature-grid, .service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: stretch;
}
.feature-grid > div, .service-card {
  background: #F5F6F7;
  color: #174664;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(23,70,100,0.07);
  padding: 30px 20px;
  min-width: 260px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  position: relative;
}
.feature-grid img, .service-card img {
  width: 40px;
  height: 40px;
}
.feature-grid h3, .service-card h2 {
  color: #174664;
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.feature-grid p, .service-card p {
  color: #334150;
  font-size: 1rem;
}
.service-card .price {
  margin-top: 10px;
  font-size: 1.05rem;
  color: #174664;
  font-weight: 600;
}
@media (max-width: 900px) {
  .feature-grid, .service-cards {
    flex-direction: column;
    gap: 20px;
  }
}

/* ============================
   PROCESS/STEPS - FLEX ONLY
   ============================ */
.process-steps, .step-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  flex-direction: column;
  margin-bottom: 20px;
  padding-left: 0;
}
.process-steps li, .step-timeline li {
  display: flex;
  align-items: center;
  background: #F5F6F7;
  border-radius: 10px;
  padding: 18px 18px;
  margin-bottom: 0;
  gap: 18px;
  box-shadow: 0 2px 6px rgba(23,70,100,0.05);
  position: relative;
  font-size: 1rem;
}
.process-steps img, .step-timeline img {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.process-steps strong, .step-timeline strong {
  color: #174664;
  font-size: 1.05rem;
  font-weight: 600;
  margin-right: 2px;
}
@media (min-width: 768px) {
  .process-steps, .step-timeline {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
  }
  .process-steps li, .step-timeline li {
    flex: 1 1 205px;
    max-width: 350px;
  }
}

/* ========================
   TESTIMONIALS & SLIDER
   ======================== */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 8px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 24px;
  min-width: 250px;
  background: #F5F6F7;
  color: #174664;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(23,70,100,0.10);
  margin-bottom: 20px;
  position: relative;
  min-height: 160px;
}
.testimonial-card p {
  color: #212529;
  font-size: 1.12rem;
  font-style: italic;
  letter-spacing: 0.02em;
}
.testimonial-card span {
  color: #174664;
  font-weight: 600;
  font-size: 0.96rem;
}
.stars {
  color: #FFB300;
  font-size: 1.05rem;
  letter-spacing: 0.15em;
}
@media (max-width: 900px) {
  .testimonial-slider {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-card {
    padding: 18px 10px;
  }
}

/* ===============
   CTA SECTION
   =============== */
.cta {
  background: #174664;
  color: #fff;
  text-align: left;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(23,70,100,0.07);
  padding: 40px 20px;
  margin-bottom: 60px;
}
.cta h2, .cta p {
  color: #fff;
}
.cta a.btn-primary {
  background: #FFB300;
  color: #174664;
  margin-top: 16px;
}
.cta a.btn-primary:hover {
  background: #fff;
  color: #174664;
}

/* ===========
   FAQ ACCORDION
   =========== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}
.faq-item {
  background: #F5F6F7;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(23,70,100,0.06);
  padding: 18px 18px;
  margin-bottom: 0;
  transition: box-shadow 0.15s;
}
.faq-item:hover, .faq-item:focus-within {
  box-shadow: 0 2px 18px rgba(23,70,100,0.08);
}
.faq-item h2 {
  color: #174664;
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.faq-item p {
  color: #334150;
  font-size: 0.98rem;
}
.quick-links {
  margin-top: 8px;
}
.quick-links ul {
  gap: 10px;
  display: flex;
  flex-direction: column;
}
.contact-prompt p {
  margin-top: 22px;
}
.contact-prompt .btn-secondary {
  margin-top: 10px;
  min-width: 160px;
}

/* ================
   BLOG PREVIEWS
   ================ */
.blog-article-previews {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.blog-article-previews article {
  background: #F5F6F7;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(23,70,100,0.05);
  padding: 18px 22px;
}
.blog-article-previews h2 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.blog-article-previews p {
  color: #334150;
}
@media (min-width: 800px) {
  .blog-article-previews {
    flex-direction: row;
  }
  .blog-article-previews article {
    flex: 1 1 240px;
    margin-bottom: 0;
  }
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.search-bar input[type="search"] {
  border: 1px solid #e3e8ee;
  border-radius: 7px;
  padding: 8px 16px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  transition: border-color 0.18s;
}
.search-bar input[type="search"]:focus {
  border-color: #174664;
  outline: none;
}
.categories-filter {
  margin-bottom: 18px;
  font-size: 1rem;
  color: #174664;
}
.categories-filter a {
  margin: 0 3px;
  color: #174664;
  font-weight: 500;
  border-radius: 3px;
  padding: 2px 8px;
}
.categories-filter a:hover {
  background: #FFB300;
  color: #174664;
}

/* ================
   TEAM SECTION
   ================ */
.team-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}
blockquote {
  border-left: 4px solid #174664;
  background: #F5F6F7;
  padding: 16px 24px;
  border-radius: 10px;
  font-style: italic;
  color: #174664;
  margin-top: 18px;
}
cite {
  display: block;
  margin-top: 8px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-style: normal;
  color: #334150;
  font-size: 1rem;
}

/* ================
   CONTACT SUMMARY
   ================ */
.contact-info-summary ul {
  gap: 8px;
  display: flex;
  flex-direction: column;
}
.contact-info-summary a {
  word-break: break-all;
  color: #174664;
  font-weight: 600;
}

/* ==================
   FOOTER & NAV
   ================== */
footer {
  background: #174664;
  color: #fff;
  padding: 26px 0 0 0;
  border-radius: 24px 24px 0 0;
  margin-top: 60px;
  font-size: 1rem;
  box-shadow: 0 -2px 22px rgba(23,70,100,0.09);
  position: relative;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer-nav {
  margin: 10px 0 13px 0;
}
.footer-nav a {
  color: #fff;
  font-weight: 500;
  padding: 0 7px;
  transition: color 0.15s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #FFB300;
}
footer img {
  height: 34px;
  margin-bottom: 6px;
}
footer p {
  color: #fff;
  font-size: 0.98rem;
  text-align: center;
  margin-bottom: 12px;
}
@media (max-width: 768px) {
  footer {
    border-radius: 12px 12px 0 0;
    margin-top: 38px;
    padding-bottom: 6px;
  }
}

/* ===================================================
   FLEXBOX UTILITY PATTERNS (per requirements)
   =================================================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 20px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(23,70,100,0.08);
  position: relative;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
}
.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;
}
@media (max-width: 768px) {
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =============
   RESPONSIVE
   ============= */
@media (max-width: 1100px) {
  .container {
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .content-wrapper {
    gap: 14px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 5px;
  }
}

/* =============
   MOBILE MENU
   ============= */
.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  display: none;
}
@media (max-width: 991px) {
  .main-nav ul, .main-nav .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 2100;
    width: 46px;
    height: 46px;
    background: #174664;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(23,70,100,0.12);
    cursor: pointer;
    transition: background 0.21s, color 0.14s;
    outline: none;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: #FFB300;
    color: #174664;
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    z-index: 2200;
    background: rgba(23,70,100,0.98);
    transform: translateX(100%);
    transition: transform 0.33s cubic-bezier(.48,.01,.12,.99);
    box-shadow: 0 0 34px 6px rgba(23,70,100,0.10);
  }
  .mobile-menu.open {
    transform: translateX(0%);
  }
  .mobile-menu-close {
    position: absolute;
    top: 26px;
    right: 26px;
    width: 36px;
    height: 36px;
    background: #FFB300;
    color: #174664;
    font-size: 2rem;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(255,179,0,0.13);
    cursor: pointer;
    z-index: 2220;
    transition: background 0.21s, color 0.14s;
    outline: none;
  }
  .mobile-menu-close:hover {
    background: #fff;
    color: #174664;
  }
  .mobile-nav {
    margin: 90px 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
    padding-left: 34px;
  }
  .mobile-nav a {
    color: #fff;
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 14px 0;
    border-radius: 6px;
    width: 90vw;
    transition: background 0.13s, color 0.14s;
  }
  .mobile-nav a:hover, .mobile-nav a:focus {
    background: #FFB300;
    color: #174664;
  }
}

/* =========================
   COOKIE CONSENT BANNER
   ========================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 8000;
  background: #fff;
  color: #174664;
  border-top: 2px solid #174664;
  box-shadow: 0 -2px 24px rgba(23,70,100,0.12);
  padding: 24px 14px 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  font-size: 1rem;
  transition: transform 0.3s cubic-bezier(.45,.83,.46,.94);
  transform: translateY(100%);
}
.cookie-banner.show {
  transform: translateY(0%);
}
.cookie-banner p {
  color: #174664;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.cookie-banner .cookie-btns button,
.cookie-banner .cookie-btns .btn-secondary {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 22px;
  border: none;
  background: #174664;
  color: #fff;
  margin-right: 4px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cookie-banner .cookie-btns button:hover, .cookie-banner .cookie-btns button:focus,
.cookie-banner .cookie-btns .btn-secondary:hover {
  background: #FFB300;
  color: #174664;
}
.cookie-banner .cookie-btns .btn-secondary {
  background: #fff;
  color: #174664;
  border: 2px solid #174664;
}
.cookie-banner .cookie-btns .btn-secondary:hover {
  border-color: #FFB300;
  color: #FFB300;
}

/* Cookie Preferences Modal */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 9000;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(23,70,100,0.38);
  display: none;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.22s;
}
.cookie-modal-backdrop.active {
  display: flex;
}
.cookie-modal {
  z-index: 9050;
  background: #fff;
  color: #174664;
  border-radius: 18px;
  box-shadow: 0 8px 32px 0 rgba(23,70,100,0.17);
  max-width: 425px;
  width: 94vw;
  padding: 36px 24px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeUp 0.33s cubic-bezier(.48,.01,.12,.99);
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  color: #174664;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 9100;
  font-family: inherit;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #F5F6F7;
  border-radius: 8px;
  padding: 12px 14px;
}
.cookie-category label {
  flex: 1;
  color: #174664;
  font-weight: 500;
  font-size: 1rem;
}
.cookie-category input[type='checkbox'] {
  width: 22px;
  height: 22px;
  accent-color: #174664;
  margin-right: 0;
}
.cookie-category input[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes fadeUp {
  from {transform: translateY(50px); opacity: 0;} to {transform: translateY(0); opacity: 1;}
}

/* ==================
   SCROLLBAR & FOCUS
   ================== */
::-webkit-scrollbar {
  width: 10px;
  background: #EDF2FB;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb {
  background: #e3e8ee;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #c2c8d0;
}
:focus {
  outline:2px solid #FFB300;
  outline-offset:2px;
}

/* ===============
   UTILITIES
   =============== */
.mt-0 { margin-top: 0!important; }
.mb-0 { margin-bottom: 0!important; }
.mt-1 { margin-top: 8px!important; }
.mb-1 { margin-bottom: 8px!important; }
.mt-2 { margin-top: 16px!important; }
.mb-2 { margin-bottom: 16px!important; }
.mt-3 { margin-top: 24px!important; }
.mb-3 { margin-bottom: 24px!important; }

/* Visually hidden for accessibility */
.visually-hidden { 
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; 
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ===============
   FORMS
   =============== */
input[type='text'], input[type='email'], input[type='search'], textarea {
  border: 1px solid #e3e8ee;
  border-radius: 7px;
  padding: 10px 16px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  transition: border-color 0.18s;
  width: 100%;
}
input[type='text']:focus, input[type='email']:focus, input[type='search']:focus, textarea:focus {
  border-color: #174664;
  outline: none;
}

/* ===============
   Z-INDEX STACKS
   =============== */
header, .main-nav { z-index: 300; }
.mobile-menu { z-index: 2200; }
.cookie-banner { z-index: 8000; }
.cookie-modal-backdrop { z-index: 9000; }
.cookie-modal { z-index: 9050; }

/*
  === END OF CSS ===
*/
