/* ======================= CSS RESET & BASE ======================= */
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: inherit;
  box-sizing: border-box;
  vertical-align: baseline;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background-color: #F5FAF6;
  color: #24370A;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  padding: 10px 16px;
  text-align: left;
}
*, *::before, *::after {
  box-sizing: inherit;
}

/* ==================== CSS VARIABLES (with fallback) ==================== */
:root {
  --primary: #234163;
  --secondary: #FDB812;
  --accent: #F5F6FA;
  --organic-green: #48784b;
  --earth-brown: #9a7c54;
  --nature-bg: #f5faf6;
  --gray: #516451;
  --danger: #932727;
  --success: #376346;
  --shadow: 0 3px 16px rgba(72, 120, 75, 0.10);
  --radius: 18px;
  --radius-lg: 36px;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

body {
  background-color: var(--nature-bg);
  font-family: var(--font-body);
  font-size: 16px;
  color: #263C23;
}

/* ================== TYPOGRAPHY ================== */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.15;
  font-family: var(--font-display);
  margin-bottom: 16px;
  font-weight: 700;
  color: var(--primary);
}
h1 {
  font-size: 2.5rem;
  letter-spacing: -1px;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  color: var(--organic-green);
  margin-bottom: 18px;
}
h3 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1.15rem;
}
p, ul li, ol li {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #263C23;
  letter-spacing: 0.04em;
}
strong, b {
  font-weight: 700;
}

