/* ==== 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.45;
  background: #F2F2EF;
  color: #27333F;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s cubic-bezier(.4,0,.2,1);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ==== BRAND VARIABLES ==== */
:root {
  --primary: #27333F;
  --secondary: #78A465;
  --accent: #F2F2EF;
  --gray-100: #F7F8FA;
  --gray-200: #E5E8EC;
  --gray-300: #CAD1D9;
  --gray-600: #727B88;
  --shadow-main: 0 2px 12px 0 rgba(39,51,63,0.07);
  --radius: 10px;
  --transition-main: all 0.23s cubic-bezier(.4,0,.2,1);
}

html {
  font-size: 16px;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: var(--accent);
  color: var(--primary);
  min-height: 100vh;
  font-size: 1rem;
  letter-spacing: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.18;
}

h1 {
  font-size: 2.25rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.65rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 10px;
}

p, ul, ol {
  margin-bottom: 18px;
  color: var(--primary);
  font-size: 1rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 400;
}
strong, b {
  font-weight: 600;
  color: var(--primary);
}
a:hover, a:focus {
  color: var(--secondary);
}

/* ==== CONTAINER & GENERAL LAYOUT ==== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.text-section {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ==== HEADER & NAVIGATION ==== */
header {
  background: #fff;
  box-shadow: var(--shadow-main);
  position: sticky;
  top: 0;
  z-index: 1001;
  width: 100%;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
header img {
  height: 44px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary);
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  transition: border-bottom 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
}

.cta-btn {
  background: var(--secondary);
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 32px;
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px 0 rgba(120,164,101,0.17);
  cursor: pointer;
  transition: var(--transition-main);
  display: inline-block;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: #628750;
  color: #fff;
  box-shadow: 0 8px 28px 0 rgba(120,164,101,0.25);
  transform: translateY(-2px) scale(1.035);
}

/* ==== MOBILE MENU ==== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--primary);
  cursor: pointer;
  margin-left: 8px;
  z-index: 1010;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--secondary);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(39,51,63,0.96);
  box-shadow: 0 4px 32px 0 rgba(39,51,63,0.30);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  overflow-y: auto;
  z-index: 1200;
  padding: 32px 24px;
}
.mobile-menu.active {
  transform: translateX(0);
  transition: transform 0.32s cubic-bezier(.42,0,.65,1.2);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.6rem;
  cursor: pointer;
  margin-bottom: 32px;
  padding: 4px 12px;
  line-height: 1;
  border-radius: 4px;
  transition: background 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat';
  font-size: 1.25rem;
  font-weight: 600;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.13);
  transition: color 0.16s, background 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
  background: rgba(39,51,63,0.15);
  padding-left: 10px;
}

@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* Display mobile menu on mobile only */
@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ==== HERO SECTION ==== */
.hero-section {
  background: linear-gradient(120deg, #f2f2ef 77%, #e5e8ec 100%);
  padding: 60px 0 50px 0;
  margin-bottom: 60px;
}
.hero-section .content-wrapper {
  align-items: flex-start;
  gap: 16px;
}
.hero-section h1 {
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.hero-section p {
  font-size: 1.15rem;
  color: var(--primary);
  max-width: 700px;
}
.hero-section .cta-btn {
  margin-top: 18px;
}

/* ==== SECTIONS GENERAL ==== */
section {
  background: none;
  border-radius: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-main);
}

/* ==== FLEXBOX LAYOUTS ==== */
/* Features */
.feature-grid, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
  margin-top: 20px;
}
.feature-grid > div, .service-list > div {
  flex: 1 1 260px;
  min-width: 215px;
  background: #fff;
  box-shadow: 0 1px 8px 0 rgba(39,51,63,0.05);
  border-radius: var(--radius);
  padding: 30px 20px 26px 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-grid > div:hover, .service-list > div:hover {
  box-shadow: 0 6px 28px 0 rgba(39,51,63,0.14);
  transform: translateY(-2px) scale(1.016);
}
.feature-grid img, .service-list img {
  width: 46px;
  height: 46px;
  margin-bottom: 10px;
}

/* Card abstractions */
.card, .testimonial-card, .project-story {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-main);
  padding: 28px 28px 20px 28px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  min-width: 240px;
}

/* Project stories */
.project-story {
  border-left: 4px solid var(--secondary);
}

.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;
    gap: 22px;
  }
}

/* ==== Testimonials ==== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 26px 16px 26px;
  margin-bottom: 20px;
  background: var(--gray-100);
  border-left: 4px solid var(--secondary);
  box-shadow: 0 2px 12px 0 rgba(120,164,101,0.07);
  color: var(--primary);
}
.testimonial-card p {
  color: var(--primary);
  font-size: 1.06rem;
  font-style: italic;
}
.testimonial-card span {
  color: var(--gray-600);
  font-size: 0.97rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  margin-top: 7px;
}

/* ==== List & FAQ ==== */
ul, ol {
  margin-left: 21px;
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 18px;
  color: var(--primary);
  font-size: 1rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
ul li:before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 100%;
  background: var(--secondary);
  position: absolute;
  left: 0;
  top: 8px;
}

.faq h3 {
  font-size: 1.08rem;
  color: var(--primary);
  margin-bottom: 3px;
}
.faq p {
  margin-bottom: 15px;
  font-size: 0.99rem;
  color: var(--primary);
}

/* ==== Features/Benefits ==== */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
}

/* ==== CTA Section ==== */
.text-section .cta-btn {
  margin-top: 7px;
  margin-bottom: 13px;
}

