/* ========================
   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;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.6;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #273248;
  background-color: #FAFCFA;
  min-height: 100vh;
}
ul, ol {
  list-style: none;
}
a {
  color: #273248;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #8BC34A;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  color: inherit;
  outline: none;
  background: none;
  border: none;
}

/* ========================
   VARIABLE DEFINITIONS   
   ======================== */
:root {
  --color-primary: #273248;
  --color-secondary: #D1E3DD;
  --color-accent: #8BC34A;
  --color-bg: #FAFCFA;
  --color-bg-alt: #EFF3F1;
  --color-nature-dark: #4E5A44;
  --color-terra: #EDE7D0;
  --color-wood: #BCA177;
  --color-stone: #A7B9A1;
  --color-error: #C62828;

  --shadow-card: 0 4px 16px 0 rgba(69,93,71,0.06);
  --radius-xs: 8px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* =========================
   BASE LAYOUT CONTAINERS  
   ========================= */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.text-section {
  margin-top: 16px;
  margin-bottom: 16px;
}
.card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =========================
   TYPOGRAPHY             
   ========================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: #273248;
}
h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -1px;
}
h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.3125rem;
  font-weight: 600;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 8px;
}
p, li {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #273248;
  margin-bottom: 8px;
}
strong {
  font-weight: bold;
}
.secondary-link {
  color: var(--color-accent);
  font-weight: 600;
  border-bottom: 1px solid var(--color-accent);
  transition: color 0.2s, border-color 0.2s;
}
.secondary-link:hover, .secondary-link:focus {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ===========================
   HEADER & NAVIGATION       
   =========================== */
header {
  background: var(--color-bg-alt);
  box-shadow: 0 2px 10px 0 rgba(128,140,120,0.07);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 30px;
  height: 60px;
  transition: transform 0.18s;
}
.logo:hover {
  transform: scale(1.06);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 20px;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: #273248;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-bottom 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
}
.cta-btn {
  display: inline-block;
  padding: 12px 36px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #8BC34A 60%, #A7B9A1 100%);
  border-radius: var(--radius-md);
  box-shadow: 0 3px 12px 0 rgba(90,105,79,0.08);
  transition: background 0.22s, transform 0.18s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  outline: none;
  margin-left: 16px;
}
.cta-btn:hover, .cta-btn:focus {
  background: #4E5A44;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 32px 0 rgba(90,105,79,0.13);
}
/* Hide .main-nav and .cta-btn on mobile if menu active */
@media (max-width: 1023px) {
  .main-nav,
  .cta-btn {
    display: none;
  }
}

/* ==========
   MOBILE MENU
   ========== */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: 6px;
  font-size: 2rem;
  color: var(--color-accent);
  background: #fff;
  border-radius: 50%;
  border: 1.5px solid var(--color-secondary);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  z-index: 101;
  cursor: pointer;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-secondary);
  border-color: var(--color-accent);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(209,227,221,0.98);
  box-shadow: 0 4px 30px rgba(55,86,46,0.20);
  z-index: 1200;
  transform: translateX(-100vw);
  transition: transform 0.33s cubic-bezier(.4,1.3,.58,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 28px 0 18px 24px;
  background: #fff;
  color: var(--color-primary);
  font-size: 2.1rem;
  padding: 8px 16px;
  border-radius: 28px;
  border: 2px solid var(--color-secondary);
  cursor: pointer;
  box-shadow: 0 4px 14px 0 rgba(60,85,43,0.07);
  transition: background 0.2s, border-color 0.22s;
  align-self: flex-start;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-secondary);
  border-color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 14px 24px 44px 32px;
  width: 100vw;
}
.mobile-nav a {
  display: block;
  padding: 16px 0 7px 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s, border-color 0.17s, background 0.12s;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
  border-bottom: 1.5px solid var(--color-accent);
  background: rgba(139,195,74,0.12);
}
@media (min-width: 1024px) {
  .mobile-menu-toggle,
  .mobile-menu {
    display: none !important;
  }
}
@media (max-width: 1023px) {
  .mobile-menu {
    display: flex;
  }
}

/* ============================
   HERO & FEATURES             
   ============================ */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
section:first-of-type {
  margin-top: 12px;
}
section .container > h1,
section .container > h2,
section > h1,
section > h2 {
  margin-bottom: 18px;
}
section .cta-btn {
  margin-top: 10px;
}
/* Features list & cards */
.content-wrapper ul, .content-wrapper ol {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 0 0 0 0;
  margin: 0 0 0 0;
}
.content-wrapper ul li,
.content-wrapper ol li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
  background: #fff;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-md);
  padding: 18px 18px 18px 18px;
  margin-bottom: 8px;
  font-size: 1rem;
  transition: box-shadow 0.2s, transform 0.16s;
}
.content-wrapper ul li img, .content-wrapper ol li img {
  width: 38px;
  height: 38px;
  margin-right: 8px;
}
.content-wrapper ul li:hover, .content-wrapper ol li:hover {
  box-shadow: 0 8px 36px rgba(90,120,80,0.16);
  transform: translateY(-2px) scale(1.02);
}

