/* --- CSS Reset & Normalize --- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  color: #2d2d1a;
  background: #f5f6f3;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #28513c;
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}
a:hover, a:focus {
  color: #42a879;
  outline: none;
}
ul, ol {
  padding-left: 24px;
  list-style-type: disc;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 18px;
  letter-spacing: -1px;
  color: #28513c;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: #3e6742;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #4b5e3a;
}
p, li {
  font-size: 1rem;
  color: #364422;
  letter-spacing: 0.01em;
}
p {
  margin-bottom: 16px;
}
strong {
  font-weight: 700;
  color: #28513c;
}
.subheadline {
  font-size: 1.25rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #62874a;
  margin-bottom: 24px;
}

/* --- Layout containers & spacing --- */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.text-section {
  background: #f7faf6;
  padding: 32px 18px;
  border-radius: 24px;
  box-shadow: 0 2px 16px rgba(121,128,78,0.07);
  margin-bottom: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(74,102,46,0.10);
  padding: 24px;
  flex: 1 1 320px;
}
.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: #f0f5ec;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(74,102,46,0.07);
  font-size: 1.05rem;
  margin-bottom: 20px;
  min-width: 240px;
  color: #273c1c;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- Header & Navigation --- */
header {
  background: #f3f7f2;
  box-shadow: 0 2px 10px rgba(61, 97, 64, 0.06);
  padding: 0;
  z-index: 10;
  position: relative;
}
header .container {
  padding-top: 12px;
  padding-bottom: 12px;
}
header .content-wrapper {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
header img[alt="Stellar Brush"],
header img[alt="Stellar Brush"] {
  width: 170px;
  height: auto;
  min-width: 100px;
}
nav {
  display: flex;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  color: #4b5e3a;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
nav a:hover, nav a:focus {
  background: #e6efea;
  color: #2b7146;
}
.cta-btn {
  background: #42a879;
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 30px;
  box-shadow: 0 2px 10px rgba(66,168,121,0.08);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.025em;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.18s, transform 0.12s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #317e5b;
  color: #fff;
  box-shadow: 0 4px 16px rgba(66,168,121,0.18);
  transform: translateY(-2px) scale(1.025);
}

/* --- Mobile Menu --- */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 16px;
  top: 18px;
  background: #e8f5e9;
  color: #28513c;
  border: none;
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 2rem;
  cursor: pointer;
  z-index: 102;
  box-shadow: 0 2px 8px rgba(74,102,46,0.08);
  transition: background 0.22s, transform 0.11s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #c0e3c8;
  transform: scale(1.05);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(170,202,172, 0.93);
  flex-direction: column;
  align-items: flex-start;
  z-index: 999;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.64,.01,.07,1.38);
}
.mobile-menu.active {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 22px 0 22px 30px;
  background: none;
  border: none;
  color: #28513c;
  font-size: 2rem;
  cursor: pointer;
  align-self: flex-start;
  transition: color 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #42a879;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-left: 32px;
  margin-top: 18px;
}
.mobile-nav a {
  font-size: 1.18rem;
  color: #284c2d;
  padding: 12px 0;
  border-radius: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #e6efea;
  color: #42a879;
}

@media (max-width: 1024px) {
  .header .container,
  header .content-wrapper {
    gap: 16px;
  }
  nav {
    gap: 12px;
  }
  .cta-btn {
    padding: 10px 22px;
    font-size: 1rem;
  }
}
@media (max-width: 900px) {
  header .content-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  nav {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }
}
@media (max-width: 768px) {
  header .content-wrapper nav,
  header .content-wrapper .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .container {
    padding: 0 8px;
  }
  .content-wrapper {
    gap: 14px;
  }
  .section {
    padding: 22px 2px;
    margin-bottom: 32px;
  }
  .card,
  .text-section,
  .testimonial-card {
    padding: 16px;
  }
}

/* --- Main Content --- */
main {
  min-height: 60vh;
}
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-top: 14px;
  margin-bottom: 14px;
}
.service-card {
  flex: 1 1 260px;
  min-width: 200px;
  max-width: 320px;
  padding: 26px 22px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(66,168,121,0.09);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  transition: box-shadow 0.23s, transform 0.18s;
  position: relative;
  border: 1.5px solid #e3ecde;
}
.service-card h3 {
  color: #1976d2;
  font-size: 1.28rem;
  margin-bottom: 10px;
}
.service-card p {
  color: #335429;
  margin-bottom: 8px;
}
.service-card .service-price {
  background: #e3ecde;
  color: #276947;
  font-size: 1.1rem;
  border-radius: 12px;
  padding: 6px 16px;
  font-weight: bold;
  align-self: flex-end;
}
.service-card:hover, .service-card:focus-within {
  box-shadow: 0 5px 20px rgba(66,168,121,0.13);
  transform: translateY(-4px) scale(1.022);
}

