/* RESET & BASE TYPOGRAPHY ----------------- */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; }
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #F6F8FA;
  color: #222;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img, picture, video {
  max-width: 100%;
  display: block;
}
a {
  color: #20426E;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #19A974;
  text-decoration: underline;
}
ul, ol {
  padding-left: 1.5em;
}
strong, b {
  font-weight: 700;
}

/* FONT STYLE HIERARCHY -------------------- */
h1, .hero h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -1px;
  color: #20426E;
  margin-bottom: 24px;
}
h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: #20426E;
  margin-bottom: 20px;
}
h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: #20426E;
  margin-bottom: 16px;
}
p {
  margin-bottom: 16px;
}
section ul li, section ol li {
  margin-bottom: 12px;
}

@media (min-width: 600px) {
  h1, .hero h1 { font-size: 2.8rem; }
  h2 { font-size: 2.1rem; }
  h3 { font-size: 1.3rem; }
}

/* LAYOUT CONTAINERS ----------------------- */
.container {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(32,66,110,0.07);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 24px 0 rgba(25, 169, 116,0.09);
  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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(32,66,110,0.07);
  padding: 20px;
  margin-bottom: 20px;
  min-width: 0;
  border-left: 5px solid #19A974;
}
 .testimonial-card p {
   color: #222;
   font-size: 1.06rem;
   flex: 1 1 auto;
   margin-bottom: 0;
 }
 .testimonial-card > div {
   min-width: 150px;
   font-size: 0.98em;
 }
 .testimonial-card b {
   display: inline-block;
   color: #20426E;
   margin-bottom: 4px;
 }
 .testimonial-card span {
   color: #19A974;
   font-size: 1.04em;
   margin-left: 6px;
 }
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

/* HEADER & NAVIGATION --------------------- */
header {
  background: #fff;
  border-bottom: 1px solid #E1E7ED;
  padding: 0px 0;
  position: relative;
  z-index: 99;
}
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 0;
}
.header-main > a img {
  height: 40px;
}
.main-menu {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-menu a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #20426E;
  padding: 8px 0;
  position: relative;
  transition: color 0.18s;
}
.main-menu a:hover, .main-menu a:focus {
  color: #19A974;
  text-decoration: none;
}
.main-menu a.active {
  color: #19A974;
  font-weight: 700;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  background: #19A974;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(25,169,116,0.06);
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.18s, transform 0.14s;
  text-decoration: none;
  outline: 0;
}
.cta-btn:hover, .cta-btn:focus {
  background: #17835D;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 20px -2px rgba(25,169,116,0.13);
  transform: translateY(-2px) scale(1.03);
}

/* MOBILE NAVIGATION BURGER MENU ----------- */
.mobile-menu-toggle {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 2002;
  background: #fff;
  border: 1px solid #E1E7ED;
  color: #20426E;
  border-radius: 8px;
  font-size: 2rem;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, box-shadow 0.18s;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(32,66,110,0.07);
  display: none;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #20426E;
}
@media (max-width: 980px) {
  .main-menu, .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: #F6F8FA;
  box-shadow: -8px 0 20px 0 rgba(32,66,110,0.10);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.87,0.02,0.19,1.04);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 0 28px;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin-top: 24px;
  align-self: flex-end;
  background: #fff;
  border: 1px solid #E1E7ED;
  border-radius: 5px;
  font-size: 2.2rem;
  color: #20426E;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  cursor: pointer;
  z-index: 2020;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #20426E;
  padding: 14px 0;
  border-bottom: 1px solid #E1E7ED;
  transition: color 0.18s, background 0.14s;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #19A974;
  background: #E8F9F1;
}

