/* ===================================================== */
/*      CSS RESET & NORMALIZE FOR CONSISTENT START       */
/* ===================================================== */
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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F5F7FA;
  color: #263035;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  min-height: 100vh;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
img {
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}
:focus {
  outline: 2px solid #16597C;
  outline-offset: 3px;
}

/* ===================================== */
/*      VARIABLES & BRAND COLORS         */
/* ===================================== */
:root {
  --color-primary: #16597C;
  --color-primary-hover: #12486A;
  --color-secondary: #E5E8E1;
  --color-accent: #B5883D;
  --color-accent-hover: #8A621B;
  --color-bg: #F5F7FA;
  --color-footer-bg: #172330;
  --color-footer-text: #D9E4EC;
  --color-card-bg: #FFFFFF;
  --color-border: #D7DBE3;
  --color-headline: #16597C;
  --color-subheadline: #445163;
  --color-button: #16597C;
  --color-button-text: #FFFFFF;
  --color-button-secondary: #E5E8E1;
  --color-button-secondary-text: #16597C;
  --color-shadow: rgba(22,89,124,0.09);
}

/* ============================ */
/*     TYPOGRAPHY SYSTEM        */
/* ============================ */
@import url('https://fonts.googleapis.com/css?family=Montserrat:600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-headline);
  font-weight: 700;
  line-height: 1.15;
}
h1 { font-size: 2.4rem; margin-bottom: 24px; }
h2 { font-size: 1.8rem; margin-bottom: 18px; }
h3 { font-size: 1.3rem; margin-bottom: 12px; font-weight: 600; }
h4, h5, h6 { font-size: 1.1rem; }
p, ul, ol, li { font-size: 1rem; color: #263035; line-height: 1.65; }
.subheadline {
  font-size: 1.1rem;
  color: var(--color-subheadline);
  margin-bottom: 24px;
  font-weight: 400;
}
strong, b {
  font-weight: 700;
}

/* ============================ */
/*   LAYOUT: CONTAINER SYSTEM   */
/* ============================ */
.container {
  width: 100%;
  margin: 0 auto;
  max-width: 1160px;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  background: none;
  margin-bottom: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
main > section {
  margin-bottom: 60px;
}

/* ============================ */
/*         FLEX UTILITY         */
/* ============================ */
.card-container, .feature-grid, .service-list, .experience-cards, .team-list, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
}
.content-grid {
  gap: 20px;
  justify-content: space-between;
  margin-top: 0;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 320px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 26px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: var(--color-card-bg);
  border-radius: 14px;
  box-shadow: 0 4px 16px var(--color-shadow);
  padding: 28px 28px 24px 28px;
  flex: 1 1 300px;
  min-width: 240px;
  max-width: 370px;
  border: 1px solid var(--color-border);
  margin-bottom: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ============================ */
/*    HEADER/NAVIGATION BAR     */
/* ============================ */
header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(22,89,124,0.07);
  z-index: 199;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 44px;
  max-width: 170px;
  margin-right: 0;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--color-primary);
  padding: 9px 14px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}
.main-nav .cta.primary {
  background: var(--color-primary);
  color: var(--color-button-text);
  box-shadow: 0 2px 8px var(--color-shadow);
  margin-left: 16px;
  font-weight: 600;
  border: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.2s;
}
.main-nav .cta.primary:hover, .main-nav .cta.primary:focus {
  background: var(--color-primary-hover);
  color: #fff;
  box-shadow: 0 6px 16px var(--color-shadow);
}

