/* ===================== CSS RESET & NORMALIZATION ===================== */
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;
  font-size: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  line-height: 1.6;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F5F6F3;
  color: #23343B;
  min-height: 100vh;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #59A273;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #23343B;
}
ul, ol {
  padding-left: 1.2em;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  background: none;
  border: none;
}

/* ===================== BRAND VARIABLES (FALLBACKS) ===================== */
:root {
  --color-primary: #23343B;
  --color-secondary: #59A273;
  --color-accent: #FFD966;
  --color-bg: #F5F6F3;
  --color-card: #F9FAF6;
  --color-muted-bg: #EDF0EA;
  --color-danger: #A15C38;
  --color-dark: #23343B;
  --color-green: #59A273;
  --color-light-green: #D8E9DD;
  --color-brown: #9C8363;
  --color-grey: #E3E5DE;
  --shadow-medium: 0 3px 24px 0 rgba(89,162,115,0.10);
  --radius-main: 20px;
  --radius-btn: 999px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-dark);
}
h1 { font-size: 2.25rem; margin-bottom: 20px; letter-spacing: -1px; }
h2 { font-size: 1.75rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4 { font-size: 1.125rem; margin-bottom: 10px; }
h5, h6 { font-size: 1rem; margin-bottom: 8px; }

p, li, dl, dt, dd {
  font-family: var(--font-body);
  color: var(--color-dark);
  font-size: 1rem;
}
p, ul, ol, dl {
  margin-bottom: 16px;
}
strong, b {
  font-weight: bold;
  color: var(--color-secondary);
}

.section h2, .section h1 {
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

/* ===================== CONTAINER & LAYOUT ===================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

/* Section Layouts */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: var(--radius-main);
}

/* Cards, Flexible Grids */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-medium);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px;
  min-width: 260px;
  flex: 1 1 min(350px, 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.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: var(--color-muted-bg);
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 rgba(35,52,59,.08);
  margin-bottom: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Spacing between all blocks */
.section > .container, 
.section > .content-wrapper, 
.section > *:not(:last-child) {
  margin-bottom: 24px;
}

/* ===================== HEADER & NAVIGATION ===================== */
header {
  background: var(--color-bg);
  box-shadow: 0 2px 10px 0 rgba(35,52,59,.03);
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}
.logo img {
  height: 54px;
  width: auto;
  display: block;
  border-radius: 10px;
}
nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-dark);
  font-weight: 600;
  letter-spacing: .3px;
  padding: 6px 0;
  border-bottom: 2.5px solid transparent;
  transition: color .2s, border-color .2s;
}
nav a:hover, nav a:focus {
  color: var(--color-secondary);
  border-bottom: 2.5px solid var(--color-secondary);
}
.btn-primary {
  font-family: var(--font-display);
  background: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  padding: 11px 36px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .03em;
  cursor: pointer;
  transition: background .18s, box-shadow .18s, color .18s;
  box-shadow: 0 2px 10px 0 rgba(89,162,115,.08);
  margin-left: 12px;
  position: relative;
  z-index: 2;
  outline: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-dark);
  color: #FFD966;
  box-shadow: 0 8px 24px 0 rgba(35,52,59,.11);
}