/* ============================
   SERVICE & TEAM CARDS        
   ============================ */
.service-card, .team-member, .faq-item {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 22px 22px 14px 22px;
  margin-bottom: 20px;
  position: relative;
  min-width: 260px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.2s, transform 0.13s;
}
.service-card:hover, .team-member:hover, .faq-item:hover {
  box-shadow: 0 8px 36px rgba(70,100,66,0.14);
  transform: scale(1.023);
}
/* For content-wrapper flex layout */
.content-wrapper > .service-card,
.content-wrapper > .team-member,
.content-wrapper > .faq-item {
  flex: 1 1 270px;
}

/* FAQ Section (accordion placeholder style) */
.faq-item h3 {
  font-size: 1.18rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-nature-dark);
}
.faq-item p {
  color: #273248;
  font-size: 1rem;
}

/* ============================
   TESTIMONIAL CARDS           
   ============================ */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 22px 20px 22px;
  margin-bottom: 20px;
  background: linear-gradient(98deg, #fff 80%, #EFF3F1 100%);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px 0 rgba(75,95,60,0.11);
  min-width: 260px;
  max-width: 520px;
  transition: box-shadow 0.19s, transform 0.15s;
  border: 1.5px solid #EDE7D0;
}
.testimonial-card p {
  font-size: 1.1rem;
  font-style: italic;
  color: #273248;
}
.testimonial-card div {
  font-size: 0.99rem;
  color: var(--color-nature-dark);
  font-style: normal;
}
.testimonial-card img {
  width: 22px;
  height: 22px;
  vertical-align: baseline;
  margin-right: 4px;
}
.testimonial-card:hover {
  box-shadow: 0 8px 36px 0 rgba(75,130,70,0.14);
  transform: scale(1.024);
}
.summary-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1.15rem;
  margin-top: 12px;
  margin-bottom: 8px;
}
.summary-rating img {
  width: 22px;
  height: 22px;
  margin-right: 4px;
}

/* ============================
   FOOTER                      
   ============================ */
footer {
  background: #EDE7D0;
  color: #273248;
  border-top: 2px solid #D1E3DD;
  margin-top: 40px;
  padding: 36px 0 20px 0;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  font-family: var(--font-display);
  margin-bottom: 6px;
}
.footer-links a {
  color: #273248;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-links a:hover, .footer-links a:focus {
  color: #8BC34A;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  font-size: 1rem;
}
.footer-contact img {
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
}

/* =========================
   COOKIE CONSENT BANNER   
   ========================= */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #FFF7E3;
  color: #273248;
  box-shadow: 0 -2px 30px 0 rgba(90,130,80,0.11);
  z-index: 2000;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 30px;
  padding: 20px 14px 20px 14px;
  font-size: 1rem;
  font-family: var(--font-body);
  animation: cookieFadeIn 0.7s;
}
.cookie-banner p {
  max-width: 540px;
  margin-bottom: 0;
  font-size: 1rem;
  color: #273248;
}
.cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  margin-left: 12px;
}
.cookie-btn {
  padding: 10px 22px;
  font-size: 1rem;
  font-family: var(--font-display);
  border-radius: 28px;
  border: none;
  margin-right: 0;
  margin-left: 0;
  font-weight: 600;
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 2px 8px 0 rgba(139,195,74,0.09);
  cursor: pointer;
  transition: background 0.19s, color 0.15s;
}
.cookie-btn.reject {
  background: #C62828;
  color: #fff;
}
.cookie-btn.settings {
  background: #EFF3F1;
  color: #273248;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #4E5A44;
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-accent);
  color: #fff;
}