/* ========================= */
/*      MOBILE NAVIGATION    */
/* ========================= */
.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.7rem;
  padding: 5px 18px 5px 14px;
  margin-left: 20px;
  cursor: pointer;
  transition: background 0.18s;
  z-index: 210;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--color-primary-hover);
}
.mobile-menu {
  display: none;
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(22,89,124,0.97);
  flex-direction: column;
  z-index: 2202;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.6,0,0.2,1);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 28px;
  right: 32px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.3rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 2210;
  transition: color 0.18s;
}
.mobile-menu-close:hover { color: var(--color-accent); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 80px 36px 36px 36px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.3rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 10px 0 10px 12px;
  border-radius: 4px;
  width: 100%;
  background: none;
  transition: background 0.17s, color 0.18s;
  font-weight: 500;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* Only show hamburger and mobile menu on mobile */
@media (max-width: 1020px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 768px) {
  .mobile-menu-close {
    top: 22px;
    right: 15px;
    font-size: 2rem;
  }
  .mobile-nav {
    padding: 70px 16px 32px 16px;
    gap: 19px;
  }
  header {
    position: sticky;
    top: 0;
  }
}

/* ======================== */
/*       HERO SECTIONS      */
/* ======================== */
section:first-child .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 36px;
  padding-bottom: 16px;
  min-height: 240px;
  background: none;
}

/* ================================= */
/*   FEATURE/CARD/CONTENT GRIDS      */
/* ================================= */
.feature-grid > div, .service-block, .experience-card, .team-member {
  background: var(--color-card-bg);
  border-radius: 13px;
  box-shadow: 0 2px 12px var(--color-shadow);
  border: 1px solid var(--color-border);
  padding: 30px 26px 22px 26px;
  min-width: 210px;
  flex: 1 1 260px;
  margin-bottom: 0; /* spacing comes from gap */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.19s, transform 0.19s;
  position: relative;
}
.feature-grid > div img,
.usp-list img,
.address-details img, .contact-details img,
.experience-intro ul img {
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
}
.feature-grid > div:hover { box-shadow: 0 10px 24px var(--color-shadow); transform: translateY(-2px) scale(1.01); }
.service-block:hover, .experience-card:hover, .team-member:hover {
  box-shadow: 0 12px 30px var(--color-shadow);
  transform: translateY(-3px) scale(1.015);
}

.experience-cards {
  margin-top: 38px;
  gap: 24px;
  flex-wrap: wrap;
}
.experience-card {
  background: var(--color-card-bg);
  border-radius: 13px;
  padding: 26px 22px;
  border: 1px solid var(--color-border);
  flex: 1 1 270px;
  min-width: 210px;
  max-width: 370px;
  margin-bottom: 0;
  transition: box-shadow 0.19s, transform 0.19s;
}

.team-list { gap: 24px; }
.team-member { flex: 1 1 200px; }

.team-photo-placeholder img,
.map-embed-placeholder img {
  max-width: 120px;
  border-radius: 12px;
  opacity: 0.65;
  margin-bottom: 18px;
}

.contact-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-card-bg);
  border-radius: 14px;
  box-shadow: 0 3px 12px var(--color-shadow);
  border: 1px solid var(--color-border);
  padding: 38px 34px 36px 34px;
}
.contact-info {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  font-size: 1rem;
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
}

/* FAQ LIST */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 18px;
}
.faq-item {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 18px 22px 14px 22px;
  transition: box-shadow 0.16s, border 0.16s;
}
.faq-item:hover { border-color: var(--color-primary); box-shadow: 0 4px 18px var(--color-shadow); }

/* USP-LIST */
.usp-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 18px;
}
.usp-list li {
  display: flex;
  align-items: center;
  background: var(--color-secondary);
  border-radius: 12px;
  padding: 14px 22px;
  gap: 16px;
  font-size: 1.07rem;
  color: var(--color-primary);
  font-weight: 500;
  min-width: 220px;
  box-shadow: 0 1px 4px var(--color-shadow);
}

