/* --- 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,main,nav,output,ruby,section,summary,time,mark,audio,video{
  margin:0; padding:0; border:0; font:inherit; vertical-align:baseline; box-sizing:border-box;
}
html{box-sizing:border-box;}
*, *:before, *:after{box-sizing:inherit;}
body{line-height:1;}
ul,ol{list-style:none;}
a{text-decoration:none; color:inherit;}
img{display:block; max-width:100%; height:auto; border:0;}
button, input, select, textarea{font:inherit;}
:root{
  --color-primary: #22643A;
  --color-secondary: #659D60;
  --color-accent: #F4F4ED;
  --color-background: #FAFAF8;
  --color-surface: #FFFFFF;
  --color-border: #E3E3DA;
  --color-text: #222B22;
  --color-text-secondary: #516552;
  --color-shadow: rgba(34, 100, 58, 0.09);
  --color-focus: #ADC7B2;
  --radius-xl: 24px;
  --radius-m: 12px;
  --radius: 8px;
  --shadow-card: 0 3px 24px var(--color-shadow);
}

/* --- Base Typography & Body --- */
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-background);
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--color-primary);
  font-weight: 700;
  line-height:1.2;
  margin-bottom: 16px;
}
h1 {font-size: 2.5rem; margin-bottom: 20px;}
h2 {font-size: 2rem; margin-bottom: 20px;}
h3 {font-size: 1.35rem; margin-bottom: 12px;}
h4 {font-size: 1.1rem; margin-bottom: 8px;}
p,li,ul,ol {font-size: 1rem; color: var(--color-text-secondary); line-height:1.6; margin-bottom: 8px;}
strong, b {font-weight:600; color: var(--color-primary);}

/* --- Links & Buttons --- */
a:hover, a:focus{text-decoration: underline; color:var(--color-secondary); transition: color .2s;}

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius);
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: background .2s, box-shadow .2s, transform .15s;
  cursor: pointer;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-secondary);
  box-shadow: 0 5px 16px var(--color-shadow);
  transform: translateY(-2px) scale(1.03);
}

button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

.btn-secondary {
  display:inline-flex; align-items: center; justify-content: center;
  background: var(--color-accent);
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 10px 22px;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  transition:color .18s, background .18s, border .18s, box-shadow .18s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-primary);
  color:#fff;
  border-color: var(--color-secondary);
  box-shadow: 0 2px 8px var(--color-shadow);
}


/* --- Container & Section Layout --- */
.container {
  width: 100%; max-width:1150px;
  margin-left: auto; margin-right: auto;
  padding-left: 20px; padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  width: 100%;
}
.content-wrapper {
  display: flex; flex-direction: column; gap: 20px;
  width:100%;
}
.text-section {
  display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
  margin-bottom: 20px;
}
.ul, .ol {
  padding-left: 1.5em;
}
ul, ol {
  margin-bottom:16px;
}
li {
  margin-bottom: 6px;
  position:relative;
}
ul li:before {
  content: '';
  display:inline-block;
  width:8px; height:8px;
  background: var(--color-secondary);
  border-radius:100%;
  margin-right:12px; vertical-align:middle;
}

/* --- Flex Layouts --- */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 8px;
}
.features-grid > div {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition:box-shadow .22s, transform .15s;
}
.features-grid > div:hover {
  box-shadow:0 6px 18px var(--color-shadow);
  transform:translateY(-2px) scale(1.02);
}

.content-grid {
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  justify-content:space-between;
}
.card-container {
  display:flex;
  flex-wrap:wrap;
  gap:24px;
  margin-bottom:20px;
}
.card {
  background:var(--color-surface);
  border-radius:var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom:20px;
  padding:24px 20px;
  position:relative;
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.card-content {
  display:flex; flex-direction:column; justify-content:center;
  gap:10px;
}
.project-card, .blog-preview {
  background:var(--color-surface);
  border-radius:var(--radius);
  box-shadow: var(--shadow-card);
  padding:22px 18px;
  margin-bottom:20px;
  display:flex;
  flex-direction:column;
  gap:10px;
  transition:box-shadow .20s, transform .15s;
}
.project-card:hover, .blog-preview:hover {
  box-shadow:0 6px 18px var(--color-shadow);
  transform:translateY(-2px) scale(1.02);
}

.text-image-section {
  display:flex;
  align-items:center;
  gap:30px;
  flex-wrap:wrap;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--color-accent);
  border-radius: var(--radius-m);
  box-shadow: 0 2px 12px rgba(34,100,58,0.08);
  padding: 20px;
  gap: 20px;
  margin-bottom: 20px;
  border-left: 4px solid var(--color-secondary);
  transition: box-shadow .2s, transform .15s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 24px var(--color-shadow);
  transform: scale(1.015);
}
.testimonial-card h3 {
  color: var(--color-primary);
  margin-bottom: 5px;
  font-size:1.12rem;
}
.testimonial-card p {
  color: var(--color-text);
  font-weight:400;
  font-size:1.1rem;
}
.stars {
  display:flex; align-items:center; gap:3px;
  margin-bottom: 4px;
}

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

