/* ============================================
   RESET & BASE STYLES
   ============================================ */
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%; vertical-align: baseline; box-sizing: border-box;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body { min-height: 100vh; line-height: 1.5; background: #F3F5F1; color: #2d3a28; font-family: "Open Sans", Arial, sans-serif; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: #194775; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #E9B817; }
ul, ol { list-style: none; }

/* Font Faces */
@import url('https://fonts.googleapis.com/css?family=Montserrat:600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: #1d3320;
  letter-spacing: -0.5px;
}
h1 { font-size: 2.5rem; margin-bottom: 18px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.4rem; margin-bottom: 12px; }
h4 { font-size: 1.15rem; margin-bottom: 10px; }

p, li, ul, ol {
  font-size: 1rem;
  color: #33432f;
}
strong, b { color: #194775; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ============================================
   ORGANIC/NATURE THEME COLORS AND ACCENTS
   ============================================ */
:root {
  --primary: #194775;
  --secondary: #F6F8FB;
  --accent: #E9B817;
  --earth: #7c6652;
  --leaf: #377a34;
  --sage: #e3ede2;
  --sand: #eadfc7;
  --cream: #faf9f7;
  --title: #16392a;
  --dark: #25321C;
  --shadow: rgba(31,55,27,0.07);
}

body {
  background: var(--sage);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header { background: var(--cream); box-shadow: 0 2px 10px rgba(49,61,41,0.04); position: relative; z-index: 20; }
header .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px;
  padding-top: 14px; padding-bottom: 14px;
}
.logo { display: flex; align-items: center; }
.logo img { height: 44px; }

.main-nav {
  display: flex; gap: 24px; align-items: center;
}
.main-nav a {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #2D3A28;
  padding: 6px 10px;
  border-radius: 18px;
  letter-spacing: 0.01em;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #fff;
  background: var(--leaf);
}

.cta-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--leaf);
  color: #fff;
  border-radius: 999px;
  padding: 12px 28px;
  font-weight: 700;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.08rem;
  border: none; outline: none;
  box-shadow: 0 2px 8px var(--shadow);
  transition: background 0.18s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  margin-left: 18px;
  letter-spacing: 0.03em;
}
.cta-btn:hover, .cta-btn:focus {
  background: #215826;
  color: #ffe;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 18px var(--shadow), 0 1.5px 0 var(--leaf);
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
  background: var(--leaf);
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 14px;
  padding: 7px 14px;
  cursor: pointer;
  display: none;
  margin-left: 10px;
  transition: background 0.15s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #215826;
}

@media (max-width: 1024px) {
  header .container {
    gap: 10px;
  }
  .main-nav { gap: 10px; }
  .cta-btn { padding: 10px 22px; font-size: 1rem; }
}

@media (max-width: 900px) {
  .main-nav { gap: 3px; }
  .cta-btn { margin-left: 6px; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .cta-btn { font-size: 1rem; padding: 12px 22px; }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ============================================
   MOBILE NAVIGATION
   ============================================ */
.mobile-menu {
  position: fixed; z-index: 200;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(18,32,13,0.11);
  display: flex; flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.3s, transform 0.37s cubic-bezier(0.77,0,0.175,1);
}
.mobile-menu.active {
  opacity: 1; pointer-events: all;
  transform: translateX(0);
}
.mobile-menu-close {
  margin-top: 18px; margin-right: 22px;
  background: var(--leaf);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 2rem;
  width: 44px; height: 44px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.17s, color 0.2s;
  box-shadow: 0 4px 18px var(--shadow);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #215826;
  color: #E9B817;
}
.mobile-nav {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--cream);
  min-width: 74vw; max-width: 410px;
  padding: 18px 32px 34px 32px;
  border-radius: 48px 0 0 48px;
  margin-top: 60px;
  box-shadow: 0 8px 34px 2px rgba(48,72,36,0.04), 0 0.5px 0 #c8e9c8;
}
.mobile-nav a {
  font-family: "Montserrat", Arial, sans-serif;
  color: #183012;
  font-size: 1.17rem;
  font-weight: 600;
  padding: 13px 6px 13px 12px;
  border-radius: 24px;
  transition: background 0.14s, color 0.15s;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--leaf);
  color: #fff;
}

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

/* ============================================
   MAIN STRUCTURAL STYLES
   ============================================ */
main { padding: 36px 0 0 0; }
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background-color: var(--cream);
  border-radius: 44px;
  box-shadow: 0 4px 14px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
