/* --- 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 {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  background: #FAFAF8;
  color: #2B3843;
  font-size: 16px;
  line-height: 1.6;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #2B3843;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #7CA084;
}
ul, ol {
  padding-left: 20px;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
  background: none;
}
button {
  cursor: pointer;
}

/* --- Typography --- */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.15;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.2;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 10px;
  line-height: 1.25;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.12rem;
  margin-bottom: 6px;
  line-height: 1.2;
}
p, li, blockquote {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 10px;
}
blockquote {
  font-style: italic;
  padding-left: 16px;
  border-left: 4px solid #7CA08420;
  color: #505D63;
  margin-bottom: 6px;
}
strong, b {
  font-weight: 600;
}

/* --- Container and Section Layouts --- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.text-section {
  align-items: flex-start;
  text-align: left;
  gap: 14px;
}

/* --- Flex Layouts as Required --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 16px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 8px #050d180d;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 4px 18px #2b384320;
  transform: translateY(-2px) scale(1.015);
}
.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;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 8px #2b384316;
  margin-bottom: 22px;
  transition: box-shadow .2s, transform .2s;
}
.testimonial-card:hover {
  box-shadow: 0 3px 20px #2b384329;
  transform: translateY(-2px) scale(1.01);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 1 260px;
  min-width: 220px;
  background: #F7F6F2;
  border-radius: 10px;
  padding: 24px 18px;
  box-shadow: 0 1px 8px #89919e0e;
  margin-bottom: 20px;
  transition: box-shadow 0.16s;
}
.feature-item:hover {
  box-shadow: 0 4px 22px #555d690e;
}

/* Specific for project summaries, callout, tags */
.project-card {
  background: #F4EDE0;
  border: 1px solid #E7E2D2;
}
.callout-block {
  background: #FAF6ED;
  color: #2B3843;
  border-left: 4px solid #7CA084;
  border-radius: 8px;
  padding: 16px 22px;
  margin-top: 24px;
  margin-bottom: 24px;
  font-size: 1.08rem;
}
.tag, .tag-list .tag {
  display: inline-block;
  background: #7CA08415;
  color: #2B3843;
  border-radius: 16px;
  padding: 4px 14px;
  font-size: 0.95em;
  margin-right: 8px;
  margin-bottom: 6px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 18px;
}

/* --- Navigation --- */
header {
  background: #fff;
  box-shadow: 0 2px 18px #323a460d;
  position: sticky;
  top: 0;
  z-index: 20;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  justify-content: flex-start;
  padding: 20px 18px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #2B3843;
  font-weight: 500;
  padding: 7px 15px;
  border-radius: 6px;
  transition: background .15s, color .15s;
  font-size: 1rem;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F4EDE0;
  color: #7CA084;
}
.main-nav a.cta {
  background: #7CA084;
  color: #fff;
  border-radius: 24px;
  padding: 8px 26px;
  font-weight: 600;
  margin-left: auto;
  transition: background .16s, color .16s, box-shadow .16s;
  box-shadow: 0 2px 8px #2b384313;
}
.main-nav a.cta:hover, .main-nav a.cta:focus {
  background: #2B3843;
  color: #fff;
  box-shadow: 0 8px 16px #7CA08430;
}
.main-nav img {
  height: 38px;
  margin-right: 16px;
}

