/* 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 {
  scroll-behavior: smooth;
  box-sizing: border-box;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background: #F0F3F6;
  color: #1A2233;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
}
*, *::before, *::after {
  box-sizing: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #1A2233;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #46B169;
  outline-offset: 2px;
}
ul, ol {
  padding-left: 24px;
}

/* IMPORT FONT-FACES (Google Fonts, fallback to system) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');

:root {
  --color-primary: #1A2233;
  --color-secondary: #46B169;
  --color-accent: #F0F3F6;
  --color-white: #ffffff;
  --color-black: #181C2B;
  --color-grey-100: #F8FAFB;
  --color-grey-200: #E6EAF3;
  --color-grey-300: #D0D6E3;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --border-radius: 16px;
  --transition-fast: 0.16s cubic-bezier(.86,0,.07,1);
  --transition-med: 0.32s cubic-bezier(.65,.05,.36,1);
}

/***************************
*   TYPOGRAPHY
***************************/
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -1px;
  margin-bottom: 24px;
  color: var(--color-primary);
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--color-primary);
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-primary);
}
h4, .h4 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-primary);
}
p, ul, ol, li, span, label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-black);
}
strong, b {
  font-weight: 700;
}
.section h2 {
  margin-bottom: 24px;
}

/***************************
*   GLOBAL LAYOUT CONTAINERS
***************************/
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/***************************
*   MAIN NAVIGATION
***************************/
.main-nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 20px 0 20px 0;
  background: var(--color-white);
  position: relative;
  z-index: 100;
  box-shadow: 0 2px 24px 0 rgba(26,34,51,0.03);
}
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
}
.main-nav li {
  margin-bottom: 0;
}
.main-nav a {
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 700;
  transition: color 0.15s;
  position: relative;
}
.main-nav a:not(.button-primary):hover {
  color: var(--color-secondary);
}
.main-nav img {
  max-height: 46px;
}

/***************************
*   MOBILE MENU
***************************/
.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  z-index: 110;
  transition: color var(--transition-fast);
}
.mobile-menu-toggle:focus {
  color: var(--color-secondary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 100vw;
  height: 100%;
  background: var(--color-white);
  box-shadow: -4px 0 32px rgba(26,34,51,0.12);
  transform: translateX(100%);
  transition: transform var(--transition-med);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  padding: 32px 24px 24px 24px;
  gap: 20px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  right: 24px;
  top: 24px;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  z-index: 1210;
  transition: color var(--transition-fast);
}
.mobile-menu-close:hover {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 32px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.20rem;
  color: var(--color-primary);
  font-weight: 700;
  padding: 12px 0;
  border-radius: 6px;
  transition: background .12s, color .18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-secondary);
  background: var(--color-accent);
}

/***************************
*   BUTTONS
***************************/
.button-primary,
.button-primary:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  font-size: 1.16rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--color-white);
  background: var(--color-secondary);
  border: none;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 24px 0 rgba(70,177,105,0.06);
  cursor: pointer;
  transition: background var(--transition-fast), box-shadow var(--transition-fast), transform 0.10s;
  outline: none;
}
.button-primary:hover, .button-primary:focus {
  background: #2f9950;
  color: var(--color-white);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 32px 0 rgba(70,177,105,0.12);
}

/***************************
*   SECTIONS & FLEX CONTAINERS
***************************/
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-top: 28px;
}
.features-grid > div {
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 340px;
  background: var(--color-white);
  border-radius: var(--border-radius);
  padding: 28px 20px 24px 20px;
  box-shadow: 0 4px 24px 0 rgba(26,34,51,0.06);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow var(--transition-med), transform var(--transition-fast);
}
.features-grid > div:hover {
  box-shadow: 0 8px 36px 0 rgba(70,177,105,0.12);
  transform: translateY(-3px) scale(1.02);
}
.features-grid img {
  width: 38px;
  margin-bottom: 10px;
}

.services-list,
.case-study-list,
.articles-list,
.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.service-card, .case-study-card, .article-card {
  flex: 1 1 300px;
  max-width: 366px;
  min-width: 230px;
  background: var(--color-white);
  border-radius: var(--border-radius);
  padding: 28px 20px 20px 20px;
  box-shadow: 0 4px 24px 0 rgba(26,34,51,0.05);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 5px solid var(--color-secondary);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
  position: relative;
}
.service-card:hover, .case-study-card:hover, .article-card:hover {
  box-shadow: 0 16px 40px 0 rgba(26,34,51,0.10);
  transform: translateY(-2px) scale(1.01);
}
.service-card h3 span {
  font-size: 1rem;
  color: var(--color-secondary);
  font-weight: 700;
  margin-left: 6px;
}

