/* 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;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #23313c;
  background: #F9F7F3;
  min-height: 100vh;
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}
ul, ol {
  list-style: disc inside;
}
a {
  color: #184B63;
  text-decoration: none;
  transition: color 0.15s;
}
a:hover,
a:focus {
  color: #337C57; /* secondary */
}
:focus {
  outline: 2px solid #337C57;
  outline-offset: 2px;
}

/* BRAND FONT IMPORTS */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Open+Sans:wght@400;600;700&display=swap');

/* TYPOGRAPHY SCALE */
h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #184B63;
  margin-bottom: 24px;
  line-height: 1.14;
  letter-spacing: -1px;
}
h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #184B63;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #337C57;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
p {
  margin-bottom: 14px;
  color: #23313c;
}
strong {
  color: #184B63;
}
ul, ol {
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 6px;
}

/* CONTAINER LAYOUTS */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

/* ------ SPACING AND STRUCTURE ------ */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 18px 0 rgba(24,75,99,0.06);
}

.cta-section {
  margin-bottom: 0 !important;
}

/* ------ HEADER & NAVIGATION ------ */
header {
  background-color: #184B63;
  color: #fff;
  padding: 0;
  position: relative;
  box-shadow: 0 2px 12px 0 rgba(24, 75, 99, 0.065);
}
.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 20px;
  height: 72px;
  gap: 30px;
  background: transparent;
}
.main-nav > a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 0 10px;
  transition: color 0.15s;
  line-height: 1;
  display: flex;
  align-items: center;
  height: 72px;
}
.main-nav > a.btn-primary {
  margin-left: auto;
  background: #337C57;
  color: #fff;
  border-radius: 28px;
  padding: 12px 28px;
  font-size: 1rem;
  box-shadow: 0 4px 12px -2px rgba(51,124,87,0.14);
  transition: background 0.18s, box-shadow 0.18s;
}
.main-nav > a.btn-primary:hover,
.main-nav > a.btn-primary:focus {
  background: #1f6756;
  box-shadow: 0 5px 16px 0 rgba(24,75,99,.14);
}
.main-nav > a:hover,
.main-nav > a:focus {
  color: #F9F7F3;
  text-decoration: underline;
}

.main-nav > a img {
  height: 38px;
  width: auto;
  margin-right: 6px;
}

/* HAMBURGER MENU FOR MOBILE */
.mobile-menu-toggle {
  display: none;
  background: none;
  color: #fff;
  font-size: 2rem;
  border: none;
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 1500;
  cursor: pointer;
  transition: color 0.14s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: #50b287;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  background: #184B63;
  position: fixed;
  z-index: 2500;
  top: 0; left: 0; right: 0; bottom: 0;
  transform: translateX(-100%);
  transition: transform 0.30s cubic-bezier(0.9, 0.03, 0.11, 0.89);
  padding-top: 38px;
  box-shadow: 3px 0 24px 0 rgba(24,75,99,0.18);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.2rem;
  border: none;
  align-self: flex-end;
  padding: 10px 28px 10px 0;
  cursor: pointer;
  transition: color 0.16s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: #50b287;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  padding: 48px 30px 0 34px;
  font-size: 1.19rem;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #fff;
  font-weight: 600;
  padding: 12px 0;
  width: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: background 0.15s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #205e7e;
  color: #F9F7F3;
}

/* HERO & PAGE MAIN SECTIONS */
.hero {
  padding: 40px 0 40px 0;
  background: linear-gradient(120deg, #184B63 88%, #eaeaea 200%);
  color: #fff;
}
.hero .container {
  max-width: 900px;
}
.hero .content-wrapper {
  align-items: flex-start;
}
.hero h1,
.hero h2 {
  color: #fff;
}
.hero p {
  color: #e7f0f5;
}

/* ------ FEATURE GRID & FLEX COMPONENTS ------ */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 12px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 220px;
  background: #F9F7F3;
  border-radius: 12px;
  box-shadow: 0 1px 8px 0 rgba(24, 75, 99, 0.07);
  padding: 30px 20px;
  flex: 1 1 240px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-item img {
  width: 38px;
  height: 38px;
}
.feature-item:hover {
  box-shadow: 0 5px 20px 0 rgba(24,75,99,0.12);
  transform: translateY(-4px) scale(1.025);
}

/* ------ CARD CONTAINER ------ */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 1.5px 12px 0 rgba(24,75,99,0.08);
  margin-bottom: 20px;
  position: relative;
  padding: 30px 22px;
  flex: 1 1 260px;
  transition: box-shadow 0.2s, transform 0.19s;
}
.card:hover {
  box-shadow: 0 5px 22px 0 rgba(24,75,99,0.14);
  transform: translateY(-2px);
}

