/* ================= CSS RESET & DEFAULTS ======================= */
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #26332B;
  background: #F2F6FA;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
  border: 0;
}
a {
  color: #23616A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #11798A;
  outline: none;
}
ul, ol {
  padding-left: 1.2em;
  margin-bottom: 1.3em;
}
ul {
  list-style-type: disc;
}
li {
  margin-bottom: 0.55em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #1F2A44;
  margin-bottom: 18px;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.6rem;
  font-weight: 700;
}
h2 {
  font-size: 2rem;
  font-weight: 600;
}
h3 {
  font-size: 1.3rem;
  font-weight: 500;
}
p {
  margin-bottom: 1.25em;
}
strong {
  font-weight: 600;
  color: #23616A;
}

/* =================== BRAND COLORS & ORGANIC PALETTE ================== */
:root {
  --primary: #1F2A44;
  --primary-rgb: 31,42,68;
  --secondary: #F2F6FA;
  --accent: #11798A;
  --accent-dark: #23616A;
  --earth-1: #e0dec7;
  --earth-2: #cbe3bf;
  --earth-3: #c0af7b;
  --leaf-1: #6DB28F;
  --leaf-dark: #43664A;
  --bg-light: #FAFAF5;
  --shadow: 0 2px 12px rgba(67,102,74,0.07), 0 1.5px 6px rgba(31,42,68,0.05);
}

/* ================== CONTAINER, SECTION & LAYOUT ==================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--bg-light);
  border-radius: 28px;
  box-shadow: var(--shadow);
  position: relative;
}
@media (max-width: 600px) {
  .section {
    padding: 26px 8px;
    margin-bottom: 32px;
    border-radius: 18px;
  }
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 900px) {
  .content-wrapper {
    gap: 24px;
  }
}
.text-section {
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

/* ================== FLEX UTILS ==================== */
.card-container, .services-overview, .features-list, .content-grid, .case-study-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
@media (max-width: 900px) {
  .card-container, .services-overview, .features-list, .content-grid, .case-study-list {
    gap: 16px;
  }
}
.card {
  margin-bottom: 20px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform .18s, box-shadow .18s;
}
.card:hover {
  transform: translateY(-4px) scale(1.022);
  box-shadow: 0 6px 24px rgba(35,97,106,0.12), 0 2px 8px rgba(31,42,68,0.07);
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 20px;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(109,178,143,0.08), 0 1.5px 7px rgba(67,102,74,0.07);
  margin-bottom: 20px;
  transition: box-shadow .17s;
  min-width: 0;
  border-left: 6px solid var(--leaf-1);
}
.testimonial-card p {
  color: #26332B;
  font-size: 1.08rem;
  font-style: italic;
}
.testimonial-card strong {
  color: var(--accent-dark);
}
.testimonial-card span {
  font-size: 0.97rem;
  color: #6D7B6B;
}
.testimonial-card:hover {
  box-shadow: 0 8px 30px rgba(34,97,106,.16), 0 2px 8px rgba(67,102,74,0.10);
}

@media (min-width: 900px) {
  .testimonial-card {
    max-width: 48%;
  }
}

/* ========= FEATURES, ICON LISTS, SERVICES ========= */
.features-list, .services-overview {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.features-list li, .services-overview li {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 340px;
  padding: 24px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  transition: box-shadow .18s, transform .15s;
  position: relative;
  border-left: 5px solid var(--leaf-1);
}
.features-list li:hover, .services-overview li:hover {
  box-shadow: 0 8px 28px rgba(34,97,106,.13), 0 2px 8px rgba(67,102,74,0.08);
  transform: translateY(-2px) scale(1.018);
}
.features-list img, .services-overview img {
  width: 44px;
  margin-bottom: 10px;
  filter: saturate(0.65) brightness(0.97);
}
.features-list h3, .services-overview h3 {
  margin-bottom: 6px;
  color: var(--accent-dark);
  font-size: 1.12rem;
  font-weight: 600;
}
.features-list p, .services-overview p {
  color: #33402E;
  font-size: 0.98rem;
}

/* ========== BUTTONS: CTA, Cookie, Nav ========== */
.cta-btn {
  background: var(--accent-dark);
  color: #fff !important;
  border: 0;
  border-radius: 99px 27px 99px 27px/32px 99px 27px 99px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.11rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 12px 38px;
  margin-top: 8px;
  margin-bottom: 14px;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(35,97,106,0.11);
  outline: none;
  transition: background .17s, box-shadow .17s, transform .16s;
  display: inline-block;
  min-width: 170px;
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--accent);
  box-shadow: 0 5px 18px rgba(109,178,143,0.17);
  transform: translateY(-2px) scale(1.015);
}

