/* =====================
   RESET & BASE STYLES
   ===================== */
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.5;
  background: #F4F7F6;
  color: #223645;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #175473;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.1;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: #175473;
}

p, a, span, button, li {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #223645;
}
a {
  color: #175473;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #10425b;
}
strong {
  font-weight: 700;
}

/* =============
   CONTAINERS
   ============= */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0; /* Top-level containers do not need gap; inner wrappers have it */
}
.content-wrapper {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(23,84,115,0.06);
  padding: 32px 24px;
  margin-bottom: 24px;
}

/* =============
   HEADER/NAV
   ============= */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(23,84,115,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 24px;
}
header img {
  height: 44px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
header nav a {
  color: #175473;
  font-weight: 600;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  transition: color 0.2s;
  font-size: 1rem;
  padding: 6px 0;
}
header nav a:hover, header nav a:focus {
  color: #FFC94B;
}
header .button.primary {
  margin-left: 24px;
}

/* =============
   BUTTONS
   ============= */
.button, button, .mobile-menu-toggle, .mobile-menu-close {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  outline: none;
  transition: 
    background 0.2s,
    color 0.2s,
    box-shadow 0.2s,
    transform 0.18s;
}
.button.primary,
button.primary {
  background: #175473;
  color: #fff;
  padding: 12px 32px;
  margin-top: 8px;
  box-shadow: 0 2px 8px rgba(23,84,115,0.07);
  letter-spacing: 0.03em;
}
.button.primary:hover, .button.primary:focus {
  background: #10425b;
  color: #FFC94B;
  box-shadow: 0 6px 20px rgba(23,84,115,0.11);
  transform: translateY(-2px) scale(1.025);
}
.button {
  background: #F4F7F6;
  color: #175473;
  padding: 10px 22px;
  margin: 0;
  border: 1px solid #D1DEE7;
}
.button:hover, .button:focus {
  background: #e8f0f6;
  color: #175473;
  border-color: #175473;
}

/* =============
   BURGER MENU
   ============= */
.mobile-menu-toggle {
  display: none;
  background: none;
  font-size: 2rem;
  color: #175473;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  margin-left: 16px;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #e5ecf2;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #175473;
  color: #fff;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 32px 24px;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(.65,.05,.36,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  color: #fff;
  background: none;
  font-size: 2.2rem;
  align-self: flex-end;
  margin-bottom: 32px;
  padding: 4px 10px;
  border: none;
  cursor: pointer;
  opacity: 0.8;
  transition: background 0.16s, opacity 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(255,255,255,0.12);
  opacity: 1;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 14px 0 12px 0;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #FFC94B;
}

/* ===========
   SECTIONS
   =========== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(23,84,115,0.08);
  padding: 28px 20px;
  margin-bottom: 20px;
  position: relative;
  min-width: 250px;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: box-shadow 0.17s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px rgba(23,84,115,0.12);
}
.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;
}

/* ====== FEATURE GRID for blocks like .feature-grid/.service-grid ====== */
.feature-grid, .service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-grid > div, .service-grid > div {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(23,84,115,0.07);
  padding: 28px 20px;
  min-width: 240px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  transition: box-shadow 0.17s;
}
.feature-grid > div:hover, .service-grid > div:hover{
  box-shadow: 0 8px 32px rgba(23,84,115,0.15);
}

/* ===========
   TESTIMONIALS
   =========== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: #F4F7F6;
  box-shadow: 0 1px 6px rgba(23,84,115,0.08);
  font-size: 1.08rem;
  color: #223645;
  min-width: 260px;
  flex: 1 1 350px;
  /* Always ensure text contrast */
}
.testimonial-card p {
  color: #223645;
  font-size: 1.08rem;
}
.testimonial-card span {
  font-weight: 700;
  color: #175473;
  font-size: 0.95rem;
  margin-left: 12px;
}

/* ===========
   CONTACT DETAILS and MAP
   =========== */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 12px;
}
.contact-details img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 8px;
}
.map-location {
  display: flex;
  align-items: center;
  padding: 18px 0;
}
.map-location span {
  color: #175473;
  font-weight: 600;
}

/* ===========
   FOOTER
   =========== */
