/* 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-family: 'Open Sans', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #F6F9F3;
}
body {
  background: #F6F9F3;
  color: #234567;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
a {
  color: #234567;
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #86C232;
  outline: none;
}
strong {
  font-weight: bold;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #234567;
  margin-bottom: 16px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}
h4 {
  font-size: 1rem;
}
p, li {
  font-size: 1rem;
  color: #234567;
}

/* CONTAINERS & SECTIONS */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.text-section {
  max-width: 740px;
  margin: 0 auto;
}

/* FLEX LAYOUTS (NO GRID!) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(30,40,56,0.08);
  padding: 28px 22px;
  min-width: 260px;
  max-width: 340px;
  flex: 1 1 288px;
  margin-bottom: 20px;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.team-member {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(30,40,56,0.08);
  padding: 24px 18px;
  min-width: 200px;
  max-width: 280px;
  flex: 1 1 200px;
  margin-bottom: 20px;
}

.case-studies-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.case-preview {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(30,40,56,0.08);
  padding: 26px 22px;
  flex: 1 1 290px;
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 18px;
}
.faq-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(30,40,56,0.07);
  padding: 18px 16px;
  flex: 1 1 240px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1.5px 6px rgba(30,40,56,0.07);
  padding: 22px 16px;
  margin-bottom: 20px;
  position: relative;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}


/* TESTIMONIALS */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1.5px 8px rgba(30,40,56,0.10);
  min-width: 240px;
  max-width: 370px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  border-left: 4px solid #86C232;
}
.testimonial-card p {
  font-style: italic;
  color: #234567;
}
.testimonial-meta {
  font-size: 0.97rem;
  color: #234567;
  opacity: 0.7;
}

/* ALERTS */
.alert-info {
  background: #E7F5D8;
  color: #234567;
  border-radius: 10px;
  padding: 16px 14px;
  margin-top: 18px;
  font-size: 0.98rem;
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #234567;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  border: none;
  border-radius: 28px;
  padding: 0.85em 2.2em;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(35, 69, 103, 0.06);
  transition: background 0.21s, box-shadow 0.21s, color 0.18s;
  margin-top: 16px;
}
.btn-primary:hover, .btn-primary:focus {
  background: #86C232;
  color: #234567;
  box-shadow: 0 4px 18px rgba(134,194,50,0.10);
  outline: none;
}

/* HEADER & NAV */
header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #e7eaf1;
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 12px 20px;
  gap: 18px;
}
.logo img {
  height: 40px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-left: 30px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.01rem;
  color: #234567;
  padding: 8px 0;
  position: relative;
  text-decoration: none;
  transition: color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #86C232;
}
.btn-primary {
  margin-left: 28px;
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  background: #234567;
  color: #fff;
  font-size: 1.8rem;
  border: none;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 120;
  transition: background 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #86C232;
  color: #234567;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  box-shadow: -2px 0 28px rgba(30,40,56,0.11);
}
.mobile-menu.menu-open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #234567;
  font-size: 2.1rem;
  border: none;
  margin: 22px 26px 0 0;
  align-self: flex-end;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #86C232;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  width: 100%;
  margin-top: 46px;
  padding-left: 36px;
  padding-right: 18px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.14rem;
  color: #234567;
  padding: 12px 0;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, color 0.17s;
  width: 100%;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #86c23230;
  color: #86C232;
  outline: none;
}

@media (max-width: 1060px) {
  .main-nav {
    gap: 15px;
    margin-left: 10px;
  }
}

@media (max-width: 900px) {
  .container {
    max-width: 98vw;
  }
}