button,
input[type="submit"],
input[type="button"] {
  font-family: inherit;
  outline: none;
}

/* ======= HEADER, NAV, LOGO, MOBILE BURGER ======= */
header {
  width: 100%;
  background: #fff;
  border-bottom: 2px solid #e0dec7;
  box-shadow: 0 1px 8px rgba(33, 44, 68, 0.045);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}
header img {
  height: 46px;
  max-height: 60px;
  margin-right: 18px;
  display: block;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
header nav a {
  color: var(--primary);
  font-weight: 500;
  font-size: 1.01rem;
  border-radius: 16px;
  padding: 7px 17px;
  transition: background 0.1s, color 0.15s;
  margin-bottom: 0;
}
header nav a:hover, header nav a:focus {
  background: var(--earth-2);
  color: var(--accent);
}
header .cta-btn {
  margin: 0 0 0 18px;
  padding: 9px 26px;
  font-size: 0.99rem;
}

/* ========= MOBILE NAVIGATION BURGER ======== */
.mobile-menu-toggle {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 16px;
  width: 44px;
  height: 44px;
  margin-left: 14px;
  font-size: 2rem;
  line-height: 44px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(109,178,143,0.15);
  align-items: center;
  justify-content: center;
  transition: background 0.15s, box-shadow 0.17s;
  z-index: 9999;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--leaf-1);
  color: var(--primary);
}