/* ==== FOOTER ==== */
footer {
  background: #fff;
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 -2px 8px 0 rgba(39,51,63,0.06);
  margin-top: 60px;
}
.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 28px 12px 30px 12px;
}
.footer-nav {
  display: flex;
  gap: 24px;
  margin-bottom: 7px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-nav a {
  font-size: 0.97rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--primary);
  font-weight: 500;
  padding: 4px 3px;
  border-bottom: 1.5px solid transparent;
  transition: border-bottom 0.19s, color 0.19s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--secondary);
  border-bottom: 1.5px solid var(--secondary);
}
footer p {
  font-size: 0.97rem;
  color: var(--gray-600);
}

/* ==== RESPONSIVE DESIGN ==== */
@media (max-width: 992px) {
  .footer-nav {
    gap: 14px;
  }
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  .header-container {
    gap: 12px;
    padding-top: 13px;
    padding-bottom: 13px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }
  .content-wrapper, .text-section, .feature-grid, .service-list, .content-grid {
    gap: 13px;
  }
  .feature-grid, .service-list {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div, .service-list > div {
    min-width: 0;
    width: 100%;
  }
  .hero-section {
    padding: 38px 0 32px 0;
    margin-bottom: 34px;
  }
  .section {
    margin-bottom: 40px;
    padding: 22px 8px;
  }
  .card, .testimonial-card, .project-story {
    padding: 18px 10px 13px 14px;
    font-size: 0.97rem;
  }
  .footer-container {
    gap: 6px;
    padding: 18px 6px 20px 6px;
  }
  h1 {
    font-size: 1.5rem;
    margin-bottom: 13px;
  }
  h2 {
    font-size: 1.15rem;
    margin-bottom: 11px;
  }
  h3 {
    font-size: 1rem;
    margin-bottom: 8px;
  }
}

@media (max-width: 425px) {
  .hero-section {
    padding: 25px 0 20px 0;
    margin-bottom: 14px;
  }
}

/* ==== HOVER/TRANSITIONS ==== */
section, .feature-grid > div, .service-list > div, .card, .testimonial-card, .project-story, .cta-btn {
  transition: var(--transition-main);
}

/* ==== FORMS & INTERACTIVE ELEMENTS ==== */
input[type="text"], input[type="email"], textarea {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.2px solid var(--gray-300);
  border-radius: var(--radius);
  background: #fff;
  color: var(--primary);
  margin-bottom: 16px;
  outline: none;
  transition: border 0.18s;
  width: 100%;
  max-width: 450px;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border: 1.3px solid var(--secondary);
}
button, .cta-btn {
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.18s;
}
button:focus, .cta-btn:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* ==== ACCESSIBILITY ==== */
a:focus, button:focus {
  outline: 2px dotted var(--secondary);
  outline-offset: 3px;
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 2px solid var(--secondary);
  box-shadow: 0 -2px 24px 0 rgba(39,51,63,0.16);
  padding: 22px 24px 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  z-index: 1600;
  flex-wrap: wrap;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: var(--primary);
  opacity: 1;
  transition: opacity 0.25s, transform 0.25s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(30px);
}
.cookie-banner-text {
  flex: 1 1 260px;
  min-width: 200px;
  margin-bottom: 8px;
}
.cookie-buttons {
  display: flex;
  gap: 16px;
  min-width: 220px;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 7px;
  padding: 10px 25px;
  border: none;
  transition: var(--transition-main);
}
.cookie-btn.accept {
  background: var(--secondary);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #628750;
}
.cookie-btn.reject {
  background: var(--gray-200);
  color: var(--primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--gray-300);
}
.cookie-btn.settings {
  background: #fff;
  color: var(--secondary);
  border: 1.3px solid var(--secondary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--secondary);
  color: #fff;
}

/* ==== COOKIE MODAL ==== */
.cookie-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.48);
  z-index: 1730;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 42px 0 rgba(39,51,63,0.20);
  max-width: 420px;
  width: 94vw;
  padding: 36px 24px 26px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  z-index: 1740;
}
.cookie-modal h2 {
  margin-bottom: 6px;
  font-size: 1.28rem;
  color: var(--primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.cookie-category label {
  font-size: 1rem;
  font-weight: 500;
}
.cookie-category input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--secondary);
  margin-right: 8px;
  outline: none;
}
/* Essential cookies always enabled */
.cookie-category input[disabled] {
  opacity: 0.5;
}
.cookie-modal-btns {
  display: flex;
  gap: 15px;
  margin-top: 7px;
}
.cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 18px;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--gray-600);
  cursor: pointer;
  transition: color 0.18s;
  padding: 3px;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--secondary);
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    gap: 16px;
    padding: 17px 8px 12px 8px;
  }
  .cookie-modal {
    padding: 23px 7px 16px 7px;
    max-width: 99vw;
  }
}

/* ==== MISC: Animations ==== */
@media (prefers-reduced-motion: no-preference) {
  .mobile-menu,
  .mobile-menu.active,
  .cookie-banner, .cookie-banner.hide,
  .cookie-modal-overlay, .cookie-modal-overlay.hide,
  .cta-btn {
    transition: all 0.3s cubic-bezier(.4,0,.2,1) !important;
  }
}

/* ==== OVERLAYS & Z-INDEX CLARITY ==== */
.mobile-menu, .cookie-banner, .cookie-modal-overlay, .cookie-modal {
  z-index: 1800;
}

/* ==== UTILITY CLASSES ==== */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mb-1 { margin-bottom: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mb-2 { margin-bottom: 16px !important; }

/* ==== IMAGE ICONS IN LISTS ==== */
li img {
  width: 24px;
  height: 24px;
  margin-right: 7px;
  vertical-align: middle;
  margin-bottom: 2px;
  display: inline-block;
}

/* ==== PRINT STYLES ==== */
@media print {
  header, footer, .cookie-banner, .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}