.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin: 0 -6px;
}
.testimonial-card {
  flex: 1 1 240px;
  max-width: 350px;
  background: #f8fbf6;
  border: 1.5px solid #e1eae2;
  color: #233b29;
  font-family: 'Roboto', Arial, sans-serif;
  font-style: italic;
  margin-bottom: 20px;
  box-shadow: 0 1px 8px rgba(63,92,49,0.08);
  min-width: 0;
  transition: box-shadow 0.19s, transform 0.13s;
}
.testimonial-card p {
  color: #273c1c;
  font-size: 1.05rem;
}
.testimonial-card span {
  color: #62874a;
  font-family: 'Montserrat', Arial, sans-serif;
  font-style: normal;
  font-size: 0.97rem;
  margin-top: 8px;
}
.testimonial-card:hover {
  box-shadow: 0 5px 16px rgba(66,168,121,0.17);
  transform: scale(1.025);
}

.contact-details {
  font-size: 1.13rem;
  color: #20482e;
  margin-bottom: 18px;
  background: #eaf2e6;
  border-radius: 10px;
  padding: 14px 12px;
}

/* --- Footer --- */
footer {
  background: #e5ece3;
  padding: 16px 0 0 0;
  border-top-left-radius: 34px 60px;
  border-top-right-radius: 34px 60px;
  position: relative;
  box-shadow: 0 -2px 14px rgba(100,154,98,0.08);
}
footer .container {
  padding-bottom: 10px;
}
footer .content-wrapper {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 44px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-left: 24px;
}
footer nav a {
  color: #407449;
  font-size: 1.02rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
footer nav a:hover {
  color: #1976d2;
}
.footer-contact {
  font-size: 1rem;
  color: #364422;
  margin-left: 22px;
}
footer img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f0f5ef;
  box-shadow: 0 2px 6px rgba(174,184,133,0.18);
}
@media (max-width: 1024px) {
  footer .content-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .footer-contact {
    margin-left: 0;
    padding-top: 0;
  }
  footer nav {
    margin-left: 0;
    align-items: center;
  }
}

/* --- Lists with Icons (in .text-section) --- */
.text-section ul {
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
}
.text-section ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
  color: #3c5b2a;
  background: #eef6eb;
  border-radius: 10px;
  padding: 7px 13px 7px 9px;
}
.text-section ul li img {
  width: 30px;
  height: 30px;
  margin-right: 3px;
}
@media (max-width: 768px) {
  .footer-contact,
  .content-wrapper,
  footer .content-wrapper {
    gap: 10px;
  }
  .text-section ul {
    gap: 10px 18px;
  }
  .text-section ul li img {
    width: 25px;
    height: 25px;
  }
}

/* --- Typography scale & spacing (with nature/organic accents) --- */
h1, h2, h3 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
}
h1 {
  font-size: 2.2rem;
}
@media (max-width: 540px) {
  h1 {
    font-size: 1.28rem;
  }
  h2 {
    font-size: 1.1rem;
  }
  h3 {
    font-size: 1rem;
  }
  .cta-btn {
    font-size: 0.99rem;
    padding: 9px 12px;
  }
}

/* --- Responsive adjustments & Flex Direction for Mobile --- */
@media (max-width: 768px) {
  .content-wrapper,
  .service-list,
  .testimonial-list,
  .card-container,
  .content-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .testimonial-card {
    min-width: 150px;
    font-size: 0.99rem;
  }
}