@media (min-width: 992px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* ========== MOBILE MENU OVERLAY ============ */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(31,42,68,0.96);
  transform: translateX(-110vw);
  transition: transform 0.36s cubic-bezier(.89,-0.18,.37,1.2);
  z-index: 12000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 38px;
  padding-left: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu .mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: var(--leaf-dark);
  color: #fff;
  border: none;
  border-radius: 22px;
  width: 42px;
  height: 42px;
  font-size: 2.1rem;
  line-height: 42px;
  cursor: pointer;
  z-index: 12100;
  box-shadow: 0 2px 8px rgba(35,97,106,0.11);
  transition: background 0.14s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu .mobile-menu-close:hover, .mobile-menu .mobile-menu-close:focus {
  background: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 50px;
  width: 100%;
  padding-left: 0px;
  align-items: flex-start;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 13px 32px 13px 27px;
  border-radius: 18px;
  transition: background 0.12s, color 0.10s;
  margin-left: 0;
  margin-right: 0;
  width: 94%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(109,178,143,0.19);
  color: var(--accent);
}

@media (min-width: 992px) {
  .mobile-menu {
    display: none !important;
  }
  header nav { display: flex; }
}
@media (max-width: 991px) {
  header nav, header .cta-btn {
    display: none;
  }
}

/* ========== CASE STUDY FLEX ========== */
.case-study-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.case-study-list .text-section {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  flex: 1 1 300px;
  min-width: 240px;
  max-width: 340px;
  padding: 18px 16px;
  margin-bottom: 20px;
  margin-right: 0;
  margin-left: 0;
  transition: box-shadow 0.17s, transform .15s;
  position: relative;
  border-left: 4px solid var(--earth-2);
}
.case-study-list .text-section:hover {
  box-shadow: 0 7px 18px rgba(109,178,143,0.18), 0 1.5px 7px rgba(31,42,68,0.07);
  transform: translateY(-3px) scale(1.0145);
}
@media (max-width: 768px) {
  .case-study-list {
    flex-direction: column;
    gap: 14px;
  }
  .case-study-list .text-section {
    min-width: 0;
    max-width: 100%;
    padding: 13px 8px;
  }
}

/* =============== FOOTER =============== */
footer {
  background: var(--earth-1);
  padding: 44px 0 28px 0;
  border-top: 2px solid var(--leaf-dark);
  margin-top: 60px;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-right: 24px;
}
footer nav a {
  color: #375547;
  font-size: 0.99rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 5px 0;
  border-radius: 9px;
  transition: background 0.12s, color 0.13s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--leaf-1);
  color: #fff;
}
footer img {
  max-width: 77px;
  height: auto;
  margin-bottom: 21px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-contact p {
  color: #374634;
  font-size: 0.97rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}
.footer-contact img {
  width: 21px;
  margin: 0;
}
@media (max-width: 800px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  footer nav { flex-direction: row; gap: 9px; margin: 6px 0 13px 0; }
  .footer-contact { margin-top: 11px; }
  footer img { margin-bottom: 9px; }
}

/* ====== COOKIES CONSENT BANNER & MODAL ====== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fffbe4;
  color: #33402E;
  border-top: 2px solid var(--earth-2);
  box-shadow: 0 -2px 18px rgba(34,97,106,0.098);
  z-index: 30000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 19px 2vw 19px 2vw;
  gap: 24px;
  animation: slideUpCookie 0.42s ease;
}
@keyframes slideUpCookie {
  0% { transform: translateY(120%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-text {
  font-size: 0.98rem;
  max-width: 430px;
  margin-right: 10px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-btn, .cookie-settings-btn, .cookie-reject-btn {
  background: var(--leaf-1);
  color: #fff;
  border: 0;
  border-radius: 22px;
  font-size: 1.02rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 9px 24px;
  cursor: pointer;
  margin-right: 0;
  transition: background 0.13s, box-shadow 0.13s, color 0.10s;
  box-shadow: 0 2px 9px rgba(67,102,74,0.11);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--accent-dark);
}
.cookie-reject-btn {
  background: #c0af7b;
  color: var(--primary);
}
.cookie-reject-btn:hover, .cookie-reject-btn:focus {
  background: #a59664;
  color: #fff;
}
.cookie-settings-btn {
  background: #fff;
  color: var(--accent-dark);
  border: 1.5px solid var(--leaf-1);
}
.cookie-settings-btn:hover,
.cookie-settings-btn:focus {
  background: var(--leaf-1);
  color: #fff;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 12px 18px 12px;
  }
  .cookie-banner .cookie-actions { gap: 10px; }
}

/* =========== COOKIE MODAL =========== */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  z-index: 40000;
  background: rgba(35,97,106,0.46);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.38s;
}
@keyframes fadeInModal {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  padding: 36px 30px 30px 30px;
  box-shadow: 0 8px 32px rgba(109,178,143,0.13), 0 2px 8px rgba(67,102,74,0.09);
  min-width: 320px;
  max-width: 97vw;
  color: #23616A;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 23px;
  animation: popUpCookieModal 0.22s cubic-bezier(.44,1.4,.39,.99);
}
@keyframes popUpCookieModal {
  0% { transform: scale(0.82); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.4rem;
  margin-bottom: 7px;
  color: var(--accent-dark);
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 7px 0;
}
.cookie-modal .cookie-category label {
  font-size: 1.06rem;
  font-weight: 500;
  color: #26332B;
}
.cookie-modal .cookie-switch {
  width: 42px; height: 24px; background: var(--earth-1);
  border-radius: 22px;
  position: relative;
  transition: background 0.15s;
  margin-left: 8px;
}
.cookie-modal .cookie-switch input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-modal .cookie-slider {
  position: absolute;
  left: 3px; top: 2.5px;
  width: 19px; height: 19px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(35,97,106,.14);
  transition: left 0.15s, background 0.14s;
}
.cookie-modal .cookie-switch input:checked + .cookie-slider {
  left: 20px;
  background: var(--leaf-1);
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-top: 14px;
}
.cookie-modal .close-cookie-modal-btn {
  position: absolute;
  right: 18px; top: 14px;
  background: none;
  border: 0;
  color: var(--accent-dark);
  font-size: 2rem;
  cursor: pointer;
  padding: 3px 7px;
  line-height: 1;
  border-radius: 99px;
  transition: background 0.10s;
}
.cookie-modal .close-cookie-modal-btn:hover {
  background: var(--earth-2);
}

/* ============ PROCESS ICONS FLEX (How it Works) =============== */
.process-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 22px;
  margin-bottom: 16px;
}
.process-icons img {
  width: 48px;
  height: 48px;
  filter: grayscale(0.18) brightness(0.93) drop-shadow(0 2px 4px rgba(65,150,110,0.11));
}
@media (max-width: 540px) {
  .process-icons {
    gap: 14px;
    margin-top: 16px;
    margin-bottom: 7px;
  }
  .process-icons img { width: 36px; height: 36px; }
}

