/* =================== CSS RESET & NORMALIZE =================== */
html {
  box-sizing: border-box;
  font-size: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  font-family: 'Open Sans', Arial, sans-serif;
  background: linear-gradient(135deg, #e0d8cb 0%, #c0bdaf 100%);
  color: #2E3937;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #2E3937;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #7ebfa7;
  outline: none;
}
ul, ol {
  margin-left: 1.4em;
  margin-bottom: 16px;
}
ul li,
ol li {
  margin-bottom: 8px;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  border: none;
  background: none;
  color: inherit;
}
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #C0BDAF;
}

/* =================== BRAND FONTS =================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Open+Sans:wght@400;600;700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #2E3937;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.25rem;
}

p, address {
  margin-bottom: 16px;
  color: #2E3937;
}

strong {
  font-weight: 600;
}

blockquote {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.5;
  color: #2E3937;
  background: #E0D8CB;
  padding: 20px 28px;
  border-left: 6px solid #C0BDAF;
  border-radius: 12px;
  margin-bottom: 12px;
}
cite {
  display: block;
  margin-top: 6px;
  color: #2E3937;
  opacity: 0.7;
  font-style: normal;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
}

/* =================== CONTAINER & LAYOUT =================== */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: rgba(255,255,255,0.85);
  border-radius: 24px;
  box-shadow: 0 3px 18px rgba(46,57,55,0.07);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(46,57,55,0.07);
  padding: 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(46,57,55,0.12);
  transform: translateY(-8px) scale(1.01);
}
.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: #FAF9F7;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(46,57,55,0.09);
  margin-bottom: 20px;
  flex-direction: column;
  max-width: 660px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-section {
  margin-bottom: 20px;
  background: #fff;
  padding: 18px 24px;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(46,57,55,0.06);
}

