/* ---------------------------------------------------
   CSS RESET & NORMALIZE (Modern CSS Reset)           
-----------------------------------------------------*/
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 {
  height: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #F5F5F5;
  color: #1A2535;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  font-size: 1rem;
  position: relative;
}
*, *:before, *:after {
  box-sizing: inherit;
}
ol, ul {
  list-style: none;
}
a {
  color: #274472;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #B20005;
  outline-offset: 2px;
}
button, input[type="submit"] {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}
img {
  max-width: 100%;
  display: block;
}

/* ----------------------------------
   BRANDING & TYPOGRAPHY
-----------------------------------*/
:root {
  --primary: #274472;
  --primary-hover: #193153;
  --secondary: #ffffff;
  --accent: #B20005;
  --accent-hover: #D0262B;
  --gray-light: #F5F5F5;
  --gray-medium: #e2e6ea;
  --gray-dark: #76849b;
  --heading-font: 'Montserrat', Arial, Helvetica, sans-serif;
  --body-font: 'Roboto', Arial, Helvetica, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  color: #1A2535;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  letter-spacing: -1px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}
p, ul, ol {
  font-family: var(--body-font);
  color: #3E4765;
  font-size: 1rem;
  margin-bottom: 12px;
}
strong {
  font-weight: 600;
}

/* Typography sizing for responsive scale */
@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

/* ----------------------------------
   LAYOUT & STRUCTURE - FLEXBOX ONLY
-----------------------------------*/
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--secondary);
  border-radius: 14px;
  box-shadow: 0 2px 16px 0 rgba(39, 68, 114, 0.06);
}

/* Cards */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--secondary);
  border-radius: 10px;
  box-shadow: 0 2px 10px 0 rgba(39,68,114,0.05);
  padding: 28px 22px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 6px 24px 0 rgba(39,68,114,0.12);
  transform: translateY(-4px);
}

.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) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* Utility Gaps */
.gap-20 { gap: 20px; }
.mb-32 { margin-bottom: 32px; }
.mb-20 { margin-bottom: 20px; }

/* ----------------------------------
   NAVIGATION & HEADER
-----------------------------------*/
header {
  background: var(--primary);
  color: var(--secondary);
  box-shadow: 0 2px 12px 0 rgba(39,68,114,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
  min-height: 72px;
}
header nav a {
  color: var(--secondary);
  font-family: var(--heading-font);
  font-size: 1rem;
  font-weight: 500;
  padding: 10px 10px;
  border-radius: 5px;
  transition: background 0.2s, color 0.2s;
}
header nav a.cta-primary {
  background: var(--accent);
  color: #fff;
  padding: 10px 22px;
  border-radius: 7px;
  font-weight: 700;
  box-shadow: 0 2px 8px 0 rgba(178,0,5,0.08);
  transition: background .18s;
  margin-left: 10px;
}
header nav a.cta-primary:hover,
header nav a.cta-primary:focus {
  background: var(--accent-hover);
  color: #fff;
}
header nav a:hover, header nav a:focus {
  background: rgba(250,250,255,.12);
}
header nav img {
  height: 38px;
  width: auto;
  margin-right: 10px;
}

/* Hamburger menu (Mobile) */
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: #fff;
  font-size: 2rem;
  border-radius: 6px;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  z-index: 1102;
  margin-left: auto;
  transition: background 0.18s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--accent-hover);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  background: var(--secondary);
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 100vw;
  z-index: 1100;
  transform: translateX(-105%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 2px 24px 0 rgba(0,0,0,0.18);
  padding: 0;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2rem;
  color: var(--accent);
  border-radius: 50%;
  background: transparent;
  padding: 8px 18px 8px 10px;
  margin: 18px 0 0 10px;
  align-items: center;
  transition: background .19s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--gray-light);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  padding: 16px 0 0 34px;
}
.mobile-nav a {
  font-family: var(--heading-font);
  font-size: 1.2rem;
  color: var(--primary);
  padding: 14px 0;
  border-radius: 6px;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--gray-light);
  color: var(--accent);
}

@media (max-width: 991px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 992px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
  header nav { display: flex; }
}

/* ----------------------------------
   HERO, CTA & SECTION GENERAL STYLES
-----------------------------------*/
main > section {
  background: var(--secondary);
  margin-bottom: 60px;
  padding: 40px 0;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(39,68,114,0.06);
  width: 100%;
}
@media (max-width: 768px) {
  main > section {
    padding: 28px 0;
    margin-bottom: 32px;
  }
}