@media (max-width: 768px) {
  .feature-grid, .service-list, .experience-cards, .team-list, .testimonial-list {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .card-container, .content-grid { flex-direction: column; gap: 16px; }
  .usp-list { flex-direction: column; gap: 14px; }
  .testimonial-card, .feature-grid > div, .service-block, .experience-card, .team-member {
    max-width: 100%;
    min-width: 0;
  }
  .contact-cta, .content-wrapper {
    padding: 24px 12px;
  }
  .container {
    padding-left: 8px; padding-right: 8px;
  }
  .text-section, .address-details, .contact-details {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

/* ================ */
/*   BUTTONS/CTAs   */
/* ================ */
.cta {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 13px 32px;
  font-size: 1.09rem;
  border-radius: 8px;
  border: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.21s, transform 0.16s;
  box-shadow: 0 2px 8px var(--color-shadow);
  margin-top: 8px;
  margin-bottom: 8px;
}
.cta.primary {
  background: var(--color-primary);
  color: var(--color-button-text);
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--color-primary-hover);
  color: #fff;
  transform: translateY(-1px) scale(1.015);
  box-shadow: 0 7px 24px var(--color-shadow);
}
.cta.secondary {
  background: var(--color-button-secondary);
  color: var(--color-button-secondary-text);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--color-accent-hover);
  color: #fff;
  box-shadow: 0 3px 19px var(--color-shadow);
}

/* =================== */
/*       FORMS         */
/* =================== */
input[type="text"],
input[type="email"],
textarea {
  border: 1px solid var(--color-border);
  border-radius: 7px;
  padding: 10px 14px;
  font-size: 1rem;
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
  transition: border 0.19s, box-shadow 0.17s;
  background: #fff;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 1px 6px var(--color-shadow);
}
label { display: block; font-size: 1.01rem; margin-bottom: 5px; color: var(--color-primary); font-family: 'Montserrat', Arial, sans-serif; }

/* ================ */
/*    TESTIMONIALS  */
/* ================ */
.stars {
  font-size: 1.1rem;
  color: var(--color-accent);
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 4px;
}
.testimonial-meta {
  color: var(--color-primary);
  font-size: 0.98rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}

/* Ensures testimonials are readable in all contrast settings */
.testimonial-card p, .testimonial-card .stars, .testimonial-card .testimonial-meta {
  color: #263035;
}

/* ================ */
/*      FOOTER      */
/* ================ */
footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 38px 0 0 0;
  margin-top: 80px;
}
footer .container { display: flex; flex-direction: column; gap: 14px; }
.footer-top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
}
.footer-top img {
  width: 48px;
  height: auto;
  border-radius: 7px;
  background: #fff;
}
.address-short {
  font-size: 1rem;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  color: var(--color-footer-text);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.98rem;
  color: var(--color-footer-text);
  opacity: 0.94;
  align-items: center;
}
.footer-nav a {
  color: var(--color-footer-text);
  opacity: 0.95;
  padding: 2px 5px;
  border-radius: 5px;
  transition: background 0.17s, color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--color-accent);
  color: #fff;
  opacity: 1;
}
.footer-bottom {
  border-top: 1px solid #24415a;
  padding-top: 12px;
  margin-top: 10px;
  font-size: 0.97rem;
  color: #9BB5C8;
}

@media (max-width: 700px) {
  .footer-nav { flex-direction: column; gap: 6px; }
  .footer-top { flex-direction: column; gap: 6px; align-items: flex-start; }
  .container { padding-left: 3px; padding-right: 3px; }
}

/* =============== */
/* RESPONSIVE LAYOUTS */
/* =============== */
@media (max-width: 1090px) {
  .main-nav { gap: 10px; }
}
@media (max-width: 900px) {
  .container { max-width: 98vw; }
  .feature-grid, .service-list { gap: 16px; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.18rem; }
  .card, .contact-cta, .content-wrapper { padding: 16px 6px; }
  .testimonial-card, .feature-grid > div, .experience-card, .service-block { padding: 14px 8px; }
  .footer-nav { font-size: 0.91rem; }
}