/* ========== FAQ STYLES =========== */
dl {
  margin-bottom: 0;
}
dt {
  font-weight: 600;
  color: var(--accent-dark);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  margin-top: 1.15em;
}
dd {
  margin: 0 0 9px 1.5em;
  color: #33402E;
  font-size: 0.98rem;
}

/* =========== ORGANIC SHAPES ============ */
.section:after {
  content: '';
  display: block;
  position: absolute;
  bottom: -19px; right: 16px;
  width: 72px; height: 32px;
  background: rgba(109,178,143,0.1);
  border-radius: 41px 29px 44px 21px / 44px 46px 21px 31px;
  z-index: 1;
}
.section:nth-of-type(even):after {
  left: 0; right: auto;
  background: rgba(198, 220, 191, .16);
}
@media (max-width: 670px) {
  .section:after {
    width: 44px; height: 16px; right: 4px; bottom: -7px;
  }
}

/* =============== TYPOGRAPHY SCALE ============== */
@media (max-width: 700px) {
  h1 { font-size: 2.0rem; }
  h2 { font-size: 1.55rem; }
  h3 { font-size: 1.08rem; }
  body { font-size: 15px; }
}

/* =============== INPUTS & FORMS =============== */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.03rem;
  border: 1.5px solid var(--earth-2);
  border-radius: 12px;
  padding: 10px 14px;
  background: #fff;
  transition: border 0.13s;
  margin-bottom: 16px;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--accent-dark);
}

/* ================ RESPONSIVENESS =============== */
@media (max-width: 900px) {
  .container {
    max-width: 99vw;
    padding: 0 6px;
  }
  .section {
    margin-bottom: 30px;
    padding: 23px 7px;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.46rem; }
  h2 { font-size: 1.17rem; }
  .section { border-radius: 13px; }
}

/* ============= UTILITIES & MICRO-ANIMATIONS ============ */
.fade-in {
  animation: fadeIn .55s;
}
@keyframes fadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }
.slide-up {
  animation: slideUp .46s;
}
@keyframes slideUp { 0% { transform: translateY(50px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }

/* ============ MISC FIXES =========== */
.section:last-child {
  margin-bottom: 20px;
}
.card:last-child,
.features-list li:last-child,
.services-overview li:last-child,
.testimonial-card:last-child {
  margin-bottom: 0;
}

/* ============ ACCESSIBILITY =============== */
:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 2px;
}

/* ============= HIDE SCROLL WHEN MODAL/MENU OPEN ============= */
html.menu-open, html.cookie-modal-open {
  overflow: hidden;
  height: 100vh;
}