/* CTA Primary Button */
.cta-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  font-family: var(--heading-font);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 13px 32px;
  border-radius: 7px;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px 0 rgba(178,0,5,0.10);
  transition: background .18s, box-shadow .18s, transform .18s;
  margin-top: 18px;
  margin-bottom: 8px;
}
.cta-primary:hover,
.cta-primary:focus {
  background: var(--accent-hover);
  color: #fff !important;
  box-shadow: 0 5px 18px 0 rgba(178,0,5,0.15);
  transform: translateY(-2px) scale(1.04);
}

/* ----------------------------------
   LISTS & FEATURES
-----------------------------------*/
ul, ol {
  margin-left: 1.3em;
  padding-left: 0;
}
.content-wrapper ul li, .content-wrapper ol li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1rem;
  line-height: 1.7;
}
.content-wrapper ul li img {
  width: 28px;
  height: 28px;
  margin-right: 6px;
  flex: none;
}
.filter-options ul, .blog-categories ul, .service-features ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.filter-options li, .blog-categories li, .service-features li {
  background: #e2e6ea;
  color: #274472;
  padding: 7px 18px;
  border-radius: 15px;
  font-size: .99rem;
  font-weight: 500;
  box-shadow: 0 1px 3px 0 rgba(39,68,114,0.07);
  margin-bottom: 0;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  margin-bottom: 12px;
}
.search-box input {
  padding: 8px 15px;
  border: 1.5px solid var(--gray-dark);
  font-size: 1rem;
  border-radius: 6px;
  outline: none;
  transition: border .16s;
}
.search-box input:focus {
  border-color: var(--primary);
}

/* ----------------------------------
   TESTIMONIALS
-----------------------------------*/
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #f4f8fb;
  border-radius: 11px;
  box-shadow: 0 2px 10px 0 rgba(39,68,114,0.04);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.testimonial-card blockquote {
  color: #1A2535;
  font-size: 1.13rem;
  font-style: italic;
  margin: 0;
  flex: 2;
}
.testimonial-author {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.01rem;
  flex: none;
}

/* HIGHLY VISIBLE ON LIGHT BG */
.testimonial-card, .testimonial-card * {
  text-shadow: 0 1px 0 #fff, 0 2px 6px #e2e6ea;
}

/* ----------------------------------
   FOOTER
-----------------------------------*/
footer {
  background: var(--primary);
  color: #fff;
  padding: 44px 0 24px 0;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 9px;
}
footer nav a {
  color: #e2e6ea;
  font-family: var(--heading-font);
  font-size: 1rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 5px;
  transition: background 0.19s, color 0.19s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--accent);
  color: #fff;
}
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  align-items: center;
  margin-bottom: 10px;
}
.contact-info span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.97rem;
  color: #f9f9fa;
}
.contact-info img {
  width: 20px;
  height: 20px;
  margin-right: 3px;
}
.brand-tagline {
  color: #e2e6ea;
  font-size: 1.04rem;
  font-weight: 400;
  margin-top: 12px;
  font-family: var(--heading-font);
}

