/* ========================
  CSS RESET & NORMALIZATION
========================== */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, 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-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { box-sizing: border-box; scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: inherit; }
body { line-height: 1.5; }
ol, ul { list-style: none; }
table { border-collapse: collapse; border-spacing: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
input, button, textarea, select { font: inherit; }

/* =============
  BRAND COLORS
============== */
:root {
  /* Main palette: earth tones & nature organic neutrality*/
  --brand-primary: #23527C;
  --brand-secondary: #E6F2FF;
  --brand-accent: #F5B000;
  --organic-green: #3A815B;
  --earth-brown: #9D7A50;
  --soft-stone: #F2ECE4;
  --deep-wood: #4D3B25;
  --light-bg: #FBFBF7;
  --neutral-text: #263122;
  --border-card: #e4e4db;
  --shadow-card: rgba(35, 82, 124, 0.06);
  --white: #FFFFFF;
  --error: #B33A1F;
}

/* =============
  TYPOGRAPHY
============== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');
body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--neutral-text);
  background: var(--light-bg);
  font-size: 16px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--brand-primary);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  line-height: 1.15;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.15rem; }
}
p, li, dd {
  font-size: 1rem;
  color: var(--deep-wood);
  margin-bottom: 10px;
}
strong { font-weight: 700; }
em { font-style: italic; }

/* ================
  SPACING & LAYOUT
================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--soft-stone);
  border-radius: 24px;
  box-shadow: 0 2px 16px var(--shadow-card);
}
@media (max-width: 768px) {
  .section {
    padding: 24px 8px;
    margin-bottom: 40px;
  }
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* =========================
  FLEX PATTERNS (MANDATORY)
========================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 300px;
  min-width: 260px;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--border-card);
  box-shadow: 0 2px 16px var(--shadow-card);
  padding: 28px 24px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  border-color: var(--organic-green);
  box-shadow: 0 4px 24px rgba(58, 129, 91, 0.11);
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 2px 14px var(--shadow-card);
  margin-bottom: 24px;
  border-left: 6px solid var(--organic-green);
  position: relative;
  max-width: 600px;
}
@media (max-width: 540px) {
  .testimonial-card { flex-direction: column; gap: 12px; padding: 14px; }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Specific page mapped classes for spacing */
.features ul, .services-home ul, .content-wrapper > ul, .text-section ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
  margin-bottom: 14px;
}
.features ul li, .services-home ul li, .content-wrapper > ul li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
}

@media (max-width: 520px) {
  .features ul li img, .services-home ul li img { width: 20px; height: 20px; }
}

/* ============
  HERO SECTION
============== */
.hero {
  background: linear-gradient(100deg, #edf2ec 62%, #e6f2ff 100%);
  border-radius: 0 0 46px 46px;
  box-shadow: 0 4px 32px var(--shadow-card);
  padding: 56px 0 50px 0;
  margin-bottom: 64px;
}
.hero .container {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 30px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 28px;
  max-width: 700px;
  margin: auto;
}
@media (max-width: 900px) {
  .hero { padding: 36px 0 30px; margin-bottom: 40px; }
}
@media (max-width: 600px) {
  .hero { border-radius: 0 0 25px 25px; }
}

/* ==============
  MAIN NAVIGATION
================ */
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  background: transparent;
  padding: 18px 0;
}
header {
  background: var(--white);
  box-shadow: 0 2px 10px var(--shadow-card);
  border-radius: 0 0 30px 30px;
  position: sticky;
  top: 0; left: 0; width: 100%;
  z-index: 35;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: .07em;
  color: var(--brand-primary);
  padding: 6px 14px;
  border-radius: 12px;
  transition: background 0.15s, color 0.14s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--organic-green);
  color: var(--white);
}
.main-nav img {
  height: 36px !important;
  width: auto;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 14px;
  background: var(--secondary);
  padding: 4px;
}
.main-nav .cta.primary {
  background: var(--organic-green);
  color: var(--white) !important;
  border-radius: 16px;
  font-weight: 700;
  padding: 8px 28px;
  margin-left: 8px;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(58,129,91,0.08);
  border: none;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}
.main-nav .cta.primary:hover, .main-nav .cta.primary:focus {
  background: var(--brand-accent);
  color: var(--deep-wood) !important;
  box-shadow: 0 4px 22px rgba(245,176,0,0.18);
}
@media (max-width: 1020px) {
  .main-nav { gap: 12px; }
}
@media (max-width: 800px) {
  .main-nav { display: none !important; }
  .mobile-menu-toggle { display: flex !important; }
}