@media (max-width: 850px) {
  .main-nav {
    display: none;
  }
  .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

@media (max-width: 710px) {
  .feature-grid, .team-grid, .case-studies-grid, .faq-list {
    flex-direction: column;
    gap: 18px;
  }
  .content-wrapper {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 28px 8px;
    margin-bottom: 40px;
  }
  h1 {
    font-size: 1.72rem;
  }
  h2 {
    font-size: 1.25rem;
  }
  .main-nav, .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .feature-grid, .team-grid, .case-studies-grid, .faq-list {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 8px;
  }
  .feature-item, .team-member, .case-preview, .faq-item, .testimonial-card {
    min-width: unset;
    max-width: 100%;
    padding: 16px 8px;
  }
}

/* FOOTER */
footer {
  width: 100%;
  border-top: 1px solid #e7eaf1;
  background: #fff;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 22px 20px 8px 20px;
}
.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 8px;
  font-size: 1rem;
}
.footer-nav a {
  color: #234567;
  text-decoration: none;
  transition: color 0.2s;
  padding: 4px 6px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #86C232;
  text-decoration: underline;
}
.footer-info {
  font-size: 0.93rem;
  color: #234567;
  opacity: 0.75;
}

/* MODALS & COOKIE BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 400;
  width: 100%;
  background: #fff;
  color: #234567;
  box-shadow: 0 -2px 22px rgba(30,40,56,0.18);
  border-top: 1.5px solid #E7F5D8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 18px 18px 16px 18px;
  font-size: 1rem;
  transition: transform 0.32s;
}
.cookie-banner.hide {
  transform: translateY(130%);
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.cookie-btn {
  background: #234567;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 0.56em 1.6em;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.19s, color 0.14s;
}
.cookie-btn.settings {
  background: #F6F9F3;
  color: #234567;
  border: 1px solid #234567;
}
.cookie-btn.accept {
  background: #86C232;
  color: #234567;
}
.cookie-btn.reject {
  background: #fff;
  color: #234567;
  border: 1px solid #234567;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #234567;
  color: #86C232;
  outline: none;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #234567;
  color: #86C232;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #234567;
  color: #86C232;
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(35,69,103,0.27);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeInBg 0.35s;
}
.cookie-modal-overlay.open {
  display: flex;
}
@keyframes fadeInBg {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  max-width: 385px;
  width: 94vw;
  box-shadow: 0 8px 38px rgba(35,69,103,0.25);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1rem;
  position: relative;
  animation: slideUpModal 0.32s;
}
@keyframes slideUpModal {
  from { transform: translateY(30px); opacity: 0.6; } to { transform: translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.21rem;
  margin-bottom: 6px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 6px;
  border-radius: 6px;
  background: #F6F9F3;
  margin-bottom: 6px;
  font-family: 'Open Sans', Arial, sans-serif;
}
.cookie-category .toggle {
  min-width: 38px;
  min-height: 24px;
}
.cookie-toggle[disabled], .cookie-toggle.disabled {
  opacity: 0.48;
  pointer-events: none;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 10px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.85rem;
  color: #234567;
  cursor: pointer;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  color: #86C232;
}

/* SIMPLE TOGGLE SWITCHES */
.cookie-toggle {
  width: 42px;
  height: 24px;
  background: #e4e4e4;
  border-radius: 12px;
  position: relative;
  border: none;
  outline: none;
  appearance: none;
  transition: background 0.18s;
  cursor: pointer;
  vertical-align: middle;
}
.cookie-toggle:checked {
  background: #86C232;
}
.cookie-toggle::before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(30,40,56,0.09);
}
.cookie-toggle:checked::before {
  transform: translateX(18px);
  background: #234567;
}

/* MICRO INTERACTIONS & GLOBAL TRANSITIONS */
.feature-item:hover,
.team-member:hover,
.case-preview:hover,
.faq-item:hover,
.card:hover,
.testimonial-card:hover {
  box-shadow: 0 6px 24px rgba(134,194,50,0.11), 0 2px 8px rgba(35,69,103,0.06);
  transition: box-shadow 0.18s;
}

/* UTILITIES */
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mt-3 { margin-top: 24px; }
.mb-3 { margin-bottom: 24px; }
.hidden { display: none !important; }

/* ACCESSIBILITY & FOCUS STYLES */
a:focus, .btn-primary:focus, .cookie-btn:focus {
  outline: 2px solid #86C232;
  outline-offset: 2px;
  border-radius: 3px;
}

/* Misc fixes for common elements */
main {
  min-height: 60vh;
}

/* Alignment for icon-text p elements in contact info */
.content-wrapper > p > img {
  vertical-align: text-bottom;
  margin-right: 8px;
  display: inline-block;
}

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