/* ------ TESTIMONIALS ------ */
.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.testimonial-card {
  background: #fff;
  color: #23313c;
  border-radius: 12px;
  box-shadow: 0 1.5px 10px 0 rgba(24,75,99,0.08);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 220px;
  flex: 1 1 260px;
  margin-bottom: 20px;
}
.testimonial-card p {
  font-size: 1rem;
  font-style: italic;
  color: #2d3d4b;
  margin-bottom: 8px;
}
.testimonial-card strong {
  color: #337C57;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

/* CTA Short Contact Info */
.short-contact-info {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.99rem;
  color: #337C57;
  margin-top: 14px;
}
.short-contact-info img {
  width: 20px;
  vertical-align: middle;
  margin-right: 5px;
}

/* ------ TEAM BIOS ------ */
.team-bios {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 28px;
}
.bio {
  background: #F9F7F3;
  border-radius: 10px;
  padding: 24px 18px;
  box-shadow: 0 1px 6px 0 rgba(24,75,99,0.07);
  min-width: 180px;
  flex: 1 1 210px;
}

/* ------ CONTACT LIST ------ */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.09rem;
  color: #184B63;
}
.contact-list img {
  width: 21px;
  height: 21px;
}

/* ----------- BUTTONS ----------- */
.btn-primary, .btn-primary:visited {
  display: inline-block;
  background: #184B63;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 28px;
  padding: 13px 36px;
  box-shadow: 0 4px 16px -3px rgba(24,74,99,0.13);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.17s, box-shadow 0.17s, transform 0.11s;
}
.btn-primary:hover, .btn-primary:focus {
  background: #337C57;
  color: #fff;
  box-shadow: 0 6px 22px 0 rgba(51,124,87,0.18);
  transform: translateY(-2px) scale(1.03);
}

button, input[type=submit] {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 5px;
  border: 1px solid #dbe7ee;
  padding: 10px 22px;
  background: #fafbfc;
  transition: background 0.15s, border 0.18s;
}
button:hover, button:focus {
  background: #e4f2ec;
  border-color: #337C57;
}

/* --------- FOOTER ----------- */
footer {
  background: #184B63;
  color: #fff;
  padding: 38px 0 20px 0;
  margin-top: 80px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  font-size: 0.98rem;
  margin-bottom: 15px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  transition: color 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #50b287;
}
.brand-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 0.97rem;
  color: #F9F7F3;
}

/* --------- COOKIE CONSENT BANNER --------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 4000;
  background: #23313c;
  color: #fff;
  padding: 20px 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  font-size: 1rem;
  box-shadow: 0 -2px 18px 0 rgba(24,75,99,0.12);
  animation: cbanner-in 0.4s;
}
@keyframes cbanner-in {
  from { transform: translateY(110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner__message {
  margin-right: 14px;
  max-width: 540px;
  line-height: 1.6;
  color: #F9F7F3;
}
.cookie-banner__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 8px 20px;
  border-radius: 24px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 0.98rem;
  margin-right: 4px;
  transition: background 0.14s, color 0.14s;
}
.cookie-btn.accept {
  background: #337C57;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #184B63;
}
.cookie-btn.reject {
  background: #fff;
  color: #184B63;
  border: 1.5px solid #184B63;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #e9e9e9;
}
.cookie-btn.settings {
  background: transparent;
  color: #fff;
  border: 1.5px solid #fff;
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: #337C57;
  color: #fff;
  border-color: #337C57;
}

/* ------ COOKIE MODAL ------ */
.cookie-modal-overlay {
  position: fixed;
  z-index: 5000;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(24,75,99,0.41);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeinCookieModal 0.19s;
}
@keyframes fadeinCookieModal {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #184B63;
  border-radius: 15px;
  padding: 32px 32px 24px 32px;
  min-width: 320px;
  max-width: 96vw;
  box-shadow: 0 8px 38px 0 rgba(24,75,99,0.17);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: slideinCookieModal 0.25s;
}
@keyframes slideinCookieModal {
  from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; }
}
.cookie-modal__header {
  font-size: 1.22rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  margin-bottom: 6px;
}
.cookie-modal__close {
  position: absolute;
  top: 17px;
  right: 20px;
  background: none;
  border: none;
  color: #184B63;
  font-size: 1.75rem;
  cursor: pointer;
  transition: color 0.13s;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  color: #337C57;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 6px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 17px;
}
.cookie-category__label {
  font-size: 1rem;
  font-weight: 600;
  color: #184B63;
}
.cookie-category__desc {
  font-size: 0.97rem;
  color: #4f6783;
  margin-left: 5px;
}
.cookie-category input[type=checkbox] {
  accent-color: #337C57;
  width: 20px;
  height: 20px;
}
.cookie-category .always-on {
  color: #337C57;
  font-weight: 700;
  padding-left: 8px;
}
.cookie-modal__actions {
  display: flex;
  gap: 16px;
  margin-top: 15px;
  justify-content: flex-end;
}