/* =========================
  MOBILE MENU (HAMBURGER)
========================== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 21px;
  right: 28px;
  background: var(--organic-green);
  color: var(--white);
  border: none;
  font-size: 1.8rem;
  padding: 10px 16px 7px;
  border-radius: 12px;
  cursor: pointer;
  z-index: 51;
  transition: background 0.14s, color 0.13s;
}
.mobile-menu-toggle:hover {
  background: var(--brand-accent);
  color: var(--neutral-text);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 90vw;
  max-width: 360px;
  background: var(--white);
  box-shadow: -4px 0 26px rgba(36,64,51,0.18);
  z-index: 60;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(120%);
  transition: transform .34s cubic-bezier(0.5,0.03,0.73,1.17);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--brand-accent);
  color: var(--deep-wood);
  border: none;
  font-size: 2.2rem;
  border-radius: 16px;
  padding: 6px 18px 3px 15px;
  cursor: pointer;
  margin: 14px 0 10px 14px;
  align-self: flex-end;
  transition: background .14s, color .13s;
}
.mobile-menu-close:hover { background: var(--organic-green); color: var(--white); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 20px 20px 32px 29px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: var(--organic-green);
  font-size: 1.1rem;
  padding: 10px 18px 10px 8px;
  border-radius: 14px;
  margin-right: 0;
  line-height: 1.2;
  transition: background .14s, color .13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}

@media (min-width: 800px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* ==============
  FOOTER
=============== */
footer {
  background: var(--soft-stone);
  border-radius: 34px 34px 0 0;
  padding: 46px 20px 27px 20px;
  margin-top: 60px;
  box-shadow: 0 -3px 34px var(--shadow-card);
}
.footer-nav, .footer-contact {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.footer-contact {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-size: 1rem;
  color: var(--brand-primary);
  font-family: 'Open Sans', Arial, sans-serif;
}
.footer-nav a {
  font-size: 1rem;
  color: var(--organic-green);
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 12px;
  padding: 4px 14px;
  transition: background 0.12s, color 0.11s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--brand-accent);
  color: var(--deep-wood);
}
@media (max-width: 768px) {
  .footer-nav, .footer-contact { gap: 12px; padding: 0; margin-bottom: 8px; }
  footer { padding: 22px 7px 18px 7px; border-radius: 18px 18px 0 0; margin-top: 30px;}
}

/* ============================
  BUTTONS AND CALL-TO-ACTIONS
============================ */
.cta, button, input[type="submit"] {
  appearance: none;
  font-family: 'Montserrat', Arial, sans-serif;
  display: inline-block;
  border-radius: 16px;
  background: var(--organic-green);
  color: var(--white);
  border: none;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  margin-bottom: 10px;
  box-shadow: 0 2px 14px var(--shadow-card);
  transition: background 0.16s, color 0.15s, box-shadow 0.16s;
}
.cta.primary {
  background: var(--organic-green);
  color: var(--white);
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--brand-accent);
  color: var(--deep-wood);
  box-shadow: 0 4px 22px rgba(245,176,0,0.19);
}
.cta.secondary {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}
.cta.secondary:hover {
  background: var(--organic-green);
  color: var(--white);
}
a.cta { text-align: center; }
button:disabled, input[type="submit"][disabled] {
  opacity: 0.66;
  cursor: not-allowed;
}