/* =================== NAVIGATION + HEADER =================== */
header {
  width: 100%;
  background: linear-gradient(135deg, #e0d8cb 0%, #c0bdaf 100%);
  box-shadow: 0 2px 16px 0 rgba(46,57,55,0.07);
  position: sticky;
  top: 0;
  z-index: 990;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  padding: 0 20px;
  gap: 24px;
  height: 72px;
  min-height: 72px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #2E3937;
  opacity: 0.84;
  transition: color 0.18s, opacity 0.2s, background 0.2s;
  border-radius: 8px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #c0bdaf1a;
  color: #22886b;
  opacity: 1;
}
.main-nav img {
  height: 36px;
  margin-right: 12px;
  margin-bottom: 0;
}
.cta-primary {
  background: linear-gradient(90deg, #2E3937 60%, #C0BDAF 100%);
  color: #fff !important;
  padding: 11px 26px;
  font-size: 1rem;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 30px;
  font-weight: 700;
  box-shadow: 0 2px 14px rgba(46,57,55,0.17);
  transition: background 0.24s, color 0.13s, transform 0.2s, box-shadow 0.19s;
}
.cta-primary:hover,
.cta-primary:focus {
  background: linear-gradient(90deg, #22886b 60%, #709c7c 100%);
  color: #fff !important;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 32px #C0BDAF50;
}

/* ========== MOBILE MENU =============== */
.mobile-menu-toggle {
  display: none;
}

.mobile-menu {
  display: none;
}

@media (max-width: 1080px) {
  .main-nav {
    gap: 10px;
    padding: 0 12px;
    height: 60px;
    min-height: 60px;
  }
  .main-nav img {
    height: 30px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 6px;
  }
  .cta-primary {
    padding: 9px 16px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    position: absolute;
    right: 22px;
    top: 14px;
    z-index: 1101;
    width: 40px;
    height: 40px;
    background: #2e3937;
    color: #fff;
    border-radius: 8px;
    font-size: 2rem;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 2px 8px rgba(46,57,55,0.09);
    transition: background 0.2s;
  }
  .mobile-menu-toggle:hover,
  .mobile-menu-toggle:focus {
    background: #22886b;
    color: #fff;
  }
  .mobile-menu {
    display: flex;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #c0bdaf 0%, #e0d8cb 100%);
    z-index: 1112;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.36s cubic-bezier(0.51,0,0.29,1), opacity 0.21s;
  }
  .mobile-menu.open {
    transform: translateX(0);
    opacity: 1;
  }
  .mobile-menu-close {
    position: absolute;
    right: 30px;
    top: 22px;
    background: none;
    font-size: 2.2rem;
    color: #2e3937;
    border: none;
    z-index: 1120;
    cursor: pointer;
    padding: 6px 18px;
    transition: color 0.2s;
  }
  .mobile-menu-close:hover,
  .mobile-menu-close:focus {
    color: #22886b;
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 90px;
    margin-left: 38px;
    width: 80vw;
  }
  .mobile-nav a {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.1rem;
    padding: 13px 0 13px 4px;
    color: #2e3937;
    background: none;
    border-radius: 8px;
    transition: background 0.17s, color 0.17s;
    font-weight: 700;
  }
  .mobile-nav a:hover,
  .mobile-nav a:focus {
    background: #c0bdaf30;
    color: #22886b;
  }
}

/* ========== HERO/SECTION SPACING ========== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

@media (max-width: 700px) {
  section {
    margin-bottom: 34px;
    padding: 30px 8px;
  }
}

/* ================== FLEX PATTERNS & RESPONSIVE ================== */
@media (max-width: 1080px) {
  .container {
    padding: 0 8px;
  }
}
@media (max-width: 900px) {
  .testimonial-card {
    max-width: 440px;
  }
}
@media (max-width: 768px) {
  .content-wrapper {
    gap: 12px;
  }
  .section,
  section {
    padding: 30px 6px;
  }
  .card-container,
  .content-grid,
  .feature-list,
  .features {
    flex-direction: column !important;
    gap: 14px !important;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .testimonial-card {
    padding: 15px 9px;
  }
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.1rem; }
}

/* ================== LIST WITH ICONS ================== */
ul li img,
ol li img {
  vertical-align: middle;
  margin-right: 8px;
  width: 27px;
  height: auto;
  display: inline-block;
}
ul li,
ol li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 1rem;
}
ul li strong,
ol li strong {
  font-weight: 600;
  margin-right: 2px;
}

/* ================== BUTTONS ================== */
button, .cta-primary {
  cursor: pointer;
  appearance: none;
}
button {
  background: #c0bdaf;
  color: #2e3937;
  border-radius: 8px;
  padding: 10px 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.19s, color 0.15s, box-shadow 0.15s, transform 0.15s;
  box-shadow: 0 2px 10px rgba(46,57,55,0.07);
}
button:hover, button:focus {
  background: #7ebfa7;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}

/* ================== FOOTER ================== */
footer {
  background: #2E3937;
  color: #fff;
  padding: 32px 0 18px;
  box-shadow: 0 -1px 10px #2e39371a;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  width: 100%;
}
.footer-nav a {
  color: #fff;
  font-size: 1rem;
  opacity: 0.83;
  transition: color 0.16s, opacity 0.2s;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
.footer-nav a:hover,
.footer-nav a:focus {
  opacity: 1;
  color: #C0BDAF;
}

@media (max-width: 600px) {
  .footer-nav {
    flex-direction: column;
    gap: 9px;
  }
  footer {
    padding: 22px 0 10px;
  }
}

/* ================== COOKIE CONSENT BANNER ================== */
#cookie-consent-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 1500;
  background: linear-gradient(90deg,#E0D8CB 80%, #C0BDAF 100%);
  color: #2E3937;
  box-shadow: 0 -2px 24px #2e393738;
  padding: 18px 20px 16px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  opacity: 0;
  pointer-events: none;
  transform: translateY(60px);
  transition: transform 0.4s cubic-bezier(0.51,0,0.29,1),opacity 0.31s;
}
#cookie-consent-banner.show {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
#cookie-consent-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 22px;
  padding: 8px 24px;
  border: none;
  background: #2E3937;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 10px #c0bdaf21;
  transition: background 0.17s, color 0.12s, transform 0.13s;
}
.cookie-btn.settings {
  background: #c0bdaf;
  color: #2E3937;
}
.cookie-btn.reject {
  background: #be5151;
  color: #fff;
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: #22886b;
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: #7ebfa7;
  color: #fff;
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: #873d3d;
}
@media (max-width: 600px) {
  #cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    padding: 17px 8px 13px 10px;
    font-size: 0.97rem;
  }
  #cookie-consent-banner .cookie-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
  }
}

/* ========== COOKIE MODAL ========== */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1600;
  background: rgba(46,57,55,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.21s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.show {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 48px #2e393722;
  padding: 32px 38px 32px 32px;
  max-width: 410px;
  min-width: 270px;
  color: #2E3937;
  font-family: 'Open Sans', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
}
.cookie-modal h3 {
  margin: 0 0 10px 0;
  font-size: 1.3rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
}
.cookie-category label {
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #22886b;
}
.cookie-modal-toggle {
  width: 40px;
  height: 22px;
  border-radius: 15px;
  background: #c0bdaf;
  position: relative;
  cursor: pointer;
  transition: background 0.17s;
  display: inline-block;
}
.cookie-modal-toggle input[type="checkbox"] {
  display: none;
}
.cookie-modal-toggle span {
  position: absolute;
  left: 3px; top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.20s, background 0.17s;
  box-shadow: 0 1px 4px #2e393728;
}
.cookie-modal-toggle input[type="checkbox"]:checked + span {
  left: 21px;
  background: #22886b;
}
.cookie-modal-footer {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 12px;
  align-items: center;
}
.cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.8rem;
  color: #2e3937;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.64;
  transition: color 0.16s, opacity 0.13s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: #22886b;
  opacity: 1;
}
@media (max-width: 528px) {
  .cookie-modal {
    padding: 18px 9px 22px 9px;
    min-width: unset;
    width: 98vw;
    max-width: 96vw;
  }
}

/* ==== MICROINTERACTIONS ==== */
a, button, .cta-primary, .cookie-btn, .cookie-modal-close {
  transition: color 0.15s, background 0.18s, box-shadow 0.17s, transform 0.16s;
}

/* ===== FORMATTING ===== */
.text-section {
  margin-bottom: 20px;
  background: #fff;
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(46,57,55,0.05);
  color: #2e3937;
}
.text-section strong { font-weight: 700; }

address {
  font-style: normal;
  line-height: 1.6;
  color: #2E3937;
}

/* ==== VISUAL HIERARCHY ON BLOG/PROJECT/INFO PAGES ==== */
h1 + .text-section,
h2 + .text-section {
  margin-top: -10px;
}

/* ==== GENERAL SPACING FOR CONTENT ==== */
main, .container, .content-wrapper, .section, section {
  word-break: break-word;
}

main {
  min-height: 60vh;
}

/* ========== FOCUS VISIBILITY FOR A11Y ========== */
a:focus, button:focus, .cta-primary:focus {
  box-shadow: 0 0 0 3px #C0BDAF88;
  outline: none;
}

/* ========== PRINT OPTIMIZATION ========== */
@media print {
  header, footer, .mobile-menu, #cookie-consent-banner, .cookie-modal-overlay {
    display: none !important;
  }
}