/* ------ UTILITY FLEX CLASSES ------ */
.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;
}

/* Ensure minimum 20px margin between all section content elements! */
section, .section, .cta-section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
section:last-child, .section:last-child {
  margin-bottom: 0 !important;
}

/* ---------- RESPONSIVE DESIGN ---------- */
@media (max-width: 1180px) {
  .container {
    max-width: 100vw;
    padding: 0 14px;
  }
}
@media (max-width: 992px) {
  .main-nav {
    gap: 16px;
    padding: 0 12px;
  }
  .feature-grid, .testimonial-grid, .card-container {
    gap: 20px;
  }
}
@media (max-width: 850px) {
  .main-nav a {
    font-size: 0.96rem;
    padding: 0 5px;
  }
  .feature-grid, .testimonial-grid {
    flex-direction: column;
    gap: 18px;
  }
  .card-container {
    flex-direction: column;
  }
  .team-bios {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  /* Main nav & burger menu appearance */
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero {
    padding: 30px 0 32px 0;
  }
  .feature-grid, .testimonial-grid, .team-bios {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  .cta-section, section, .section {
    padding: 24px 8px;
    margin-bottom: 36px;
  }
  .footer-nav {
    gap: 16px;
  }
}
@media (max-width: 520px) {
  h1 { font-size: 1.25rem; }
  h2 { font-size: 1.06rem; }
  .hero {
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .container {
    padding: 0 5px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    padding: 15px 8px;
    font-size: 0.99rem;
    text-align: left;
    align-items: flex-start;
  }
  .cookie-btn {
    font-size: 0.96rem;
    padding: 8px 12px;
  }
  .cookie-modal {
    padding: 15px 8px 6px 8px;
    min-width: unset;
    max-width: 100vw;
  }
}

/* ----- MICRO-INTERACTIONS & EFFECTS ------ */
.btn-primary, .main-nav > a.btn-primary, .cookie-btn {
  transition: background 0.17s, color 0.17s, box-shadow 0.19s, transform 0.13s;
}
.feature-item, .card, .testimonial-card, .bio {
  transition: box-shadow 0.22s, transform 0.18s;
}
.feature-item:active, .card:active, .testimonial-card:active, .bio:active {
  transform: scale(0.98);
  box-shadow: 0 1px 6px 0 rgba(24,75,99,0.08);
}

/* ------ MISC: ACCESSIBILITY, CONTRAST, ETC ------ */
::selection {
  background: #337C57;
  color: #fff;
}

[aria-hidden="true"] {
  display: none !important;
}

.hide-desktop { display: none !important; }
@media (max-width:768px) {
  .hide-desktop { display: block !important; }
}

/* ------- FORMS (in case used on contact) ------ */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 6px;
  border: 1.4px solid #d3dbe4;
  padding: 10px 14px;
  background: #fff;
  color: #184B63;
  margin-bottom: 14px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
input:focus, textarea:focus, select:focus {
  border-color: #337C57;
}

/* Hide scroll on body when mobile-menu or modal open (js sets 'overflow:hidden' on body) */
body.menu-open, body.modal-open {
  overflow: hidden !important;
}

/* ------- END OF STYLE ------ */
