/* ===== CSS RESET & NORMALIZATION ===== */
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;
  box-sizing: border-box;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section { display: block; }
body {
  line-height: 1.6;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F6F3EE;
  color: #26302B;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; border: 0; }
table {border-collapse: collapse; border-spacing: 0;}
button, input, textarea, select { font-family: inherit; }

/* ===== CSS VARIABLES: NATURE ORGANIC THEME ===== */
:root {
  --color-primary: #143A52;   /* Brand dark blue */
  --color-secondary: #29A19C; /* Brand green */
  --color-accent: #F7F7F7;    /* Brand accent */
  --color-earth: #826F5A;     /* Nature brown */
  --color-leaf: #3E8E41;      /* Deep organic green */
  --color-sand: #EDE4D1;      /* Soft sand bg */
  --color-bark: #6C4F36;      /* Medium brown */
  --color-light-green: #E5F3EB;
  --color-bg: #F6F3EE;
  --color-text: #26302B;
  --color-muted: #8B8F7B;
  --color-shadow: 0 2px 12px 0 rgba(20,58,82,0.07);
  --radius-small: 10px;
  --radius-large: 32px;
  --box-shadow: 0 4px 16px rgba(60,40,15,0.08);
  --transition: all 0.18s cubic-bezier(.45,.4,.25,1);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* ===== TYPOGRAPHY ===== */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 18px;
  letter-spacing: -1px;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-leaf);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-bark);
  margin-bottom: 10px;
}
h4, .h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-earth);
  margin-bottom: 8px;
}
p, ul li, ol li {
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 10px;
  line-height: 1.7;
}
b, strong {
  color: var(--color-primary);
  font-weight: 600;
}
a {
  color: var(--color-secondary);
  transition: var(--transition);
}
a:hover, a:focus {
  color: var(--color-leaf);
}

/* ======== CONTAINERS & SECTIONS ======== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg);
  border-radius: var(--radius-large);
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 36px;
    padding: 30px 6px;
    border-radius: 18px;
    gap: 18px;
  }
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}

/* ======= FLEXBOX LAYOUTS ======= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-sand);
  border-radius: var(--radius-small);
  box-shadow: var(--box-shadow);
  padding: 27px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  flex: 1 1 260px;
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(60,40,15,0.10);
}
.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: 14px;
  }
  .card-container {
    flex-direction: column;
    gap: 18px;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-light-green);
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border-left: 5px solid var(--color-secondary);
}
.testimonial-card blockquote {
  font-size: 1.1rem;
  color: var(--color-primary);
  font-style: italic;
  margin: 0;
}
.testimonial-card span {
  color: var(--color-bark);
  font-weight: 600;
  font-size: 1rem;
}
.testimonial-card:hover {
  background: #cbe6d9;
  box-shadow: 0 8px 28px rgba(41,161,156,0.13);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-accent);
  border-radius: var(--radius-small);
  box-shadow: var(--box-shadow);
  padding: 18px 14px;
}

/* ======== NATURAL ORGANIC DECOR ======== */
.card, .section, .testimonial-card, .feature-item, .cookie-banner, .cookie-modal {
  box-shadow: var(--box-shadow);
}
.card, .testimonial-card, .feature-item {
  border-radius: 28px 10px 20px 36px / 24px 16px 36px 14px; /* organic curves */
}

/* ======= HEADER & NAV ======= */
header {
  background: var(--color-bg);
  box-shadow: 0 2px 12px rgba(44,62,44,0.07);
  border-bottom: 1.5px solid #E3DFD5;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
}
header a img {
  max-height: 46px;
  margin-right: 18px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-display);
  font-size: 1rem;
}
header nav a {
  color: var(--color-primary);
  padding: 4px 8px;
  border-radius: 6px 16px 14px 8px;
  transition: var(--transition);
  position: relative;
}
header nav a:hover, header nav a:focus {
  background: var(--color-light-green);
  color: var(--color-leaf);
}
.cta-btn {
  font-family: var(--font-display);
  background: var(--color-secondary);
  color: #fff !important;
  padding: 11px 32px;
  border: none;
  border-radius: 26px 12px 16px 32px;
  font-weight: 600;
  font-size: 1.09rem;
  letter-spacing: .5px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(41,161,156, 0.11);
  transition: var(--transition);
  text-align: center;
  outline: none;
  margin-left: 16px;
  margin-top: 0;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-leaf);
  color: #fff;
  box-shadow: 0 6px 24px rgba(62,142,65, 0.17);
  transform: translateY(-2px) scale(1.04);
}
@media (max-width: 990px) {
  header nav, .cta-btn {
    display: none;
  }
}
@media (max-width: 540px) {
  header .container {
    min-height: 52px;
  }
  header a img {
    max-height: 36px;
    margin-right: 7px;
  }
}