.faq-list > div {
  flex: 1 1 300px;
  max-width: 366px;
  min-width: 220px;
  background: var(--color-accent);
  border-radius: var(--border-radius);
  padding: 20px 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px 0 rgba(26,34,51,0.045);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.faq-list > div:hover {
  box-shadow: 0 6px 20px 0 rgba(70,177,105,0.08);
  transform: scale(1.017);
}

/***************************
*   TESTIMONIALS & REVIEWS
***************************/
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px 0 rgba(26,34,51,0.08);
  margin-bottom: 24px;
  border-left: 6px solid var(--color-secondary);
  position: relative;
  min-height: 80px;
  font-size: 1.16rem;
}
.testimonial-card p {
  color: #222e45;
  font-size: 1.13rem;
  margin-bottom: 0;
}
.testimonial-card span {
  color: var(--color-secondary);
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 1rem;
  margin-left: auto;
}

/***************************
*   FLEX UTILITY CLASSES
***************************/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  margin-bottom: 20px;
}
.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;
}

/***************************
*   MAP PLACEHOLDER (& DECORATIVES)
***************************/
.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: var(--color-grey-100);
  border-radius: var(--border-radius);
  padding: 16px 24px;
  margin-top: 18px;
}
.map-placeholder img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  border-radius: 8px;
}
.map-placeholder span {
  font-size: 0.96rem;
  color: var(--color-primary);
  opacity: 0.88;
}

/***************************
*   FOOTER
***************************/
footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 48px 0 18px 0;
  margin-top: 40px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: 0.97rem;
  color: #d4e3df;
  font-weight: 700;
  margin: 0 0 10px 0;
}
footer nav a {
  color: #d4e3df;
  font-weight: 700;
  transition: color 0.17s;
  position: relative;
}
footer nav a:hover {
  color: var(--color-secondary);
}
footer img {
  height: 48px;
  margin-bottom: 7px;
}
footer p, footer b, footer span, footer a {
  color: #e7eaf1;
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 3px;
}
footer .content-wrapper > div {
  min-width: 200px;
  max-width: 370px;
  flex: 1 1 200px;
}
footer .content-wrapper > div:last-child img {
  display: inline-block;
  margin-right: 10px;
  height: 28px;
  vertical-align: middle;
}

/***************************
*   WHITE CARD/SECTION SPACINGS
***************************/
.text-section {
  background: var(--color-white);
  border-radius: var(--border-radius);
  padding: 30px 24px 16px 24px;
  box-shadow: 0 2px 16px 0 rgba(26,34,51,0.07);
  margin-bottom: 20px;
}

/***************************
*   GENERAL ELEMENT SPACING
***************************/
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
section:last-child {
  margin-bottom: 0;
}
section .container {
  padding: 0 20px;
}
h1, h2, h3, h4 {
  margin-top: 0;
}
section p, section ul, section ol {
  margin-bottom: 10px;
  max-width: 730px;
}
.section:not(.hero) {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/***************************
*   MICRO-INTERACTIONS & EFFECTS
***************************/
.card,
.service-card,
.case-study-card,
.article-card,
.features-grid > div,
.faq-list > div,
.testimonial-card {
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover,
.service-card:hover,
.case-study-card:hover,
.article-card:hover,
.features-grid > div:hover,
.faq-list > div:hover,
.testimonial-card:hover {
  box-shadow: 0 12px 32px 0 rgba(70,177,105,0.14);
  transform: translateY(-2px) scale(1.018);
}

/***************************
*   COOKIE CONSENT BANNER
***************************/
#cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1800;
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: 0 -2px 18px 0 rgba(26,34,51,0.1);
  padding: 28px 16px 28px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  transition: transform 0.3s;
  max-width: 520px;
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  opacity: 0;
  pointer-events: none;
}
#cookie-banner.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
#cookie-banner p {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 4px;
}
#cookie-banner .cookie-btn-row {
  display: flex;
  gap: 16px;
  margin-top: 5px;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 11px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  margin-right: 5px;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.cookie-btn.accept {
  background: var(--color-secondary);
  color: var(--color-white);
}
.cookie-btn.accept:hover {
  background: #2f9950;
}
.cookie-btn.reject {
  background: var(--color-grey-200);
  color: var(--color-primary);
}
.cookie-btn.reject:hover {
  background: #e2e6ee;
}
.cookie-btn.settings {
  background: none;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}