/* --- Footer --- */
footer {
  background: #fff;
  color: #2B3843;
  border-top: 1px solid #ede8df;
  margin-top: 80px;
  padding: 50px 0 30px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 54px;
  align-items: flex-start;
  justify-content: flex-start;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer a {
  color: #2B3843;
  font-size: 0.99rem;
  transition: color .15s;
}
footer a:hover {
  color: #7CA084;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.footer-contact img {
  height: 18px;
  margin-right: 8px;
  vertical-align: middle;
}
footer small {
  color: #7CA08499;
  margin-top: 18px;
  flex-basis: 100%;
}

/* --- Button Styles --- */
.cta, .btn, .cookie-btn {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 24px;
  padding: 10px 32px;
  font-size: 1.05rem;
  font-weight: 600;
  background: #7CA084;
  color: #fff;
  border: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  cursor: pointer;
  box-shadow: 0 1px 5px #2b384312;
  margin-top: 12px;
}
.cta {
  color: #fff !important;
}
.cta:hover, .btn:hover, .cookie-btn:hover,
.cta:focus, .btn:focus, .cookie-btn:focus {
  background: #2B3843;
  color: #fff;
  box-shadow: 0 6px 16px #7CA08419;
}
.btn-secondary {
  background: #F4EDE0;
  color: #2B3843;
  font-weight: 600;
  border-radius: 24px;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #ede6d2;
  color: #2B3843;
}
.btn-outline {
  background: transparent;
  border: 2px solid #7CA084;
  color: #7CA084;
  transition: background .15s, color .15s;
}
.btn-outline:hover, .btn-outline:focus {
  background: #7CA084;
  color: #fff;
}

/* --- Mobile Menu --- */
.mobile-menu-toggle {
  display: none;
  background: #fff;
  border: none;
  color: #2B3843;
  font-size: 2.2rem;
  line-height: 1;
  padding: 8px 22px 8px 8px;
  border-radius: 10px;
  margin-left: auto;
  z-index: 24;
  transition: background .13s, color .13s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #F4EDE0;
  color: #7CA084;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 90vw;
  max-width: 350px;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.74,.02,.36,.97);
  z-index: 999;
  box-shadow: -6px 0 22px #1A2B4C22;
  padding: 30px 28px 22px 24px;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  color: #2B3843;
  font-size: 2rem;
  border: none;
  margin-bottom: 12px;
  transition: color .12s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #7CA084;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.14rem;
  color: #2B3843;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid #EEE9DD;
  transition: color 0.15s, background 0.12s;
  min-width: 70px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #7CA084;
  background: #F4EDE0;
  border-radius: 8px;
  padding-left: 8px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .container {
    max-width: 900px;
    padding: 0 10px;
  }
  .main-nav {
    gap: 12px;
    padding: 18px 10px;
  }
  .feature-grid {
    gap: 22px;
  }
}
@media (max-width: 900px) {
  .feature-grid {
    gap: 18px;
  }
  .card {
    padding: 24px 15px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .section {
    margin-bottom: 38px;
    padding: 28px 6px;
  }
  .content-wrapper {
    gap: 16px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .card, .feature-item, .testimonial-card {
    padding: 16px 10px;
    margin-bottom: 14px;
    min-width: unset;
  }
  footer .container {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
@media (max-width: 520px) {
  h1, .h1 { font-size: 1.3rem; }
  h2 { font-size: 1.09rem; }
  .main-nav a, .mobile-nav a { font-size: 1rem; }
  .cta, .btn { font-size: .99rem; padding: 7px 14px; }
  footer .container { padding: 0 6px; }
}

/* --- Animations & Transitions --- */
.cta, .btn, .btn-secondary, .btn-outline, .cookie-btn {
  transition: background 0.19s, color 0.19s, box-shadow 0.19s, transform .18s;
}
.mobile-menu, .mobile-menu-close {
  transition: transform .28s, color .15s;
}
.mobile-menu.open {
  animation: slideInMenu .34s cubic-bezier(.74,.02,.36,.97);
}
@keyframes slideInMenu {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background: #fff;
  color: #2B3843;
  box-shadow: 0 -2px 24px #2b384328;
  padding: 18px 20px 20px 20px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  font-size: 1rem;
  animation: cookieIn .9s cubic-bezier(.63,.02,.2,1);
}
@keyframes cookieIn {
  from { opacity: 0; transform: translateY(60px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner .cookie-btn {
  margin-right: 12px;
  margin-bottom: 0;
  min-width: 120px;
}
.cookie-banner .cookie-btn:last-child {
  margin-right: 0;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: #2B384366;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.34s cubic-bezier(.7,.02,.36,1);
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  max-width: 400px;
  width: 92vw;
  padding: 30px 22px 24px 22px;
  box-shadow: 0 10px 46px #2b384360;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal .cookie-modal-close {
  background: transparent;
  color: #2B3843;
  font-size: 1.5rem;
  position: absolute;
  top: 10px;
  right: 16px;
  border: none;
  cursor: pointer;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  color: #7CA084;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-category label {
  font-size: 1rem;
}
.cookie-category input[type='checkbox'] {
  accent-color: #7CA084;
  width: 21px; height: 21px;
}
.cookie-category.cookie-essential label {
  color: #2B3843;
  font-weight: 600;
}

/* --- Utilities & Minor Styles --- */
::-webkit-scrollbar { width: 9px; background: #FAFAF8; }
::-webkit-scrollbar-thumb { background: #F4EDE0; border-radius: 5px; }

hr {
  border: none;
  border-top: 1px solid #EEE9DD;
  margin: 32px 0;
}

/* Links in text sections */
.text-section a, .content-wrapper.text-section a:not(.cta) {
  color: #7CA084;
  text-decoration: underline;
  font-weight: 500;
  position: relative;
  transition: color .12s;
}
.text-section a:hover, .content-wrapper.text-section a:not(.cta):hover {
  color: #2B3843;
  text-decoration: underline;
}

/* List improvements */
ul li, ol li {
  margin-bottom: 5px;
  padding-left: 2px;
}

/* --- Accessibility --- */
:focus {
  outline: 2px solid #7CA084;
  outline-offset: 2px;
}

/* --- Content Specific Spacing for Consistency --- */
.feature-item:not(:last-child) {
  margin-right: 0;
}
.content-wrapper > *:not(:last-child) {
  margin-bottom: 12px;
}

/* --- Ensure No Overlaps & Proper Z-Index --- */
body > .cookie-banner { z-index: 1050; }
.mobile-menu { z-index: 999; }
.mobile-menu-toggle { z-index: 1002; }

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