/* ======================================= */
/*   COOKIE BANNER & COOKIE MODAL STYLING  */
/* ======================================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  color: #263035;
  border-top: 1px solid var(--color-primary);
  box-shadow: 0 -2px 24px var(--color-shadow);
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 24px 18px 18px 18px;
  z-index: 2500;
  flex-wrap: wrap;
}
.cookie-banner .cookie-banner-text {
  flex: 2 1 240px;
  font-size: 1rem;
  color: #263035;
  margin-bottom: 12px;
}
.cookie-banner .cookie-banner-actions {
  display: flex;
  gap: 16px;
  flex: 1 1 90px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 1rem;
  font-weight: 600;
  margin-right: 8px;
  transition: background 0.17s, color 0.15s, transform 0.17s;
}
.cookie-banner .accept-cookies {
  background: var(--color-primary);
  color: #fff;
}
.cookie-banner .accept-cookies:hover { background: var(--color-primary-hover); }
.cookie-banner .reject-cookies {
  background: var(--color-button-secondary);
  color: var(--color-button-secondary-text);
}
.cookie-banner .reject-cookies:hover {
  background: var(--color-accent-hover);
  color: #fff;
}
.cookie-banner .settings-cookies {
  background: var(--color-accent);
  color: #fff;
}
.cookie-banner .settings-cookies:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px) scale(1.02);
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    gap: 14px;
    padding: 18px 6px 12px 6px;
    align-items: stretch;
  }
}

/* ---------- COOKIE MODAL ------------ */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(22,89,124,0.70);
  z-index: 2550;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: opacity 0.25s;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 36px 26px 10px 26px;
  max-width: 430px;
  box-shadow: 0 16px 48px var(--color-shadow);
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
}
.cookie-modal-content h2 {
  margin-bottom: 14px;
  color: var(--color-primary);
  font-size: 1.22rem;
}
.cookie-modal-content .category-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 19px; height: 19px;
}
.cookie-category .always-enabled {
  font-style: italic;
  color: #b2b3b3;
  margin-left: 5px;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  width: 100%;
  justify-content: flex-end;
  margin-bottom: 8px;
}
.cookie-modal-actions button {
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
}
.cookie-modal-actions .save-cookies {
  background: var(--color-primary);
  color: #fff;
}
.cookie-modal-actions .save-cookies:hover { background: var(--color-primary-hover); }
.cookie-modal-actions .close-cookie-modal {
  background: var(--color-button-secondary);
  color: var(--color-primary);
}
.cookie-modal-actions .close-cookie-modal:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

@media (max-width: 480px) {
  .cookie-modal-content {
    padding: 14px 4px 4px 4px;
    max-width: 97vw;
  }
}

/* ======= UTILITY ========== */
.d-none { display: none !important; }
.d-block { display: block !important; }

/* Focus Management for accessibility */
:focus-visible {
  outline: 2.5px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ========================== */
/*  ADDITIONAL MICROANIMATIONS  */
/* ========================== */
a, button, .cta, .main-nav a {
  transition: background 0.17s, color 0.17s, box-shadow 0.19s, transform 0.12s;
}
section, .feature-grid > div, .testimonial-card, .footer-nav, .cta, .service-block, .experience-card {
  transition: box-shadow 0.17s, transform 0.14s;
}

/* =============== */
/* NEXT STEPS INFO */
/* =============== */
.next-steps-info ul {
  margin-top: 10px;
  margin-bottom: 18px;
  padding-left: 24px;
  list-style: disc;
  color: var(--color-primary);
  font-size: 1rem;
}

/*******************************
 *  Special Margins for Cards  *
 *******************************/
.card:not(:last-child),
.feature-grid > div:not(:last-child),
.service-block:not(:last-child),
.experience-card:not(:last-child),
.team-member:not(:last-child),
.testimonial-card:not(:last-child) {
  margin-right: 0;
  margin-bottom: 0;
}

/* =============== */
/*   FORMS, ETC.   */
/* =============== */
.map-embed-placeholder img {
  width: 90px;
  height: 90px;
  opacity: 0.45;
}
.address-details, .contact-details {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 17px;
}
.address-details img, .contact-details img {
  width: 23px;
  height: 23px;
  margin-bottom: 0;
  margin-right: 8px;
  vertical-align: middle;
}
.address-details p, .contact-details p {
  display: inline;
  vertical-align: middle;
  margin-left: 8px;
}

/******************************
  * Hide some elements on XS  *
  ****************************/
@media (max-width: 500px) {
  .feature-grid > div, .service-block, .experience-card, .team-member, .testimonial-card {
    padding: 10px 4px;
  }
  .usp-list li {
    padding: 9px 7px;
    min-width: 0;
    font-size: 0.97rem;
  }
  .contact-cta {
    padding: 10px 4px;
  }
}