/* ==============
  FORMS & INPUTS
=============== */
input[type="search"], input[type="text"], input[type="email"], textarea {
  font-family: 'Open Sans', Arial, sans-serif;
  border-radius: 14px;
  border: 1px solid var(--border-card);
  background: var(--white);
  padding: 12px 18px;
  font-size: 1rem;
  outline: none;
  margin-bottom: 14px;
  transition: border-color 0.18s, box-shadow 0.17s;
  box-shadow: 0 1px 8px var(--shadow-card);
}
input[type="search"]:focus, input[type="text"]:focus, textarea:focus {
  border-color: var(--organic-green);
  box-shadow: 0 2px 16px var(--shadow-card);
}
::placeholder { color: #838278; opacity: 1; }

/* ================
  PRICING TABLE
================ */
.pricing-table table {
  width: 100%;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 3px 24px var(--shadow-card);
  overflow: hidden;
  margin-bottom: 2rem;
}
.pricing-table th,
.pricing-table td {
  padding: 18px 14px;
  border-bottom: 1px solid var(--border-card);
  text-align: left;
  font-size: 1rem;
}
.pricing-table th {
  background: var(--brand-secondary);
  color: var(--brand-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
.pricing-table tr:last-child td {
  border-bottom: none;
}
.pricing-table td ul {
  padding-left: 19px;
  margin-top: 4px;
}
@media (max-width: 600px) {
  .pricing-table table, .pricing-table th, .pricing-table td {
    font-size: 0.92rem;
    padding: 12px 8px;
  }
}

/* ===================
  CARDS & TESTIMONIALS
==================== */
.testimonials {
  background: var(--soft-stone);
  border-radius: 24px;
  margin-bottom: 64px;
  box-shadow: 0 2px 18px var(--shadow-card);
}
.testimonial-card {
  color: var(--brand-primary);
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 2px 16px var(--shadow-card);
  border-left: 6px solid var(--organic-green);
  margin-bottom: 24px;
  max-width: 670px;
  position: relative;
}
.testimonial-card blockquote {
  margin: 0 0 8px 0;
  font-style: italic;
  font-size: 1.08rem;
  color: var(--deep-wood);
}
.testimonial-card footer {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--organic-green);
  font-size: .98rem;
}

/* ================
  DL / FAQ Styling
================= */
dl {
  width: 100%;
  margin-bottom: 18px;
}
dl dt {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: var(--organic-green);
  margin-top: 18px;
  font-size: 1.07rem;
}
dl dd {
  margin-left: 0;
  margin-bottom: 8px;
  font-size: 1rem;
}

/* =============================
  ORGANIC ELEMENTS & DECORATION
=============================== */
.section, .hero, .card, .testimonial-card, .features, .footer-nav, .footer-contact, .pricing-table table {
  box-shadow: 0 2px 18px var(--shadow-card);
}
.section, .hero, .testimonials, .card {
  border-radius: 20px 34px 20px 34px;
  /* organic asymmetric rounding */
}
.features ul li img, .services-home ul li img {
  background: var(--brand-secondary);
  border-radius: 50%;
  width: 28px; height: 28px;
  box-shadow: 0 2px 8px var(--shadow-card);
  margin-right: 6px;
}

/* =====================
  TEXT-SECTION STYLING
====================== */
.text-section, .content-wrapper > .text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.text-section ul {
  margin-left: 24px;
}
.text-section li {
  margin-bottom: 6px;
}

/* ===============
  CTA SECTIONS
================ */
.contact-cta, .cta-section {
  background: var(--organic-green);
  color: var(--white);
  border-radius: 22px;
  padding: 32px 20px;
  margin-bottom: 62px;
  box-shadow: 0 4px 22px rgba(58,129,91,0.10);
}
.contact-cta h2, .cta-section h2 {
  color: var(--white);
}
.contact-cta p, .cta-section p {
  color: #E3F8E5 !important;
}
.contact-cta .cta, .cta-section .cta {
  background: var(--brand-accent);
  color: var(--deep-wood);
}
.contact-cta .cta:hover, .cta-section .cta:hover {
  background: var(--white);
  color: var(--organic-green);
}

/* ==========
  TABLES
=========== */
table {
  width: 100%;
  background: var(--white);
  border-radius: 13px;
  box-shadow: 0 2px 10px var(--shadow-card);
  overflow: hidden;
}
th, td {
  padding: 13px 12px;
  text-align: left;
}
th { background: var(--brand-secondary); color: var(--brand-primary); }

/* ==============
  LINKS & STATES
=============== */
a {
  color: var(--brand-primary);
  text-decoration: underline;
  transition: color 0.14s, background 0.12s;
}
a:hover, a:focus {
  color: var(--organic-green);
  text-decoration: none;
}
.text-section a { text-decoration: underline dotted; }

/* ===============
  ANIMATIONS
================ */
.mobile-menu, .mobile-menu.open {
  transition: transform .34s cubic-bezier(0.5,0.03,0.73,1.17), background .18s;
}
.cta, button, input[type="submit"] {
  transition: background 0.18s, color 0.15s, box-shadow 0.18s;
}
.card {
  transition: box-shadow 0.22s, border-color 0.16s;
}
.card:hover {
  box-shadow: 0 8px 38px rgba(58, 129, 91, 0.19);
}

/* Subtle appear animation for sections */
.section, .hero, .card, .testimonial-card {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeInUp 1.0s cubic-bezier(0.4,0,0.2,1) .15s forwards;
}
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ==========
  MEDIA QUERY RESPONSIVENESS
============= */
@media (max-width: 900px) {
  .container { max-width: 96vw; padding-left: 12px; padding-right: 12px;}
  .main-nav { padding: 10px 0; }
  .section, .testimonials { margin-bottom: 32px; }
}
@media (max-width: 600px) {
  .container { max-width: 98vw; padding-left: 2vw; padding-right: 2vw; }
}

/* ===================
  COOKIE BANNER & MODAL
====================== */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--brand-primary);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 20px 16px 26px 16px;
  box-shadow: 0 -2px 20px rgba(35,82,124,0.14);
  z-index: 9999;
  border-radius: 20px 20px 0 0;
  font-size: 1rem;
  animation: fadeInBanner .44s cubic-bezier(.5,.03,.73,1.17) forwards;
}
@keyframes fadeInBanner {
  from { opacity: 0; transform: translateY(48px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-consent-banner button {
  margin: 0 9px 0 0;
  min-width: 120px;
  border-radius: 14px;
  padding: 11px 19px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 1.5px 6px rgba(50,50,60,0.11);
  transition: background 0.17s, color 0.13s;
}
.cookie-consent-banner .accept {
  background: var(--organic-green);
  color: var(--white);
}
.cookie-consent-banner .accept:hover { background: var(--brand-accent); color: var(--deep-wood);}
.cookie-consent-banner .reject {
  background: var(--white);
  color: var(--organic-green);
}
.cookie-consent-banner .reject:hover { background: var(--earth-brown); color: var(--white);}
.cookie-consent-banner .settings {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}
.cookie-consent-banner .settings:hover { background: var(--organic-green); color: var(--white);}

/* Cookie Preferences Modal */
.cookie-modal-backdrop {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(24,52,30,0.35);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInBackdrop .23s linear forwards;
}
@keyframes fadeInBackdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--white);
  border-radius: 20px;
  padding: 36px 30px 32px 30px;
  box-shadow: 0 8px 40px rgba(35,82,124,0.19);
  min-width: 300px;
  max-width: 96vw;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  animation: fadeInUp .5s cubic-bezier(0.4,0,0.2,1) forwards;
  position:relative;
  z-index:10002;
}
.cookie-modal h3 {
  font-size: 1.18rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--organic-green);
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 8px;
  margin-left: 6px;
  font-size: 1rem;
}
.cookie-modal label {
  cursor: pointer;
  color: var(--brand-primary);
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--brand-accent);
  width: 22px; height: 22px;
  margin-right: 2px;
}
.cookie-modal .always-on {
  color: var(--earth-brown);
  font-size: .95rem;
  font-style: italic;
}
.cookie-modal .close {
  position: absolute;
  top: 12px; right: 14px;
  background: var(--brand-accent);
  color: var(--deep-wood);
  border:none;
  font-size: 2rem;
  border-radius: 13px;
  padding: 0px 12px;
  cursor:pointer;
  z-index: 10005;
  transition: background 0.16s, color 0.13s;
}
.cookie-modal .close:hover { background: var(--organic-green); color: var(--white);}
.cookie-modal .save {
  background: var(--organic-green);
  color: var(--white);
  border: none;
  border-radius: 13px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 32px;
  margin-top: 5px;
  cursor: pointer;
  align-self: flex-end;
  transition: background 0.12s, color 0.13s;
}
.cookie-modal .save:hover { background: var(--brand-accent); color: var(--deep-wood);}

/* ===========
  MISC
=========== */
hr {
  border: none;
  border-top: 1.5px solid var(--border-card);
  margin: 30px 0 32px 0;
}
::-webkit-scrollbar {
  width: 10px;
  background: #eef7f4;
}
::-webkit-scrollbar-thumb {
  background: #b2caba;
  border-radius: 8px;
}

/* Accessibility focus */
a:focus-visible, button:focus-visible, .cta:focus-visible {
  outline: 2.5px dashed var(--brand-accent) !important;
  outline-offset: 3px;
  z-index: 30;
}

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