/* --- Header & Navigation --- */
header {
  background: var(--color-surface);
  box-shadow: 0 2.5px 12px var(--color-shadow);
  width:100%;
  position:relative;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top:18px;
  padding-bottom:18px;
}
header img {
  height: 48px;
  width:auto;
}
.main-nav {
  display:flex;
  align-items:center;
  gap: 22px;
}
.main-nav a {
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size:1rem;
  transition:color .18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-secondary);
}
.main-nav .btn-primary {
  margin-left:18px;
}
.mobile-menu-toggle {
  background:var(--color-accent);
  color:var(--color-primary);
  font-size:2rem;
  border-radius:var(--radius-m);
  padding:8px 14px;
  margin-left:18px;
  border:1.5px solid var(--color-primary);
  transition: background .2s;
  display:none;
  z-index:90;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-focus);
}

/* --- Mobile Navigation --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  height: 100vh; width: 100vw;
  background: rgba(244,244,237,0.98);
  backdrop-filter: blur(2.5px);
  transform: translateX(-110%);
  transition:transform .32s cubic-bezier(.32,1.23,.66,.98);
  z-index: 150;
  display: flex;
  flex-direction: column;
}
.mobile-menu.open {
  transform:translateX(0);
}
.mobile-menu-close {
  background: var(--color-primary);
  color: #fff;
  font-size: 2.2rem;
  border-radius: 0 0 var(--radius-m) 0;
  padding: 7px 24px 11px 10px;
  align-self: flex-end;
  margin: 16px 16px 0 0;
  transition: background .18s, color .18s;
  z-index:200;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-secondary);
  color: #fff;
}
.mobile-nav {
  display:flex;
  flex-direction:column;
  gap: 22px;
  align-items: flex-start;
  margin-top: 28px;
  margin-left:34px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.22rem;
  font-weight: 600;
  padding: 10px 0;
  color: var(--color-primary);
  border-radius: var(--radius);
  transition: background .18s, color .18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-focus);
  color: var(--color-secondary);
  padding-left: 12px;
}

/* Hide main nav, show burger on mobile */
@media (max-width: 950px) {
  .main-nav {
    display:none;
  }
  .mobile-menu-toggle {
    display:inline-flex;
  }
}
@media (min-width: 951px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --- Page Sections --- */
section {
  background: none;
  margin-bottom: 60px;
  padding: 40px 0;
  width: 100%;
}

/* --- Cards & Previews --- */

.service-category {
  background: var(--color-accent);
  border-radius: var(--radius);
  padding: 20px 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(34,100,58,0.06);
  display:flex;
  flex-direction:column;
  gap: 8px;
}


/* --- Footer --- */
footer {
  background: var(--color-surface);
  border-top: 1.5px solid var(--color-border);
  padding: 40px 0 16px 0;
  width: 100%;
}
footer .container {
  display: flex;
  flex-wrap:wrap;
  gap: 24px 36px;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-logo img {height:44px; width:auto; margin-bottom:16px;}
.footer-nav {
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:14px;
}
.footer-nav a {
  color: var(--color-primary);
  font-size:1rem;
  font-family:'Montserrat',Arial,sans-serif;
}
.footer-nav a:hover {
  color: var(--color-secondary);
}
.footer-contact {
  font-size:0.98rem;
  color: var(--color-text-secondary);
  margin-bottom:14px;
  line-height:1.5;
}
.footer-contact img {
  vertical-align:middle; margin-right:4px;
  height:1.1em;width:auto;
}
.footer-social {
  display:flex;
  gap:12px;
}
.footer-social a img {
  width:28px; height:28px; display:block;
  border-radius:var(--radius-m);
  box-shadow:0 1px 4px var(--color-shadow);
  background:var(--color-accent);
  transition:box-shadow .18s;
}
.footer-social a:hover img {
  box-shadow:0 3px 12px var(--color-shadow);
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position:fixed;
  left:0; right:0; bottom:0;
  background: var(--color-surface);
  border-top: 2.5px solid var(--color-secondary);
  box-shadow: 0 -6px 24px var(--color-shadow);
  z-index:230;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 20px 30px;
  max-width: 100vw;
  transition: transform .32s cubic-bezier(.64,.01,.18,1), opacity .21s;
  opacity:1;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity:0;
  pointer-events: none;
}
.cookie-banner-text {
  font-size: 1rem;
  color: var(--color-text-secondary);
  max-width:480px;
}
.cookie-actions {
  display: flex;
  gap: 16px;
}
.cookie-actions .btn-primary{
  font-size:1rem; padding:10px 22px;
}
.cookie-actions .btn-secondary{
  font-size:1rem; padding:10px 18px;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position:fixed;
  left:0;top:0;right:0;bottom:0;
  background:rgba(34,100,58,0.13);
  z-index:240;
  display:flex;
  align-items: center;
  justify-content: center;
  transition:opacity .2s;
  opacity:1;
}
.cookie-modal-overlay.hide{
  pointer-events:none;
  opacity:0;
}
.cookie-modal {
  background:var(--color-surface);
  border-radius:var(--radius-xl);
  box-shadow:0 8px 32px var(--color-shadow);
  max-width:380px;
  width:94vw;
  padding:26px 24px 18px 24px;
  display:flex; flex-direction:column; gap:24px;
  animation:modalIn .32s cubic-bezier(.47,1.64,.41,.8);
}
@keyframes modalIn{0%{transform:translateY(80px) scale(.97); opacity:0;}100%{transform:translateY(0) scale(1); opacity:1;}}
.cookie-modal h3 {
  margin-bottom:8px;
  color:var(--color-primary);
  font-size:1.33rem;
}
.cookie-modal-category {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  border-bottom:1.5px solid var(--color-border);
}
.cookie-modal-category:last-child{border-bottom:none;}
.cookie-modal-category label {
  font-size:1rem;
  color: var(--color-text);
}
.cookie-modal-category input[type="checkbox"] {
  width: 22px; height: 22px; accent-color: var(--color-secondary);
}
.cookie-modal-category input[disabled] {
  accent-color:var(--color-primary);
  opacity:0.76;
}
.cookie-modal-actions {
  display:flex;
  gap:14px; margin-top:6px;
  justify-content:flex-end;
}

/* --- Animations: for menu, banner etc --- */
@media (max-width: 600px) {
  .container, .section {
    padding-left:10px; padding-right:10px;
  }
  .features-grid {
    flex-direction:column;
  }
  .content-grid {
    flex-direction:column;
  }
  .footer-nav {
    gap:6px;
  }
  .footer-social a img {
    width:22px; height:22px;
  }
}

/* --- Responsive Flex Direction Rules --- */
@media (max-width: 768px) {
  .container {
    padding-left:9px; padding-right:9px;
  }
  .content-wrapper, .text-section, .features-grid, .content-grid, .card-container, .footer .container {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  footer .container {
    gap:20px;
  }
}

/* --- Form, Location Block (contact) --- */
.contact-location {
  display: flex; align-items: center; gap: 14px;
  font-size:1rem;
  color: var(--color-text-secondary);
  margin:14px 0 0 0;
}
.contact-location img {
  width:28px; height:28px;
}

/* --- Visual Micro-Interactions --- */
.card, .project-card, .features-grid > div, .blog-preview {
  transition:box-shadow .21s, transform .15s;
}
.card:hover, .project-card:hover, .features-grid > div:hover, .blog-preview:hover {
  box-shadow:0 7px 22px var(--color-shadow);
  transform:scale(1.025);
}

/* --- Accessibility --- */
:focus {
  outline: 2px solid var(--color-focus);
  outline-offset: 1.5px;
}

/* --- Utility Classes --- */
.mb-0 {margin-bottom:0 !important;}
.mt-0 {margin-top:0 !important;}
.align-center {text-align:center !important;}

/* --- Print --- */
@media print { .mobile-menu,.mobile-menu-toggle,.cookie-banner,.cookie-modal-overlay {display:none !important;} }