/* ================== SECTIONS, CONTAINERS, LAYOUT ================== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s;
}

/* ============= FLEXBOX SPACING & ALIGNMENT: MANDATORY PATTERNS ============= */
.card-container, .card-grid, .feature-grid, .service-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 20px;
  min-width: 260px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover {
  box-shadow: 0 4px 30px rgba(72,120,75,0.18);
  transform: translateY(-3px) scale(1.012);
}
.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: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  color: #233415;
  font-size: 1.1rem;
  position: relative;
  transition: box-shadow 0.25s, transform 0.25s;
}
.testimonial-card span {
  font-size: 0.99rem;
  color: var(--organic-green);
  font-style: italic;
  margin-left: 15px;
}
.testimonial-card:hover {
  box-shadow: 0 4px 30px rgba(72,120,75,0.19);
  transform: scale(1.016);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fcfdf7;
  border-radius: var(--radius);
  padding: 18px 15px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-item:hover {
  box-shadow: 0 4px 22px rgba(130,156,103,0.13);
  transform: translateY(-2px);
}

/* ============= FLEXBOX SPECIFIC CONTENT AND LISTS ============= */
.feature-grid, .service-grid {
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.feature-grid li, .service-grid li {
  flex: 1 1 210px;
  max-width: 290px;
  min-width: 180px;
  background: #fcfdf9;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  transition: box-shadow .22s, transform .22s;
}
.feature-grid li:hover, .service-grid li:hover {
  box-shadow: 0 3px 16px rgba(62, 97, 81, 0.12);
  transform: scale(1.018);
}
.feature-grid li img, .service-grid li img {
  width: 42px; height: 42px;
  margin-bottom: 8px;
}

/* ============= CONTACT SHORT & SPECIAL BLOCKS ============= */
.contact-short {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 1.1rem;
  color: var(--primary);
  background: #f9fbee;
  border-radius: 22px;
  padding: 10px 22px;
  box-shadow: var(--shadow);
}
.contact-short img {
  width: 20px;
  height: 20px;
  opacity: .85;
}
.contact-block {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-block div {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.05rem;
}
.contact-block .info p {
  color: #395e2d;
  margin-bottom: 0;
}

/* ============= BUTTON STYLES ============= */
.button-primary,
.button-primary:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #657C51 12%, #78ab7e 88%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.10rem;
  border-radius: 32px;
  border: none;
  padding: 13px 34px;
  margin-top: 18px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(72,120,75,0.08);
  transition: background 0.22s, box-shadow 0.22s, transform 0.18s;
  cursor: pointer;
}
.button-primary:hover,
.button-primary:focus {
  background: linear-gradient(95deg, #497a4b 10%, #234163 90%);
  box-shadow: 0 4px 30px rgba(72,120,75,0.16);
  transform: scale(1.033);
  outline: none;
}
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--organic-green);
  border: 2px solid var(--organic-green);
  font-weight: 700;
  padding: 12px 30px;
  border-radius: 32px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  transition: background .22s, color .22s, border .22s;
  cursor: pointer;
}
.button-secondary:hover,
.button-secondary:focus {
  background: var(--organic-green);
  color: #fff;
  border-color: #567856;
}
.button-danger {
  background: var(--danger);
  color: #fff;
  font-weight: bold;
  border-radius: 28px;
  border: none;
  padding: 12px 28px;
}

/* ============= HEADER ================= */
header {
  width: 100%;
  background: #fcfdf7;
  border-bottom: 2px solid #dbe4ce;
  box-shadow: 0 2px 8px rgba(72,120,75,0.04);
  position: relative;
  z-index: 40;
}
header .container {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
  min-height: 70px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
header nav a {
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 6px 14px;
  border-radius: 18px;
  transition: background .20s, color .20s;
}
header nav a:hover, header nav a:focus {
  background: #e5eedc;
  color: var(--organic-green);
}
header img {
  height: 48px;
  width: auto;
  margin-right: 8px;
  border-radius: 8px;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--organic-green);
  cursor: pointer;
  padding: 12px 8px 12px 8px;
  border-radius: 10px;
  transition: background .19s, color .18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #e5eedc;
  color: var(--primary);
  outline: none;
}

/* ============= MOBILE MENU ============= */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: rgba(54, 73, 36, 0.92);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform .39s cubic-bezier(.69,0,.35,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  overflow-y: auto;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 2px 0 28px rgba(64,90,58,0.14);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 22px 32px 8px 0;
  font-size: 2.0rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  transition: color .15s;
  z-index: 11000;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 20px 0 0 42px;
  width: 86vw;
  max-width: 350px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.32rem;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 18px;
  transition: background .18s, color .18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #e5eedc;
  color: var(--organic-green);
}

/* ============= MAIN, TABLE, CTAs ================= */
main {
  background: var(--nature-bg);
  min-height: 62vh;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.pricing-table {
  background: #fcfdf9;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  font-size: 1.04rem;
}
.pricing-table th {
  background: #e5eedc;
  color: var(--organic-green);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}
.pricing-table td {
  border-bottom: 1px solid #e1ede1;
}
.pricing-table tr:last-child td {
  border-bottom: none;
}

/* ============= TEAM BIOS ============= */
.team-bio {
  background: #fcfffa;
  border-left: 7px solid var(--organic-green);
  padding: 18px 24px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.team-bio span {
  font-style: italic;
  color: #567856;
  display: block;
  font-size: 0.98rem;
  margin-top: 6px;
}

/* ============= FOOTER ============= */
footer {
  background: linear-gradient(90deg, #e5eedc 5%, #fcfdf7 100%);
  color: #263c23;
  font-family: var(--font-body);
  border-top: 2px solid #e1ede1;
  padding-top: 32px;
  padding-bottom: 16px;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 36px;
  justify-content: space-between;
}
.footer-main-nav, .footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a, .footer-main-nav a {
  color: #41683a;
  transition: color .20s;
  font-family: var(--font-display);
  font-size: 0.99rem;
}
.footer-links a:hover, .footer-main-nav a:hover {
  color: var(--organic-green);
  text-decoration: underline;
  font-weight: bold;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #24370a;
  font-size: 0.97rem;
}
.footer-contact img {
  width: 17px;
  height: 17px;
  margin-right: 8px;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}
.footer-legal {
  width: 100%;
  margin-top: 24px;
  font-size: 0.92rem;
  color: #83997c;
}

/* ============= COOKIE CONSENT: BANNER + MODAL ============= */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0; right: 0;
  width: 100vw;
  background: #ffffffcc;
  border-top: 2px solid #e1ede1;
  box-shadow: 0 -2px 22px rgba(100,130,90,0.08);
  z-index: 9000;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding: 23px 20px 23px 28px;
  font-size: 1.04rem;
  font-family: var(--font-body);
  animation: banner-slide-in 600ms cubic-bezier(.69,0,.4,1);
}
@keyframes banner-slide-in {
  from { transform: translateY(100%); opacity:0; }
  to   { transform: translateY(0);   opacity:1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 15px;
}
.cookie-banner .button-primary {
  padding: 10px 30px;
  font-size: 0.98rem;
}
.cookie-banner .button-secondary,
.cookie-banner .button-danger {
  padding: 10px 20px;
  font-size: 0.98rem;
}
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(48,68,64,0.58);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 7px 44px rgba(72, 120, 75, 0.19);
  max-width: 410px;
  padding: 38px 34px 34px 34px;
  font-size: 1.05rem;
  color: #263c23;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeIn .28s cubic-bezier(.7,0,.38,1);
}
@keyframes fadeIn {
  from { opacity:0; transform: scale(0.92); }
  to   { opacity:1; transform: scale(1); }
}
.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 14px 0 14px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f6faf3;
  border-radius: 13px;
  padding: 7px 14px;
}
.cookie-category label {
  font-weight: 600;
  color: var(--organic-green);
  margin-right: 12px;
}
.cookie-category input[type="checkbox"] {
  width: 19px; height: 19px;
}
.cookie-modal-close {
  position: absolute;
  top: 22px; right: 30px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--danger);
  cursor: pointer;
  z-index: 10002;
  transition: color .16s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #791c1c;
}

/* ============= RESPONSIVE DESIGN (Mobile First) ============= */
@media (max-width: 1024px) {
  .container {
    max-width: 98vw;
    padding-left: 9px;
    padding-right: 9px;
  }
  .content-wrapper {
    max-width: 94vw;
  }
  .card, .feature-grid li, .service-grid li {
    min-width: 138px;
    max-width: 100%;
  }
}
@media (max-width: 900px) {
  .feature-grid, .service-grid, .card-container,
  .footer-main-nav, .footer-links, .footer-contact, .footer-social {
    flex-direction: column!important;
    flex-wrap: wrap!important;
    align-items: flex-start!important;
  }
  .card-grid { flex-direction: column!important; }
}
@media (max-width: 790px) {
  h1 {font-size: 2rem;}
  h2 {font-size: 1.33rem;}
  .container, .content-wrapper { max-width: 100vw; padding-left: 7px; padding-right: 7px; }
  section, .section {padding: 24px 8px;}
  .footer-main-nav,.footer-links,.footer-contact {gap: 6px;}
}
@media (max-width: 768px) {
  .container, .content-wrapper { max-width: 99vw; }
  header .container { flex-direction: row; gap:8px; }
  header nav { display: none; }
  .button-primary { padding: 10px 20px; font-size: 0.97rem;}
  .mobile-menu-toggle { display: inline-block; }
}
@media (max-width: 570px) {
  h1 {font-size: 1.32rem;}
  h2 {font-size: 1.14rem;}
  h3 {font-size: 1.03rem;}
  .card, .feature-grid li, .service-grid li {
    padding: 11px 7px;
  }
  .testimonial-card {font-size:0.99rem; padding:10px;}
}
@media (max-width: 540px) {
  .footer-contact, .footer-main-nav, .footer-links {
    font-size: 0.86rem;
  }
  .footer-legal {
    font-size: .80rem;
  }
  .cookie-banner {flex-direction: column; align-items: flex-start; gap:9px; padding:12px 6px;}
}
@media (max-width: 420px) {
  .cookie-modal-content { padding: 14vw 5vw; }
}

/* ============= UTILITIES & MICROINTERACTIONS ============= */
::-webkit-scrollbar {
  width: 9px;
  background: #e5eedc;
}
::-webkit-scrollbar-thumb {
  background: #c4dbc2;
  border-radius: 9px;
}
::-webkit-input-placeholder { color: #8a9d68; }
::-moz-placeholder { color: #8a9d68; }
:-ms-input-placeholder { color: #8a9d68; }
::placeholder { color: #8a9d68; }

/* Subtle card ripple effect */
.card:active, .testimonial-card:active {
  transform: scale(.98);
}

/* ================= ORGANIC SHAPES & NATURE SURFACE DETAILS ============== */
.section, .card, .feature-grid li, .service-grid li, .testimonial-card, .contact-short, .contact-block, .team-bio {
  border-radius: 24px 38px 22px 26px / 32px 20px 28px 27px;
  box-shadow: 0 4px 22px 6px rgba(130,156,103,0.045);
}

/* Add organic shape accent for hero/cta sections */
section:first-of-type, .section.hero, .section.cta {
  background: linear-gradient(110deg, #f9fbee 87%, #e5eedc 100%);
  border-radius: 34px 84px 52px 44px / 54px 93px 67px 47px;
  box-shadow: 0 8px 44px 7px rgba(72,120,75,0.11);
}

/* Nature-inspired details */
hr {border:0; height:1.5px; background: linear-gradient(90deg,#e5eedc 20%,#78ab7e 70%); margin:30px 0;}

/* ============= ACCESSIBLE FOCUS & CONTRAST ============= */
:focus-visible {
  outline: 2.5px solid var(--secondary);
  outline-offset: 2.5px;
}

/* ============= PRINT CLEANUP ============= */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal {display:none!important;}
  section, main {background: #fff!important; box-shadow:none!important;}
  body {color:#234163!important; background:#fff!important;}
}