/* --- Cookie Consent Banner & Modal --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2002;
  background: #f7fbf5;
  color: #3a5232;
  padding: 22px 5vw 18px 5vw;
  box-shadow: 0 -4px 14px rgba(104,149,83,0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-top: 2.5px solid #bdd6b4;
  transition: transform 0.35s cubic-bezier(.91,.02,.13,1.05), opacity 0.25s;
  font-size: 1.05rem;
}
.cookie-banner.hide {
  pointer-events: none;
  opacity: 0;
  transform: translateY(120%);
}
.cookie-btn,
.cookie-btn-settings {
  padding: 9px 22px;
  border-radius: 30px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-left: 7px;
  cursor: pointer;
  transition: background 0.2s, color 0.15s;
  box-shadow: 0 1.5px 7px rgba(131,164,114,0.08);
}
.cookie-btn {
  background: #42a879;
  color: #fff;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #317e5b;
  color: #fff;
}
.cookie-btn.reject {
  background: #e0ece0;
  color: #3f6042;
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: #d0e5d7;
  color: #246a3c;
}
.cookie-btn-settings {
  background: #f2f6f3;
  color: #3b5340;
  border: 1px solid #bdd6b4;
}
.cookie-btn-settings:hover, .cookie-btn-settings:focus {
  background: #e3ecde;
  color: #1976d2;
}

/* Cookie Modal */
.cookie-modal {
  backdrop-filter: blur(2.8px);
  position: fixed;
  z-index: 2004;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(138,163,127, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.28s;
}
.cookie-modal-content {
  background: #f7fbf5;
  border-radius: 18px;
  padding: 34px 22px 26px 22px;
  box-shadow: 0 8px 36px 2px rgba(104,149,83,0.12);
  min-width: 280px;
  width: 95%;
  max-width: 410px;
  position: relative;
  color: #2c3b11;
}
.cookie-modal-content h2 {
  font-size: 1.35rem;
  margin-bottom: 16px;
  color: #28513c;
}
.cookie-cats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 38px;
}
.cookie-category label {
  font-size: 1.08rem;
  color: #335429;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  background: #dbead6;
  border-radius: 22px;
  position: relative;
  outline: none;
  transition: background 0.17s;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: #42a879;
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  top: 2.5px;
  left: 2.5px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #f4faf3;
  transition: transform 0.18s, background 0.12s;
}
.cookie-toggle:checked:before {
  transform: translateX(16px);
  background: #fff;
}
.cookie-close-btn {
  position: absolute;
  right: 13px;
  top: 13px;
  background: none;
  border: none;
  font-size: 1.45rem;
  color: #28513c;
  cursor: pointer;
  transition: color 0.15s;
}
.cookie-close-btn:hover, .cookie-close-btn:focus {
  color: #42a879;
}
.cookie-modal-footer {
  margin-top: 24px;
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}

@media (max-width: 480px) {
  .cookie-modal-content {
    max-width: 98vw;
    padding: 22px 9px;
  }
}

/* --- Organic/Nature-Inspired effects --- */
body {
  background: #f6f9f5 url("/assets/nature-texture.png") repeat;
}
.text-section,
.service-card,
.card,
.testimonial-card {
  border-radius: 22px 32px 18px 28px / 26px 30px 22px 28px;
  /* Irregular organic shape, will render as ellipse on older browsers */
}
.cta-btn, .cookie-btn, .cookie-btn-settings {
  border-radius: 27px 33px 20px 37px / 45px 38px 25px 32px;
}

/* --- Animations & Transitions --- */
@keyframes organicPopIn {
  0% { transform: scale(0.95) translateY(22px); opacity: 0; }
  80% { transform: scale(1.05) translateY(-3px); opacity: 0.96; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.section, .text-section, .service-card, .testimonial-card {
  animation: organicPopIn 0.8s cubic-bezier(.4,.7,.62,1.15) both;
}

/* --- Utility --- */
.mt-2 { margin-top: 12px; }
.mt-4 { margin-top: 20px; }
.mb-2 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 22px; }
.mb-6 { margin-bottom: 40px; }
.gap-2 { gap: 12px; }
@media (max-width:600px) {
  .mb-6 { margin-bottom: 20px; }
}

/* --- Accessibility & Focus Indicator --- */
a:focus, button:focus, input:focus,
.cookie-toggle:focus-visible {
  outline: 2.5px dashed #42a879;
  outline-offset: 2px;
}

/* --- Hide elements for accessibility --- */
.visually-hidden{
   position:absolute;
   width:1px;
   height:1px;
   margin:-1px;
   padding:0;
   overflow:hidden;
   clip:rect(0 0 0 0);
   border:0;
}

/* --- Misc fixes --- */
@media (max-width: 480px) {
  .service-card .service-price,
  .contact-details,
  .testimonial-card span {
    font-size: 0.98rem;
  }
}
section {
  padding: 10px 0;
}