/* ======= MOBILE NAVIGATION ======= */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 22px;
  z-index: 301;
  font-size: 2.1rem;
  background: var(--color-leaf);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  box-shadow: 0 4px 18px rgba(41,161,156,0.13);
  cursor: pointer;
  transition: var(--transition);
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  outline: 3px solid var(--color-secondary);
  background: var(--color-primary);
}
@media (max-width: 990px) {
  .mobile-menu-toggle {
    display: block;
  }
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(29, 41, 25, 0.93);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  transform: translateX(100vw);
  transition: transform .35s cubic-bezier(.84, .01, .37, 1.07);
  will-change: transform;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.3rem;
  margin: 25px 30px 0 0;
  align-self: flex-end;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-leaf);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100vw;
  margin-top: 54px;
  align-items: center;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
  padding: 10px 30px;
  border-radius: 18px 28px 12px 22px;
  width: fit-content;
  transition: var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-leaf);
  color: #fff;
}

/* ===== FOOTER ===== */
footer {
  background: var(--color-accent);
  border-top: 2px solid #e5e0cc;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: center;
  padding: 32px 6px 20px 6px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  font-size: 1rem;
  color: var(--color-muted);
}
.footer-nav a {
  color: var(--color-bark);
  border-radius: 8px;
  padding: 4px 9px;
  transition: background .18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--color-light-green);
  color: var(--color-leaf);
}
.footer-info {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--color-muted);
  font-size: 0.98rem;
}
.footer-info img {
  max-width: 38px;
  filter: hue-rotate(40deg) saturate(1.22) brightness(1.1);
  opacity: 0.77;
}
@media (max-width: 600px) {
  .footer-nav { gap: 10px; font-size: .96rem; }
  .footer-info { font-size: .92rem; flex-direction: column; gap: 6px; }
}

/* ===== CONTENT / GENERIC ===== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: none;
}
.text-section > div {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}
@media (max-width: 768px) {
  .text-section {
    gap: 14px;
  }
  .text-section > div {
    flex-direction: column;
    gap: 3px;
  }
}

ul li, ol li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 12px;
  font-size: 1rem;
  color: var(--color-primary);
  font-family: var(--font-body);
}
ul li img, ol li img {
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  filter: grayscale(0.15) contrast(1.1);
  opacity: 0.96;
}
@media (max-width: 600px) {
  ul li, ol li { padding-left: 28px; font-size: .98rem; }
  ul li img, ol li img { width: 18px; height: 18px; }
}

/* Blog category button / tags */
.category-btn {
  display: inline-block;
  background: var(--color-light-green);
  color: var(--color-leaf);
  font-family: var(--font-display);
  font-size: .96rem;
  border-radius: 20px 16px 12px 28px;
  padding: 8px 22px;
  font-weight: 600;
  letter-spacing: .5px;
  margin: 0 7px 9px 0;
  transition: var(--transition);
}
.category-btn:hover, .category-btn:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* ==== TABLES - in organic style */
table {
  width: 100%;
  background: var(--color-accent);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 18px;
  font-size: 1rem;
  box-shadow: var(--box-shadow);
  border: none;
}
thead {
  background: var(--color-light-green);
}
th, td {
  padding: 14px 12px;
  text-align: left;
  border: none;
}
th {
  color: var(--color-leaf);
  font-family: var(--font-display);
  font-weight: 600;
}
td {
  font-family: var(--font-body);
}
tr:nth-child(odd) td {
  background: #f0ede6;
}
tr:nth-child(even) td {
  background: var(--color-accent);
}

/* ==== BUTTONS ==== */
button, .button {
  font-family: var(--font-display);
  border: none;
  border-radius: 19px 14px 11px 23px;
  padding: 9px 22px;
  background: var(--color-secondary);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(41,161,156, 0.11);
  transition: var(--transition);
}
button:hover, .button:hover, button:focus, .button:focus {
  background: var(--color-leaf);
  color: #fff;
  outline: none;
}

/* ===== FORMS (for contact) ===== */
input, textarea {
  border: 1.5px solid var(--color-earth);
  border-radius: 18px 11px 24px 9px;
  padding: 12px 17px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: #fff;
  margin-bottom: 12px;
  width: 100%;
  transition: border 0.18s;
  box-shadow: 0 2px 10px rgba(200,185,150,0.07);
}
input:focus, textarea:focus {
  border: 1.8px solid var(--color-leaf);
  outline: none;
  background: var(--color-light-green);
}
label {
  font-family: var(--font-display);
  color: var(--color-earth);
  font-weight: 600;
  font-size: 1rem;
}