footer {
  background: #175473;
  color: #fff;
  padding: 40px 0 14px 0;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-logo {
  margin-bottom: 20px;
}
.footer-logo img {
  height: 42px;
  filter: brightness(7.5);
  /* White logo on dark background */
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
footer nav a {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 4px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  opacity: 0.86;
  transition: color 0.15s, opacity 0.15s;
}
footer nav a:hover,footer nav a:focus{
  color: #FFC94B;
  opacity: 1;
}
.footer-contact {
  font-size: 1rem;
  color: #fff;
  opacity: 0.94;
  margin-top: 9px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer p {
  margin-bottom: 6px;
}

/* ===========
   COOKIE CONSENT BANNER
   =========== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  color: #223645;
  box-shadow: 0 -2px 12px rgba(23,84,115,0.09);
  border-top: 1px solid #D1DEE7;
  padding: 22px 26px;
  min-height: 90px;
  gap: 24px;
  font-size: 1rem;
  animation: cookie-slide-up 0.45s ease;
}
@keyframes cookie-slide-up {
  0% { transform: translateY(100%); opacity: 0; }
  65% { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner-text {
  flex: 2 1 220px;
  color: #223645;
}
.cookie-banner-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 14px;
  align-items: center;
}
.cookie-banner .button, .cookie-banner button {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border-radius: 6px;
  padding: 10px 20px;
  background: #F4F7F6;
  color: #175473;
  border: 1px solid #D1DEE7;
  font-weight: 600;
}
.cookie-banner .button.primary {
  background: #175473;
  color: #fff;
  border: none;
}
.cookie-banner .button.primary:hover,.cookie-banner .button.primary:focus {
  background: #10425b;
  color: #FFC94B;
}
.cookie-banner .button.reject {
  background: #fff;
  color: #223645;
  border: 1px solid #D1DEE7;
}
.cookie-banner .button.reject:hover,.cookie-banner .button.reject:focus {
  background: #F6D9D7;
  color: #B12727;
}

/* COOKIES MODAL */
.cookie-modal-backdrop {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(23,84,115,0.28);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadein-cookie-modal 0.28s;
}
@keyframes fadein-cookie-modal {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 40px rgba(23,84,115,0.15);
  padding: 34px 24px;
  max-width: 420px;
  width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  animation: modal-scale-fadein 0.32s cubic-bezier(.42,0,.58,1);
}
@keyframes modal-scale-fadein {
  0% { transform: scale(0.96); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  color: #175473;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.4rem;
  margin-bottom: 14px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
}
.cookie-category label {
  font-size: 1rem;
  color: #223645;
}
.cookie-modal input[type='checkbox'] {
  accent-color: #175473;
  width: 19px;
  height: 19px;
}
.cookie-category.essential label {
  font-weight: 600;
  color: #175473;
}
.cookie-category.essential input {
  cursor: not-allowed;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal .button,
.cookie-modal button {
  border-radius: 6px;
}
.cookie-modal-close {
  position: absolute;
  top: 16px; right: 18px;
  background: none;
  color: #A5B2BC;
  font-size: 1.6rem;
  border: none;
  cursor: pointer;
  opacity: 0.8;
  transition: color 0.18s, opacity 0.18s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #175473;
  opacity: 1;
}

/* ===============
   MEDIA QUERIES
   =============== */
@media (max-width: 1100px) {
  .container {
    max-width: 97vw;
  }
}
@media (max-width: 900px) {
  header nav {
    gap: 10px;
  }
  .feature-grid, .service-grid {
    gap: 14px;
  }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    gap: 12px;
    height: 62px;
    padding: 0 10px;
  }
  .container {
    padding: 0 10px;
 }
  .content-wrapper {
    padding: 18px 10px;
    border-radius: 7px;
  }
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.2rem; }
  h3 { font-size: 1rem; }
  section,.section { padding: 28px 4px; }
  .card {
    min-width: 98vw;
    flex: 1 1 99vw;
    padding: 18px 6px;
  }
  .feature-grid > div, .service-grid > div {
    min-width: 95vw;
    flex: 1 1 99vw;
    padding: 16px 7px;
    margin-bottom: 14px;
  }
  .card-container, .feature-grid, .service-grid, .content-grid {
    flex-direction: column;
    gap: 12px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 7px;
  }
  .footer-logo {
    margin-bottom: 16px;
  }
  .footer-contact {
    margin-top: 6px;
  }
  footer .container {
    flex-direction: column;
    gap: 20px;
  }
  .contact-details, .map-location {
    font-size: 0.95rem;
  }
  /* Mobile nav show */
  header nav,
  header .button.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width:480px){
  .container, .content-wrapper {
    padding: 0 2px;
  }
  .cookie-banner {
    padding: 14px 9px;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    font-size: 0.98rem;
    min-height: 120px;
  }
  .cookie-banner-actions {
    gap: 10px;
  }
}

/* ===============
   ANIMATIONS & MICRO-INTERACTIONS
   =============== */
.button,
.button.primary,
.testimonial-card,
.card,
.feature-grid > div,
.service-grid > div {
  transition: box-shadow 0.2s, background 0.17s, color 0.16s, transform 0.19s;
}
.button:active, .button.primary:active {
  transform: translateY(1px) scale(0.98);
}
.card:active, .feature-grid>div:active, .service-grid>div:active {
  transform: scale(0.991);
}

/* ===============
   MISC STYLES
   =============== */
::-webkit-input-placeholder { color: #A5B2BC; }
::-moz-placeholder { color: #A5B2BC; }
:-ms-input-placeholder { color: #A5B2BC; }
::placeholder { color: #A5B2BC; }

hr {
  border: 0;
  border-top: 1px solid #e5ecf2;
  margin: 24px 0;
}

/* Utility Classes */
.mt-20 { margin-top:20px !important;}
.mb-16 { margin-bottom:16px!important; }
.d-flex { display: flex!important; }
.align-center { align-items: center!important; }
.flex-wrap { flex-wrap: wrap!important; }
.gap-20 { gap: 20px!important; }

/* ===============
   ENSURE NO OVERLAPPING
   =============== */
section,.content-wrapper,.card-container,.feature-grid,.service-grid,.testimonial-card,.card,.footer-contact,nav,footer {
  box-sizing: border-box;
}