.cookie-btn.settings:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

/***************************
*   COOKIE SETTINGS MODAL
***************************/
#cookie-modal {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 2010;
  background: rgba(26,34,51,0.33);
  justify-content: center;
  align-items: flex-end;
  padding: 16px;
  transition: opacity 0.24s;
}
#cookie-modal.open {
  display: flex;
  opacity: 1;
  animation: fadeInModal 0.32s;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: var(--color-white);
  color: var(--color-primary);
  border-radius: 18px 18px 8px 8px;
  padding: 32px 24px 18px 24px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 10px 60px 0 rgba(26,34,51,0.15);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: popModal 0.24s;
}
@keyframes popModal {
  from { transform: scale(0.95); opacity: 0.5; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal-content h2 {
  margin-bottom: 7px;
  font-size: 1.34rem;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: 10px;
  padding: 12px 0 6px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cookie-category label {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.04rem;
}
.cookie-switch {
  position: relative;
  width: 40px;
  height: 22px;
  display: inline-block;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  background: #d5dbe2;
  border-radius: 14px;
  top: 0; left: 0;
  right: 0; bottom: 0;
  transition: background 0.2s;
}
.cookie-switch input:checked + .cookie-slider {
  background: var(--color-secondary);
}
.cookie-slider:before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-white);
  transition: transform 0.15s;
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(18px);
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.cookie-modal-close {
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 1.6rem;
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  transition: color var(--transition-fast);
}
.cookie-modal-close:hover {
  color: var(--color-secondary);
}

/***************************
*   RESPONSIVE DESIGN
***************************/
@media (max-width: 1050px) {
  .footer .content-wrapper, footer .content-wrapper {
    flex-wrap: wrap;
    gap: 20px;
    flex-direction: column;
    align-items: flex-start;
  }
  .main-nav ul {
    gap: 14px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
    padding: 0 10px;
  }
  .main-nav ul {
    gap: 12px;
  }
  .content-wrapper {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding: 0 7px;
  }
  .content-wrapper {
    gap: 12px;
  }
  h1, .h1 {
    font-size: 2rem;
    margin-bottom: 13px;
  }
  h2, .h2 {
    font-size: 1.4rem;
    margin-bottom: 13px;
  }
  .main-nav ul {
    display: none;
  }
  .main-nav a.button-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    margin-left: auto;
    background: none;
    border: none;
    font-size: 2.3rem;
    color: var(--color-primary);
    position: absolute;
    right: 22px;
    top: 18px;
    z-index: 111;
  }
  .main-nav {
    min-height: 62px;
    padding: 12px 0 12px 0;
    gap: 0;
  }
  .features-grid, .services-list, .case-study-list, .articles-list, .faq-list {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  .map-placeholder img {
    height: 100px;
  }
  #cookie-banner {
    max-width: calc(100vw - 12px);
    left: 0; right: 0;
    transform: translateY(100%);
  }
  #cookie-banner.active {
    transform: translateY(0);
  }
  #cookie-modal .cookie-modal-content {
    max-width: 98vw;
  }
}

@media (max-width: 540px) {
  .main-nav img {
    max-height: 34px;
  }
  .features-grid > div, .service-card, .case-study-card, .faq-list > div, .article-card {
    min-width: 0;
    max-width: 99vw;
    padding: 18px 10px;
    font-size: 0.97rem;
  }
  .text-section {
    padding: 18px 8px 10px 8px;
  }
}

/***************************
*   MISC/HELPER
***************************/
::-webkit-input-placeholder { color: #ced4db; }
::-moz-placeholder { color: #ced4db; }
:-ms-input-placeholder { color: #ced4db; }
::placeholder { color: #ced4db; opacity:1; }

[tabindex]:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/***************************
*   SCROLLBAR (optional - consistent look)
***************************/
body::-webkit-scrollbar {
  width: 9px;
  background: var(--color-accent);
}
body::-webkit-scrollbar-thumb {
  background: var(--color-grey-300);
  border-radius: 6px;
}

/***************************
*   End of CSS
***************************/