/* Section backgrounds for organic feel */
.section:nth-child(even) {
  background-color: var(--sand);
}

.content-wrapper {
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

@media (max-width: 1024px) {
  .section { border-radius: 36px; padding: 32px 12px; }
  .content-wrapper { max-width: 99vw; }
}
@media (max-width: 768px) {
  .section { margin-bottom: 32px; border-radius: 20px; padding: 24px 5px; }
}

/* ============================================
   FLEXBOX CONTENT PATTERNS & ORGANIZATION
   ============================================ */
.card-container {
  display: flex; flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  min-width: 245px;
  max-width: 360px;
  background: #f8f7f4;
  border-radius: 28px;
  box-shadow: 0 2px 10px var(--shadow);
  padding: 26px 20px;
  margin-bottom: 20px; /* mandatory spacing */
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: box-shadow 0.18s, transform 0.17s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 24px var(--shadow);
  transform: translateY(-4px) scale(1.01);
}

.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; align-items: flex-start; gap: 18px; }
  .content-grid { flex-direction: column; gap: 18px; }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: var(--sage);
  border-radius: 24px;
  box-shadow: 0 2px 8px var(--shadow);
  padding: 20px 28px;
  margin-bottom: 20px;
  max-width: 540px;
  transition: box-shadow 0.18s, background 0.18s;
}
.testimonial-card p {
  color: #2e392c;
  font-size: 1.05rem;
  font-style: italic;
}
.testimonial-card span {
  color: #215826;
  font-size: 0.97rem;
  font-weight: 600;
  margin-top: 6px;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 24px var(--shadow);
  background: #f5faef;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* ============================================
   LISTS & ICONS
   ============================================ */
ul li, ol li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0 7px 0;
}
ul li img, ol li img {
  width: 32px;
  height: 32px;
  background: var(--sage);
  border-radius: 50%;
  padding: 5px;
  margin-right: 6px;
  box-shadow: 0 2px 8px var(--shadow);
}
ul li b, ul li strong {
  color: var(--primary);
  font-weight: 700;
}

ol {
  counter-reset: organiccounter;
}
ol li {
  counter-increment: organiccounter;
}
ol li:before {
  content: counter(organiccounter)'. ';
  color: var(--leaf);
  font-weight: 600;
  margin-right: 6px;
}

/* ============================================
   FOOTER STYLES
   ============================================ */