/* ===== COOKIE CONSENT BANNER & MODAL ===== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-earth);
  color: #fff;
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
  justify-content: center;
  padding: 22px 18px;
  z-index: 2000;
  box-shadow: 0 -4px 18px rgba(60,40,15,0.17);
  border-radius: 30px 30px 0 0;
  font-size: 1.04rem;
  animation: fadeInBottom .44s;
}
.cookie-banner p { margin-bottom: 0; color: #fff; }
.cookie-banner .button, .cookie-banner .cookie-settings-btn {
  margin: 0 8px;
  padding: 7px 18px;
  font-size: .95rem;
}
.cookie-banner .cookie-settings-btn {
  background: none;
  color: #fff;
  border: 1.5px solid #fff;
}
.cookie-banner .cookie-settings-btn:hover {
  background: #fff;
  color: var(--color-earth);
}
@media (max-width: 690px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    font-size: .97rem;
    padding: 14px 8px;
  }
}

/* Cookie modal overlay */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(36, 47, 29, 0.69);
  z-index: 3001;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .2s;
}
.cookie-modal {
  background: var(--color-bg);
  color: var(--color-text);
  padding: 34px 28px 30px;
  border-radius: 36px 16px 28px 19px;
  box-shadow: 0 10px 48px rgba(44,31,14,.16);
  min-width: 320px;
  width: 96vw;
  max-width: 420px;
  max-height: 92vh;
  font-size: 1.06rem;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: slideModal .23s both;
}
.cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  background: none;
  color: var(--color-bark);
  font-size: 2.1rem;
  border: none;
  cursor: pointer;
  padding: 2px 10px;
  border-radius: 50%;
  transition: background .18s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: var(--color-light-green);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.cookie-category label {
  margin-bottom: 0;
  font-weight: 500;
  font-family: var(--font-display);
  font-size: 1.03rem;
}
.cookie-category input[type="checkbox"] {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--color-secondary);
  border-radius: 7px;
  outline: none;
  background: #fff;
  cursor: pointer;
  transition: background .13s, border .16s;
  margin-right: 2px;
}
.cookie-category input[type="checkbox"]:checked {
  background: var(--color-secondary);
  border: 2px solid var(--color-leaf);
}
.cookie-category input[type="checkbox"]:disabled {
  opacity: .5;
  border-color: #d1bb8b;
}
.cookie-modal .button { margin-right: 7px; }

@keyframes fadeIn { from { opacity:0; } to { opacity: 1; } }
@keyframes fadeInBottom { 0%{opacity:0;transform:translateY(42px)} 100%{opacity:1;transform:translateY(0);} }
@keyframes slideModal { 0%{transform:scale(0.87) translateY(30px); opacity:0.3;} 100%{transform:scale(1) translateY(0); opacity:1;} }

/* ====== MICRO-INTERACTIONS ====== */
.cta-btn, .button, .category-btn, input, .card, .testimonial-card {
  transition: var(--transition);
}
input:focus, .cta-btn:focus, .mobile-menu-toggle:focus, .cookie-modal-close:focus {
  outline: 2.5px solid var(--color-secondary);
  background: var(--color-light-green);
}

/* ===== MOBILE RESPONSIVENESS ===== */
@media (max-width: 990px) {
  .container { max-width: 98vw; padding: 0 10px; }
  header .container { padding: 0 8px; }
  .content-wrapper { gap: 12px; }
}
@media (max-width: 600px) {
  h1, .h1 { font-size: 1.32rem; }
  h2, .h2 { font-size: 1.08rem; }
  h3, .h3 { font-size: .98rem; }
  .card, .feature-item, .testimonial-card {
    border-radius: 18px 8px 18px 18px;
    padding: 12px 10px;
    min-width: unset;
  }
}

/* ======= UTILITY CLASSES ======= */
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mt-24 { margin-top: 24px; }
.align-center { align-items: center !important; }
.flex-row { display: flex; flex-direction: row; }
.flex-col { display: flex; flex-direction: column; }
gap-20 { gap: 20px !important; }

/* ===== ACCESSIBILITY - HIGH CONTRAST ON TESTIMONIALS ===== */
.testimonial-card {
  color: #212b19;
  background: var(--color-light-green);
  border-left: 5px solid var(--color-leaf);
  box-shadow: 0 2px 10px #bad8c1;
}
.testimonial-card blockquote {
  color: #143A52;
}

/* ======= PRINT HIDE ======= */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal, .cookie-modal-overlay { display: none !important; }
}