@media (max-width: 900px) {
  .contact-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
@media (max-width: 600px) {
  footer .container {
    padding-left: 6px;
    padding-right: 6px;
  }
}

/* ----------------------------------
   BLOG POST LISTS
-----------------------------------*/
.content-wrapper ul > li > h3 {
  margin-bottom: 3px;
  font-size: 1.14rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.01em;
}
.content-wrapper ul > li > p {
  margin-bottom: 8px;
  color: #3E4765;
}

/* ----------------------------------
   FORMS & INPUTS (Newsletter/Contact)
-----------------------------------*/
input, textarea, select {
  font-family: var(--body-font);
  font-size: 1rem;
  border-radius: 6px;
  border: 1.5px solid #76849b;
  background: #fff;
  color: #1A2535;
  padding: 10px 14px;
  margin-bottom: 10px;
  outline: none;
  transition: border-color .15s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
}
label {
  display: block;
  color: var(--primary);
  font-family: var(--heading-font);
  font-weight: 500;
  margin-bottom: 6px;
}

button, .button {
  background: var(--primary);
  color: #fff;
  font-family: var(--heading-font);
  padding: 11px 24px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  transition: background .18s, box-shadow .18s;
  margin-right: 14px;
}
button:hover, .button:hover,
button:focus, .button:focus {
  background: var(--primary-hover);
}

/* ----------------------------------
   COOKIE CONSENT BANNER
-----------------------------------*/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1800;
  background: #25395b;
  color: #fff;
  box-shadow: 0 -2px 18px 0 rgba(39,68,114,0.15);
  padding: 24px 12px 24px 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 1rem;
  animation: fadein 0.33s;
}
.cookie-banner p {
  margin: 0;
  font-size: 1rem;
  max-width: 500px;
  color: #fff;
}
.cookie-buttons {
  display: flex;
  gap: 14px;
  flex: none;
}
.cookie-banner button {
  padding: 9px 24px;
  border-radius: 5px;
  font-family: var(--heading-font);
  font-size: 1rem;
  font-weight: 600;
  margin-right: 0;
  border: none;
}
.cookie-accept {
  background: var(--accent);
  color: #fff;
}
.cookie-accept:hover, .cookie-accept:focus {
  background: var(--accent-hover);
}
.cookie-reject {
  background: #e2e6ea;
  color: var(--primary);
}
.cookie-reject:hover, .cookie-reject:focus {
  background: #d4dbe5;
}
.cookie-settings {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.cookie-settings:hover, .cookie-settings:focus {
  background: #fff;
  color: var(--primary);
}

@keyframes fadein { from { opacity: 0; bottom: -50px; } to { opacity: 1; bottom: 0; } }

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(31,40,60,0.64);
  z-index: 1900;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadein .29s;
}
.cookie-modal-content {
  background: #fff;
  color: #1A2535;
  padding: 38px 30px 28px 30px;
  border-radius: 15px;
  box-shadow: 0 6px 36px 0 rgba(39,68,114,0.18);
  min-width: 315px;
  max-width: 96vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: popin .20s;
}
@keyframes popin { 0% { transform: scale(.98) translateY(25px); opacity:.2; } 100% {transform:none; opacity:1; } }
.cookie-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  font-size: 1.38rem;
  color: var(--accent);
  border: none;
  cursor: pointer;
  border-radius: 6px;
  padding: 2px 7px;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: #f4f8fb;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 8px 0;
}
.cookie-modal-category label {
  font-weight: 600;
  color: var(--primary);
}
.cookie-modal-category input[type="checkbox"],
.cookie-modal-category input[type="radio"] {
  accent-color: var(--accent);
  width: 22px;
  height: 22px;
}
.cookie-modal-category .category-description {
  margin-left: 12px;
  font-size: .98rem;
  color: #3E4765;
  font-weight: 400;
}

/* Responsive cookie banner/modal */
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    font-size: .96rem;
    padding: 20px 7px 22px 7px;
  }
  .cookie-modal-content {
    padding: 19px 11px 23px 11px;
    min-width: 210px;
  }
}

/* ----------------------------------
   RESPONSIVENESS & MOBILE FIRST
-----------------------------------*/
@media (max-width: 1200px) {
  .container { max-width: 98vw; }
}
@media (max-width: 900px) {
  .container { max-width: 99vw; }
}
@media (max-width: 700px) {
  .content-wrapper { padding: 0; }
  .section { padding: 23px 4px; }
}
@media (max-width: 480px) {
  .container, .content-wrapper { padding-left: 2px; padding-right: 2px; }
  .testimonial-card,
  .contact-info, footer nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .section, main > section {
    box-shadow: none;
    margin-bottom: 21px;
    border-radius: 8px;
    padding: 16px 0;
  }
  .card {
    padding: 18px 7px;
    box-shadow: 0 0px 3px 0 rgba(39,68,114,0.07);
  }
}

/* ----------------------------------
   MICRO-INTERACTIONS & TRANSITIONS
-----------------------------------*/
.button, button, .cta-primary, a.cta-primary, .card, .testimonial-card, .mobile-menu, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.18s, box-shadow 0.18s, color 0.18s, transform 0.17s;
}

input, textarea, select {
  transition: border-color 0.17s, box-shadow 0.19s;
}

a, a:visited {
  transition: color 0.18s, background 0.19s;
}

/* ------------------------------------
   ADDITIONAL FIXES & ACCESSIBILITY
-------------------------------------*/
:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 2px;
}

body {
  scroll-padding-top: 85px;
}

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