/* ===================== MOBILE NAVIGATION ===================== */
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  background: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 4px 15px;
  cursor: pointer;
  margin-left: 10px;
  transition: background .2s;
  z-index: 103;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-dark);
}
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100vw;
  height: 100dvh;
  background: rgba(35,52,59,0.96);
  color: #fff;
  z-index: 1099;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(.4,1.5,.5,1), opacity 0.2s;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2.3rem;
  background: transparent;
  color: #fff;
  border: none;
  align-self: flex-end;
  margin: 20px 26px 0 0;
  cursor: pointer;
  transition: color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  margin: 56px 0 0 36px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 0;
  padding: 10px 0;
  border-bottom: none;
  transition: color .18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
}
@media (max-width: 992px) {
  header .container nav, header .container .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ===================== FOOTER ===================== */
footer {
  background: var(--color-bg);
  border-top: 3px solid var(--color-light-green);
  padding: 30px 0 0 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 20px;
}
footer .logo img {
  height: 48px;
  width: auto;
  border-radius: 10px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
footer .footer-nav {
  margin-left: 14px;
}
footer .address {
  color: var(--color-brown);
  font-size: 1rem;
  line-height: 1.45;
  font-style: normal;
  margin-top: 8px;
}
@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

/* ===================== ORGANIC/NATURAL STYLE ELEMENTS ===================== */
.section {
  background: var(--color-card);
  border-radius: var(--radius-main) var(--radius-main) var(--radius-main) 40px / 18px 26px 26px 29px;
  box-shadow: var(--shadow-medium);
  border: 1.5px solid var(--color-light-green);
  position: relative;
}
/* Decorative organic shape for section (only at top sections) */
.section:first-of-type {
  background: linear-gradient(105deg, #F9FAF6 75%, #D8E9DD 100%);
  border-top-right-radius: 60px;
}
@media (max-width: 768px) {
  .section {
    padding: 26px 8px;
    margin-bottom: 32px;
  }
}

/* Cards */
.card {
  border: 1.5px solid var(--color-grey);
  border-bottom: 5px solid var(--color-secondary);
  border-radius: 22px 14px 18px 24px;
  background: #FAFDF7;
  box-shadow: var(--shadow-medium);
  transition: box-shadow .24s, border-color .18s, transform .18s;
}
.card:hover, .card:focus {
  box-shadow: 0 8px 32px 0 rgba(89,162,115,.15);
  border-bottom: 5px solid var(--color-accent);
  transform: translateY(-2px) scale(1.02);
}

/* ===================== SERVICE BLOCKS ===================== */
.service-item {
  background: var(--color-muted-bg);
  border-radius: 19px 30px 18px 22px;
  box-shadow: 0 3px 24px 0 rgba(89,162,115,0.09);
  padding: 18px 16px 18px 22px;
  margin-bottom: 20px;
  position: relative;
  border-left: 6px solid var(--color-secondary);
  font-family: var(--font-body);
  font-size: 1rem;
}
.service-item .price {
  display: inline-block;
  color: var(--color-dark);
  background: var(--color-accent);
  border-radius: 10px 8px 16px 6px;
  padding: 3px 13px;
  font-weight: bold;
  font-size: .95rem;
  margin-top: 10px;
  box-shadow: 0 2px 6px 0 rgba(255,217,102,0.10);
}

/* ===================== TEAM MEMBERS ===================== */
.team-members-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.team-member {
  background: var(--color-light-green);
  border-radius: 26px 16px 26px 10px;
  padding: 28px 18px 18px 18px;
  font-family: var(--font-display);
  box-shadow: var(--shadow-medium);
  min-width: 220px;
  max-width: 355px;
  flex: 1 1 220px;
  margin-bottom: 12px;
}
.expertise-tags {
  font-size: .85rem;
  font-family: var(--font-body);
  color: var(--color-secondary);
  margin-bottom: 7px;
}

/* ===================== TESTIMONIALS ===================== */
.testimonial-card {
  background: #fff;
  border-left: 6px solid var(--color-secondary);
  border-radius: 24px 14px 22px 30px;
  box-shadow: var(--shadow-medium);
  color: var(--color-dark);
  font-family: var(--font-body);
  font-size: 1.04rem;
  position: relative;
}
.testimonial-card p {
  margin-bottom: 0;
  color: var(--color-dark);
}
.testimonial-card strong {
  color: var(--color-green);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

/* ===================== BLOG ===================== */
.blog-post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.blog-post {
  flex: 1 1 280px;
  min-width: 230px;
  background: var(--color-light-green);
  border-radius: 16px 24px 20px 14px;
  padding: 26px 20px 18px 24px;
  transition: box-shadow .18s;
  box-shadow: var(--shadow-medium);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.blog-post:hover {
  box-shadow: 0 8px 24px 0 rgba(89,162,115,.10);
}
.category-tags {
  font-size: .9rem;
  color: var(--color-secondary);
  font-family: var(--font-body);
  margin-bottom: 4px;
  opacity: .7;
}

/* ===================== CONTENT FLEXBOX ALIGNMENT ===================== */
@media (max-width: 768px) {
  .text-image-section, .content-grid, .card-container, .blog-post-list, .team-members-grid {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
@media (min-width: 769px) {
  .text-image-section, .content-grid, .card-container, .blog-post-list, .team-members-grid {
    flex-direction: row;
  }
}

/* Responsive font sizes */
@media (max-width: 768px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.21rem; }
  h3 { font-size: 1.03rem; }
  .btn-primary { font-size: .95rem; padding: 11px 20px;}
}

/* ===================== CONTACT DETAILS & MISC ===================== */
.contact-details {
  font-family: var(--font-display);
  background: var(--color-light-green);
  border-radius: 22px 10px 28px 12px;
  padding: 18px 22px 12px 18px;
  font-size: 1rem;
  margin-bottom: 18px;
  color: var(--color-dark);
  box-shadow: 0 2px 12px 0 rgba(89,162,115,.07);
}
.text-section {
  margin-bottom: 18px;
  font-family: var(--font-body);
  color: var(--color-dark);
}

/* ===================== BUTTONS ===================== */
button {
  cursor: pointer;
  outline: none;
}
.btn-secondary {
  background: #fff;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
  padding: 10px 26px;
  font-size: 1rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
  box-shadow: 0 1px 4px 0 rgba(89,162,115,.04);
  transition: background .17s, color .17s, border-color .16s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-dark);
}

/* ===================== COOKIE CONSENT BANNER AND MODAL ===================== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--color-muted-bg);
  color: var(--color-dark);
  box-shadow: 0 -4px 14px 0 rgba(35,52,59,.09);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 20px 32px 20px 24px;
  z-index: 1201;
  gap: 16px;
  font-size: 1rem;
  font-family: var(--font-body);
  animation: cookiebannerfade .3s ease;
}
@keyframes cookiebannerfade {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-consent-banner p {
  flex: 2 1 220px;
  margin-bottom: 0;
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.cookie-consent-banner .btn-cookie{
  background: var(--color-secondary);
  color: #fff;
  border-radius: var(--radius-btn);
  border: none;
  padding: 9px 24px;
  font-size: 1rem;
  font-weight: 600;
  transition: background .18s, color .18s, box-shadow .12s;
  box-shadow: 0 1px 6px 0 rgba(89,162,115,.08);
  margin-left: 0;
}
.cookie-consent-banner .btn-cookie.secondary {
  background: #fff;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}
.cookie-consent-banner .btn-cookie.settings {
  background: var(--color-accent);
  color: var(--color-dark);
}
.cookie-consent-banner .btn-cookie:hover, .cookie-consent-banner .btn-cookie:focus {
  background: var(--color-dark);
  color: var(--color-accent);
}
.cookie-consent-banner .btn-cookie.settings:hover, .cookie-consent-banner .btn-cookie.settings:focus {
  background: var(--color-secondary);
  color: #fff;
}
@media (max-width: 600px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 10px;
    font-size: .98rem;
    gap: 12px;
  }
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(35,52,59,0.75);
  z-index: 1202;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookiebannerfade .3s ease;
}
.cookie-modal {
  background: #fff;
  color: var(--color-dark);
  border-radius: 18px 38px 18px 28px;
  max-width: 420px;
  padding: 32px 24px 24px 30px;
  box-shadow: 0 12px 36px 0 rgba(35,52,59,.15);
  font-family: var(--font-body);
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 10px;
  right: 16px;
  background: transparent;
  color: var(--color-secondary);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color .16s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: var(--color-accent);
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0 0 0;
}
.cookie-modal .cookie-category label {
  flex: 1 1 auto;
  font-weight: 600;
}
.cookie-modal .cookie-category input[type=checkbox],
.cookie-modal .cookie-category input[type=radio] {
  width: 22px;
  height: 22px;
  accent-color: var(--color-secondary);
  margin-right: 8px;
}
.cookie-modal .cookie-category[aria-disabled='true'] label {
  color: #C5CABF;
  font-style: italic;
}
.cookie-modal .btn-cookie {
  min-width: 120px;
}

/* ===================== FORMS & INPUTS (if any) ===================== */
input[type=text], input[type=email], textarea, select {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--color-light-green);
  background: #F9FAF6;
  font-size: 1rem;
  color: var(--color-dark);
  transition: border-color .16s;
}
input[type=text]:focus, input[type=email]:focus, textarea:focus, select:focus {
  border-color: var(--color-secondary);
}

/* ===================== DETAILED RESPONSIVE BEHAVIOR ===================== */
@media (max-width: 768px) {
  .container {
    padding-left: 5px;
    padding-right: 5px;
    max-width: 100vw;
  }
  h1, h2, h3 {
    text-align: left;
  }
  .logo img {
    height: 38px;
  }
  .btn-primary {
    margin-left: 0;
  }
}

/* ===================== MICRO-INTERACTIONS, SHADOWS, ANIMATIONS ===================== */
.card, .blog-post, .service-item, .testimonial-card, .team-member {
  transition: box-shadow .18s, transform .18s;
}
.card:active, .blog-post:active, .service-item:active, .testimonial-card:active, .team-member:active {
  transform: scale(0.98);
}

/* ===================== MISC ===================== */
::-webkit-input-placeholder { color: #B0BBAE; }
:-moz-placeholder { color: #B0BBAE; }
::-moz-placeholder { color: #B0BBAE; }
:-ms-input-placeholder { color: #B0BBAE; }
::placeholder { color: #B0BBAE; }

[tabindex="-1"]:focus {
  outline: none !important;
}

/* ===================== ORGANIC SHAPES DECOR (OPTIONAL, MODERN) ===================== */
.section:before {
  content: "";
  display: block;
  position: absolute;
  top: -38px;
  left: 0;
  right: 0;
  height: 44px;
  background: radial-gradient(circle at 25% 20%, rgba(89,162,115,0.08) 0%, transparent 80%);
  border-top-right-radius: 48px;
  pointer-events: none;
  z-index: 0;
}
.section:last-child:after {
  content: '';
  display: block;
  position: absolute;
  bottom: -33px;
  left: 16px;
  width: 120px;
  height: 36px;
  background: radial-gradient(circle at 40% 95%, #D8E9DD 0%, transparent 90%);
  border-radius: 30px 20px 80px 40px;
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 900px) {
  .section:before, .section:last-child:after {
    display: none;
  }
}

/* ===================== SYSTEM UTILITIES ===================== */
.hide { display: none !important; }
.show { display: block !important; }

/* ===================== END OF CSS ===================== */