footer {
  background: var(--earth);
  color: #fff;
  padding: 38px 0 18px 0;
  font-size: 1rem;
}
.footer-wrapper {
  display: flex; flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 6px;
}
.footer-nav, .social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.footer-nav a {
  color: #fff;
  font-size: 1.02rem;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 600;
  padding: 4px;
  border-radius: 99px;
  transition: color 0.17s, background 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
  background: #3e422d;
}
.social-links a {
  display: flex; align-items: center; background: #eee0bf2e; border-radius: 50%; padding: 2px; transition: background 0.13s; }
.social-links a:hover, .social-links a:focus { background: #ece95e42; }
.social-links img { height: 28px; width: 28px; }

@media (max-width: 900px) {
  .footer-wrapper { gap: 18px; flex-direction: column; align-items: flex-start; }
}

/* ============================================
   BUTTONS & INTERACTIONS
   ============================================ */
button, .cta-btn {
  box-shadow: 0 2px 8px var(--shadow);
  outline: none;
  border: none;
}
button:focus-visible, .cta-btn:focus-visible {
  outline: 2px solid var(--accent);
}

/* Animations and Transitions */
a, .cta-btn, button, .mobile-menu-close, .mobile-menu-toggle {
  transition: background 0.18s, color 0.18s, box-shadow 0.2s, transform 0.18s;
}

/* ============================================
   COOKIE CONSENT BANNER AND MODAL
   ============================================ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 400;
  background: var(--earth);
  color: #fff;
  font-size: 1.02rem;
  padding: 22px 16px 22px 22px;
  box-shadow: 0 -3px 16px rgba(59,53,29,0.08);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
  animation: cookie-banner-in 0.40s 1 ease;
}
@keyframes cookie-banner-in {
  from { opacity: 0; transform: translateY(60px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner .cookie-banner-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-banner .cookie-btn {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 99px;
  border: none;
  background: var(--leaf);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  margin-right: 0;
  box-shadow: 0 2px 8px var(--shadow);
  transition: background 0.18s, color 0.17s, transform 0.17s;
}
.cookie-banner .cookie-btn:hover,
.cookie-banner .cookie-btn:focus {
  background: #215826;
  color: var(--accent);
}
.cookie-banner .cookie-btn.secondary {
  background: #fff;
  color: var(--leaf);
  border: 1.5px solid var(--leaf);
}
.cookie-banner .cookie-btn.secondary:hover,
.cookie-banner .cookie-btn.secondary:focus {
  background: #fde8ae;
  color: #183012;
}
@media (max-width: 700px) {
  .cookie-banner { flex-direction: column; gap: 16px; }
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 1000;
  background: rgba(22,37,12,0.35);
  display: flex; align-items: center; justify-content: center;
  animation: cookie-modal-in 0.38s 1 ease;
}
@keyframes cookie-modal-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: var(--cream);
  border-radius: 34px;
  box-shadow: 0 8px 34px 8px var(--shadow);
  padding: 36px 28px;
  max-width: 410px;
  width: 92vw;
  display: flex; flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal-content h3 {
  color: var(--leaf);
  font-size: 1.27rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.cookie-modal-content label {
  display: flex; align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.cookie-modal-content input[type="checkbox"] {
  accent-color: var(--leaf);
  width: 20px; height: 20px;
}
.cookie-modal-content .modal-btns {
  display: flex; gap: 14px; justify-content: flex-end;
}
.cookie-modal-content .cookie-btn {
  margin-top: 0; padding: 9px 22px; font-size: 1rem;
}
.cookie-modal-content .close-modal {
  position: absolute; top: 10px; right: 11px;
  background: none; border: none;
  font-size: 1.95rem; color: var(--leaf);
  cursor: pointer;
  border-radius: 14px;
  transition: color 0.18s, background 0.15s;
}
.cookie-modal-content .close-modal:hover,
.cookie-modal-content .close-modal:focus {
  color: var(--primary); background: #dbe2cd;
}

/* ============================================
   RESPONSIVE TYPOGRAPHY & SPACING
   ============================================ */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.28rem; }
  h3 { font-size: 1.05rem; }
  .testimonial-card, .card { padding: 16px 10px; border-radius: 17px; }
  .content-wrapper { gap: 11px; }
}

/* ============================================
   ORGANIC/NATURE DECORATIVE ACCENTS
   ============================================ */
.section, .card, .testimonial-card {
  /* Slight organic/softness border radius, earth shadow */
  border-radius: 44px 30px 38px 50px / 38px 44px 28px 44px;
}
@media (max-width: 768px) {
  .section, .card, .testimonial-card {
    border-radius: 17px 20px 16px 28px / 20px 15px 12px 17px;
  }
}

/* Subtle leaf/dot SVG decorations could be added in ::before (not for core content) */

/* ============================================
   FORMS & FIELDS (future ready)
   ============================================ */
input, textarea, select {
  font-family: inherit;
  padding: 10px 14px;
  border: 1.3px solid #c0d4c0;
  border-radius: 20px;
  background: #f8fbf5;
  margin-bottom: 18px;
  font-size: 1.02rem;
  box-shadow: 0 1px 4px var(--shadow);
  color: #183012;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--leaf);
  box-shadow: 0 2px 10px #B7E3B6BB;
}
label {
  color: #16471F;
  font-weight: 600;
  font-family: "Montserrat", Arial, sans-serif;
  margin-bottom: 7px;
  display: block;
}

/* ============================================
   MISC... ACCESSIBILITY + HELPERS
   ============================================ */
.sr-only {
  position: absolute; left: -10000px; width: 1px; height: 1px; top: auto; overflow: hidden;
}
.visually-hidden { visibility: hidden; }

/* ============================================
   ENSURE NO ELEMENTS OVERLAP
   ============================================ */
section, .card, .testimonial-card, .feature-item, .card-container > *, .content-grid > * {
  margin-bottom: 20px;
}
.section:last-child, .content-wrapper:last-child, .card-container > *:last-child, .testimonial-card:last-child {
  margin-bottom: 0 !important;
}

/* ============================================
   CUSTOM SCROLLBAR FOR NATURE LOOK
   ============================================ */
::-webkit-scrollbar { width: 7px; background: #e4efdc; border-radius: 8px; }
::-webkit-scrollbar-thumb { background: #b5c6aa; border-radius: 8px; }
html {
  scrollbar-width: thin; scrollbar-color: #b5c6aa #e4efdc;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  nav, .mobile-menu, footer, .cookie-banner { display: none !important; }
  body { background: #fff; color: #222; }
}