/* HERO SECTION --------------------------- */
.hero {
  background: linear-gradient(90deg, #F6F8FA 65%, #E8F1F7 100%);
  padding: 56px 0 42px 0;
  margin-bottom: 0;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.hero h1 {
  color: #20426E;
  margin-bottom: 14px;
}
.hero p {
  font-size: 1.13rem;
  color: #29354B;
  margin-bottom: 22px;
}

/* BLOG LIST ------------------------------ */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}
.blog-list article {
  background: #fff;
  border-radius: 10px;
  padding: 24px 20px;
  box-shadow: 0 2px 8px rgba(32,66,110,0.07);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.19s, transform 0.14s;
}
.blog-list article:hover {
  box-shadow: 0 7px 28px rgba(25,169,116,0.10);
  transform: translateY(-2px) scale(1.012);
}
.blog-list article h2 {
  font-size: 1.22rem;
  margin-bottom: 6px;
}
.blog-list article span {
  color: #19A974;
  font-size: 0.97rem;
  margin-top: 8px;
}

/* CONTACT DETAILS ------------------------ */
.contact-details {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(32,66,110,0.07);
  padding: 20px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-details a {
  color: #19A974;
  word-break: break-all;
}

.map-location {
  background: #E8F9F1;
  border-radius: 10px;
  padding: 18px;
  font-weight: 500;
  color: #20426E;
  margin-bottom: 20px;
}

/* TEAM MEMBERS --------------------------- */
.team-member-briefs {
  margin-bottom: 22px;
}
.team-member-briefs h3 {
  font-size: 1.09rem;
  color: #19A974;
  margin-bottom: 10px;
}

/* FOOTER --------------------------------- */
footer {
  background: #fff;
  border-top: 1px solid #E1E7ED;
  padding: 18px 0 12px 0;
  font-size: 0.97rem;
}
.footer-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
footer a img {
  height: 35px;
}
.footer-nav, .footer-legal {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.footer-nav a, .footer-legal a {
  color: #20426E;
  opacity: 0.85;
  font-size: 1em;
  transition: color 0.18s;
  padding: 5px 0;
}
.footer-nav a:hover, .footer-legal a:hover {
  color: #19A974;
  opacity: 1;
}

@media (min-width: 700px) {
  .footer-main {
    flex-direction: row;
    align-items: flex-start;
    gap: 36px;
    justify-content: space-between;
  }
  .footer-nav, .footer-legal {
    margin-bottom: 0;
    justify-content: flex-start;
  }
}

/* SECTION DEFAULT GAPS ------------------- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
section + section {
  margin-top: -20px;
}
@media (max-width: 640px) {
  section {
    padding: 30px 8px;
    margin-bottom: 44px;
  }
}

/* GENERAL BUTTONS ------------------------ */
button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  background: none;
}

button:focus {
  outline: 2px solid #20426E;
  outline-offset: 2px;
}

/* Cookie Consent Banner ------------------ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  background: #fff;
  box-shadow: 0 -2px 20px rgba(32,66,110,0.15);
  z-index: 2200;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 16px 24px;
  gap: 20px;
  font-size: 1rem;
  border-top: 1px solid #E1E7ED;
  animation: cookie-slide-in 0.7s cubic-bezier(.49,.87,.16,.99);
}
@keyframes cookie-slide-in {
  from { transform: translateY(120%); opacity:0; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-banner .cookie-text {
  flex: 1 1 200px;
  color: #20426E;
}
.cookie-banner .cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 22px;
  padding: 8px 18px;
  font-size: 1em;
  margin: 0 4px;
  background: #20426E;
  color: #fff;
  border: none;
  transition: background 0.13s, color 0.13s;
  box-shadow: 0 2px 8px rgba(32,66,110,0.03);
}
.cookie-banner .cookie-btn.accept {
  background: #19A974;
  color: #fff;
}
.cookie-banner .cookie-btn.reject {
  background: #b1c3d3;
  color: #20426E;
}
.cookie-banner .cookie-btn.settings {
  background: #F6F8FA;
  color: #20426E;
  border: 1px solid #E1E7ED;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  filter: brightness(0.93);
}

/* COOKIE MODAL --------------------------- */
.cookie-modal-backdrop {
  position: fixed; left:0;top:0; right:0;bottom:0;
  background: rgba(32,66,110,0.15);
  z-index: 2400;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modal-fade-in 0.34s;
}
@keyframes modal-fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 12px;
  width: 96vw;
  max-width: 400px;
  padding: 38px 24px 16px 24px;
  box-shadow: 0 8px 36px rgba(32,66,110,0.13);
  z-index: 2410;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  animation: modal-slide-in 0.4s cubic-bezier(.51,1.15,.51,1);
}
@keyframes modal-slide-in {
  0% { transform: translateY(52px) scale(.96); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.25rem;
  color: #20426E;
  margin-bottom: 12px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1em;
  color: #20426E;
  margin-bottom: 10px;
}
.cookie-modal .cookie-modal-actions {
  width: 100%;
  display: flex;
  gap: 16px;
  margin-top: 20px;
  justify-content: flex-end;
}
/* Toggle switch for cookies */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
}
.toggle-switch input {
  opacity: 0;
  width: 0; height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #E1E7ED;
  transition: background 0.2s;
  border-radius: 22px;
}
.toggle-slider:before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 0 4px rgba(32,66,110,0.15);
}
.toggle-switch input:checked + .toggle-slider {
  background: #19A974;
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* UTIL STYLES ----------------------------- */
.text-section {
  margin-bottom: 20px;
}
span {
  font-size: 1em;
}

/* RESPONSIVE DESIGN ----------------------- */
@media (max-width: 830px) {
  .header-main {
    flex-direction: column;
    gap: 13px;
    align-items: flex-start;
  }
}
@media (max-width: 900px) {
  .content-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .footer-main {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
}
@media (max-width: 640px) {
  .hero {
    padding: 32px 0 18px 0;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .map-location {
    padding: 12px;
    font-size: 1em;
  }
}

/* MINIMUM TOUCH TARGETS ------------------ */
.mobile-nav a, .cookie-banner .cookie-btn,
.cookie-modal .cookie-modal-actions button {
  min-height: 44px;
  min-width: 48px;
  user-select: none;
}

/* VISUAL DETAILS (SHADOWS, RADIUS) ------- */
.card, .testimonial-card, .feature-item, .contact-details {
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(32,66,110,0.07);
}

/* MICRO-ANIMATIONS for buttons ----------- */
button, .cta-btn, .cookie-btn {
  transition: background 0.17s, color 0.17s, box-shadow 0.17s, transform 0.13s;
}
button:hover, .cta-btn:hover, .cookie-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

/* VISUAL DIVIDERS ------------------------ */
hr {
  border: none;
  border-bottom: 1px solid #E1E7ED;
  margin: 28px 0;
}

/* FORMS (if present in future) ----------- */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border: 1px solid #E1E7ED;
  border-radius: 7px;
  padding: 10px 12px;
  background: #fff;
  margin-bottom: 18px;
  transition: border 0.13s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #19A974;
  outline: none;
}
label {
  font-size: 1rem;
  font-weight: 500;
  color: #20426E;
  display: block;
  margin-bottom: 8px;
}

/* ENSURE CARDS AND SECTIONS MIN 20PX GAP */
.card + .card,
section + section,
.testimonial-card + .testimonial-card,
.feature-item + .feature-item,
.contact-details + .contact-details,
.card + .testimonial-card {
  margin-top: 20px !important;
}

/* OVERRIDES AND COMPATIBILITY ----------- */
@media (max-width: 700px) {
  .container {
    padding: 0 10px;
  }
  footer, header {
    padding-left: 0;
    padding-right: 0;
  }
}

/* BRAND COLORS OVERRIDE ----------------- */
::selection {
  background: #E8F9F1;
}

/* Hide scrollbars in modal on small screens */
.cookie-modal-backdrop {
  -webkit-overflow-scrolling: touch;
}

/* Accent color icons inside .accent, .icon-accent etc */
.accent, .icon-accent {
  color: #19A974 !important;
}

/* Hide scroll on modal when open */
body.modal-open {
  overflow: hidden;
}

/* For screen readers: accessibility helpers */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}