@keyframes cookieFadeIn {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Cookie modal popup */
.cookie-modal-backdrop {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(39, 50, 72, 0.26);
  z-index: 2100;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInModalBg .25s;
}
@keyframes fadeInModalBg {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 48px 0 rgba(90,105,72,0.22);
  padding: 44px 32px 32px 32px;
  max-width: 390px;
  min-width: 280px;
  width: 92vw;
  font-size: 1rem;
  color: #273248;
  display: flex;
  flex-direction: column;
  animation: cookieModalIn .33s cubic-bezier(.65,1.16,.38,1);
}
@keyframes cookieModalIn {
  0% { opacity: 0; transform: scale(0.98) translateY(30px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal-close {
  position: absolute;
  top: 22px;
  right: 32px;
  background: none;
  color: #273248;
  font-size: 2.2rem;
  border: none;
  cursor: pointer;
  padding: 0 4px;
  border-radius: 50%;
  transition: background 0.18s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #EFF3F1;
}
.cookie-preference-list {
  margin-top: 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 0 3px 0;
}
.cookie-category label {
  font-weight: 600;
  font-size: 1.04rem;
}
.cookie-category .cookie-toggle {
  width: 44px;
  height: 24px;
  background: #EFF3F1;
  border-radius: 22px;
  position: relative;
  cursor: pointer;
  border: 1.25px solid #A7B9A1;
  transition: background 0.2s, border-color 0.2s;
}
.cookie-category input[type="checkbox"] {
  display: none;
}
.cookie-category .toggle-track {
  width: 44px;
  height: 24px;
  background: #EFF3F1;
  border-radius: 22px;
  position: absolute;
  left: 0; top: 0;
  border: 1px solid #A7B9A1;
  transition: background 0.2s, border-color 0.2s;
}
.cookie-category .toggle-thumb {
  position: absolute;
  left: 2px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #A7B9A1;
  transition: left 0.20s, background 0.14s;
}
.cookie-category input[type="checkbox"]:checked + .toggle-track {
  background: var(--color-accent);
  border-color: #8BC34A;
}
.cookie-category input[type="checkbox"]:checked + .toggle-track .toggle-thumb {
  left: 22px;
  background: #FFF;
  box-shadow: 0 2px 6px 0 rgba(139,195,74,0.10);
}
/* Always "enabled" for essential */
.cookie-category.essential .toggle-track {
  background: #8BC34A;
  border-color: #8BC34A;
}
.cookie-category.essential .toggle-thumb {
  background: #fff;
  left: 22px;
}
.cookie-category.essential .cookie-toggle {
  opacity: 0.6;
  pointer-events: none;
}

.cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  justify-content: flex-end;
}
.cookie-modal-actions .cookie-btn {
  padding: 8px 19px;
  font-size: 0.97rem;
  font-weight: 600;
  border-radius: 21px;
  margin: 0;
}

/* =========================
   ORGANIC DECOR & TEXTURE
   ========================= */
/* Subtle nature-inspired organic background on .section or large containers */
.section, main > section {
  background: linear-gradient(99deg, #FAFCFA 78%, #EFF3F1 107%);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 18px 0 rgba(164,175,156,0.04);
}
main > section:nth-child(even) {
  background: linear-gradient(101deg, #EFF3F1 68%, #FAFCFA 109%);
}

/* Subtle shadow for organic elevation */
.card-container > *, .card-grid > *, .content-wrapper > .service-card, .content-wrapper > .team-member {
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-md);
  background: #fff;
}

/* Decorative leaves/organic shapes (simple simulated) */
.section::after {
  content: '';
  display: block;
  position: absolute;
  pointer-events: none;
  width: 90px;
  height: 56px;
  right: 36px;
  bottom: 36px;
  background: url('../assets/decor-leaf.svg') no-repeat center/contain;
  opacity: 0.08;
  z-index: 1;
}
@media (max-width: 900px) {
  .section::after {
    display: none;
  }
}

/* =========================
   SPACING AND ALIGNMENTS  
   ========================= */
.card {
  margin-bottom: 20px;
  position: relative;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Override for content-wrapper flex usage for single columns */
.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
}
.text-section {
  flex: 1 1 100%;
  margin-bottom: 16px;
}

/* =========================
   BUTTONS STYLES         
   ========================= */
button, .cookie-btn, .cta-btn {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  transition: background 0.2s, color 0.16s, box-shadow 0.16s;
  outline: none;
}
button:active, .cta-btn:active {
  transform: scale(0.97);
}

/* =========================
   MISC CLASSES           
   ========================= */
.summary-rating,
.text-section strong {
  color: var(--color-accent);
}

/* =========================
   RESPONSIVE DESIGN      
   ========================= */
@media (max-width: 1023px) {
  header .container {
    gap: 8px;
    padding: 0 10px;
  }
  .section, main > section {
    padding: 34px 6px;
    margin-bottom: 40px;
    border-radius: var(--radius-md);
  }
}
@media (max-width: 899px) {
  .container {
    max-width: 98vw;
    padding: 0 6px;
  }
  .content-wrapper, .card-container, .card-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .feature-item {
    align-items: stretch;
    gap: 12px;
  }
  .testimonial-card {
    padding: 17px 9px 17px 11px;
  }
  .service-card, .team-member, .faq-item {
    max-width: 98vw;
    min-width: 0;
    margin-bottom: 14px;
    padding: 16px 7px 10px 12px;
    gap: 7px;
  }
}
@media (max-width: 540px) {
  .container {
    padding: 0 3px;
  }
  body {
    font-size: 0.99rem;
  }
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.16rem; }
  h3 { font-size: 1.05rem; }
  .cta-btn {
    padding: 12px 16px;
    font-size: 0.96rem;
  }
  .footer-links {
    gap: 16px;
    font-size: 0.91rem;
  }
  .footer-contact {
    font-size: 0.92rem;
  }
  .mobile-menu {
    padding-top: 0;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    font-size: 0.95rem;
    padding: 13px 6px 14px 8px;
  }
  .cookie-actions {
    flex-direction: column;
    gap: 8px;
    margin-left: 0;
    align-items: stretch;
  }
}

/* ============================
   Z-INDEX SAFE LAYERING       
   ============================ */
header { z-index: 1000; }
.mobile-menu { z-index: 1200; }
.cookie-banner { z-index: 2000; }
.cookie-modal-backdrop { z-index: 2100; }

/* ============================
   UTILITY CLASSES             
   ============================ */
.hidden { display: none !important; }

/* ============================
   END OF STYLE                
   ============================ */
