/* --- CSS RESET & BASE TYPOGRAPHY --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #224E36;
  background: #FEFAF2;
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-size: 1rem;
}
/* --- BRAND COLOR VARIABLES (with fallback) --- */
:root {
  --cb-primary: #224E36;
  --cb-secondary: #EBD379;
  --cb-accent: #FFFFFF;
  --cb-bg: #FEFAF2;
  --cb-contrast: #181C19;
  --cb-soft-shadow: rgba(34,78,54,0.09);
}
/* Fallbacks for CSS variables */
.cb-primary { color: #224E36; }
.cb-secondary { color: #EBD379; }
.cb-bg { background: #FEFAF2; }
.cb-accent { color: #FFFFFF; }
.cb-contrast { color: #181C19; }

body {
  background: var(--cb-bg, #FEFAF2);
}
img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* --- LAYOUT CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

main {
  margin-bottom: 40px;
}

.content-wrapper, .text-section {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--cb-accent, #fff);
  border-radius: 28px;
  box-shadow: 0 2px 16px var(--cb-soft-shadow, rgba(34,78,54,0.08));
}

@media (max-width: 768px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .section {
    padding: 24px 10px;
    margin-bottom: 32px;
    border-radius: 18px;
  }
}

/* --- HEADER/NAVIGATION STYLES --- */
header {
  background: var(--cb-accent, #fff);
  box-shadow: 0 1px 10px var(--cb-soft-shadow), 0 1px 0 #eae7da;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 600;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 10px;
}

header nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
header nav a {
  text-decoration: none;
  color: var(--cb-primary, #224E36);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 18px;
  transition: background 0.18s, color 0.18s;
}
header nav a:hover, header nav a:focus {
  background: var(--cb-secondary, #EBD379);
  color: var(--cb-primary, #224E36);
  outline: none;
}

header img {
  height: 56px;
  border-radius: 16px;
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  background: var(--cb-secondary, #EBD379);
  color: var(--cb-primary, #224E36);
  border: none;
  border-radius: 16px;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  box-shadow: 0px 4px 12px var(--cb-soft-shadow);
  cursor: pointer;
  transition: background 0.18s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  outline: 2px solid var(--cb-secondary);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: var(--cb-accent, #fff);
  box-shadow: 0 8px 36px rgba(34, 78, 54, 0.14);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.42s cubic-bezier(.66,.27,.43,.96);
  padding: 0 0 0 0;
  justify-content: flex-start;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--cb-primary, #224E36);
  font-size: 2rem;
  align-self: flex-end;
  margin: 24px 24px 0 0;
  cursor: pointer;
  border-radius: 100%;
  width: 40px; height: 40px;
  transition: background 0.16s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--cb-secondary, #EBD379);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin: 32px 0 0 36px;
}
.mobile-nav a {
  text-decoration: none;
  color: var(--cb-primary, #224E36);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  padding: 12px 24px 12px 0;
  border-radius: 16px;
  transition: background 0.18s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--cb-secondary, #EBD379);
  color: var(--cb-primary);
}

@media (max-width: 1023px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1024px) {
  .mobile-menu,
  .mobile-menu-toggle { display: none !important; }
}

/* --- TYPOGRAPHY & HEADINGS --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--cb-primary, #224E36);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.8rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 10px; }
h3 { font-size: 1.35rem; margin-bottom: 10px; }
h4 { font-size: 1.13rem; }
h5, h6 { font-size: 1rem; }

@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.09rem; }
}

p, ul, ol, li, blockquote {
  font-size: 1.02rem;
  color: var(--cb-contrast, #181C19);
  margin-bottom: 0.6em;
}
a {
  color: var(--cb-primary, #224E36);
  text-decoration: underline;
  transition: color 0.13s;
}
a:hover, a:focus {
  color: var(--cb-secondary, #EBD379);
  outline: none;
}

blockquote {
  font-style: italic;
  color: #68470b;
  border-left: 5px solid var(--cb-secondary, #EBD379);
  margin: 12px 0;
  padding: 8px 16px;
  background: #FFF8E1;
  border-radius: 8px;
}

ul, ol {
  margin-left: 1.3em;
  margin-bottom: 1.1em;
  gap: 10px;
  display: flex;
  flex-direction: column;
}
ul li, ol li { margin-bottom: 0.3em; }
ul li:last-child, ol li:last-child { margin-bottom: 0; }

/* --- MAIN BUTTONS --- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  padding: 13px 32px;
  border-radius: 24px;
  border: none;
  background: var(--cb-secondary, #EBD379);
  color: var(--cb-primary, #224E36);
  cursor: pointer;
  box-shadow: 0 2px 8px var(--cb-soft-shadow);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  text-decoration: none;
  min-width: 32px;
}
.button.primary {
  background: var(--cb-primary, #224E36);
  color: #fff;
}
.button.secondary {
  background: var(--cb-secondary, #EBD379);
  color: var(--cb-primary, #224E36);
}
.button:hover, .button:focus {
  background: #fff3b6;
  color: var(--cb-primary, #224E36);
  box-shadow: 0 4px 20px var(--cb-soft-shadow);
  outline: 2px solid var(--cb-secondary, #EBD379);
}
.button.primary:hover, .button.primary:focus {
  background: #406b4e;
  color: #fffde8;
}
.button.secondary:hover, .button.secondary:focus {
  background: #fff6cc;
}

/* --- FLEXBOX CARD + CONTENT LAYOUTS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 14px var(--cb-soft-shadow, rgba(34,78,54,0.11));
  transition: box-shadow 0.18s, transform 0.18s;
  padding: 24px;
  min-width: 280px;
  max-width: 100%;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 7px 32px rgba(110, 84, 7, 0.14);
  transform: translateY(-3px) scale(1.015);
  z-index: 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;
    gap: 18px;
    align-items: flex-start;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 11px;
}

/* --- FEATURES & ITEMS --- */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #FFF8E1;
  color: #3a2700;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(238,190,92,0.09), 0 1.5px 6px 0px rgba(34,78,54,0.05);
  max-width: 680px;
  border-left: 5px solid var(--cb-secondary, #EBD379);
}
.testimonial-card p {
  color: #3a2700;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.04rem;
  font-weight: 500;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: #a98509;
  font-family: 'Roboto', Arial, sans-serif;
  font-style: italic;
}
@media (max-width: 600px) {
  .testimonial-card { padding: 13px; }
}

/* --- TABLES --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
th, td {
  font-size: 1rem;
  padding: 13px 10px;
  text-align: left;
  border-bottom: 1px solid #eee5bb;
}
th {
  background: #fff7e3;
  color: var(--cb-primary, #224E36);
  font-weight: 700;
}
td {
  background: #fff;
}

/* --- FORMS (if present) --- */
input[type="text"], input[type="email"], textarea {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 14px;
  padding: 11px 16px;
  border: 1.5px solid #EDD89C;
  margin-bottom: 20px;
  background: #fff;
  color: var(--cb-primary, #224E36);
  transition: border 0.14s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: var(--cb-secondary, #EBD379);
  outline: none;
}

/* --- FOOTER --- */
footer {
  background: #fff8e1;
  color: var(--cb-primary, #224E36);
  box-shadow: 0 -1px 8px var(--cb-soft-shadow, rgba(34,78,54,0.06));
  padding: 30px 0 20px 0;
  font-size: 0.98rem;
  border-radius: 24px 24px 0 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 8px;
}
footer nav a {
  color: var(--cb-primary, #224E36);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 12px;
  transition: background 0.12s;
  font-weight: 500;
}
footer nav a:hover, footer nav a:focus {
  background: var(--cb-secondary, #EBD379);
  color: #645200;
}

/* --- COOKIE CONSENT BANNER & MODAL --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; width: 100vw;
  background: var(--cb-accent, #fff);
  box-shadow: 0 -2px 22px 6px rgba(110,90,10,0.13);
  border-top: 2px solid #f5e5a9;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5000;
  padding: 24px 16px 18px 16px;
  gap: 18px;
  font-size: 1.02rem;
  animation: slideUpCookie 0.5s cubic-bezier(.71,1.76,.51,.98);
}
@keyframes slideUpCookie {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 18px;
  padding: 11px 22px;
  border: none;
  margin: 0;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.16s, color 0.14s;
}
.cookie-btn-accept {
  background: var(--cb-secondary, #EBD379);
  color: var(--cb-primary, #224E36);
}
.cookie-btn-accept:hover, .cookie-btn-accept:focus { background: #fffadd; }
.cookie-btn-reject {
  background: #EAECF0;
  color: var(--cb-primary, #224E36);
}
.cookie-btn-reject:hover, .cookie-btn-reject:focus { background: #fbe2a2; }
.cookie-btn-settings {
  background: none;
  color: var(--cb-primary, #224E36);
  border: 2px solid #edd89c;
}
.cookie-btn-settings:hover, .cookie-btn-settings:focus { background: #f6ebbe; }

.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(1);
  background: #fffdfa;
  color: var(--cb-primary, #224E36);
  border-radius: 24px;
  box-shadow: 0 4px 44px 8px rgba(110, 84, 7, 0.14);
  z-index: 5800;
  max-width: 420px;
  min-width: 270px;
  width: 90%;
  padding: 36px 24px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeInModal 0.33s cubic-bezier(.48,.21,.37,.99);
}
@keyframes fadeInModal {
  from { opacity: 0; transform: translate(-50%,-56%) scale(.98); }
  to   { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
.cookie-modal-header {
  font-size: 1.32rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--cb-primary, #224E36);
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cookie-category input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--cb-secondary, #EBD379);
}
.cookie-modal-buttons {
  margin-top: 12px;
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--cb-primary, #224E36);
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.14s;
  width: 36px; height: 36px;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #fff9de;
}

@media (max-width:520px) {
  .cookie-modal { padding: 17px 4vw 18px 4vw; }
}

/* Overlay for modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 5799;
  left:0; top:0; right:0; bottom:0;
  background: rgba(34, 78, 54, 0.28);
  pointer-events: auto;
}

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
  .container { max-width: 96vw; }
}
@media (max-width: 992px) {
  h1 { font-size: 2.1rem; }
}
@media (max-width: 768px) {
  body { font-size: 0.98rem; }
  h1, h2, h3, h4 { margin-bottom: 7px; }
  .section { margin-bottom: 32px; }
  .footer .container { padding-left: 11px; padding-right: 11px; }
}
@media (max-width: 480px) {
  .container, .section { padding-left: 5px; padding-right: 5px; }
  h1 { font-size: 1.17rem; }
  h2 { font-size: 1.02rem; }
}

/* --- MICRO-INTERACTIONS --- */
.button, .cookie-banner button {
  transition: background 0.17s, color 0.17s, box-shadow 0.18s, outline 0.1s;
}
nav a, .mobile-nav a {
  transition: background 0.12s, color 0.13s;
}
.card, .testimonial-card {
  transition: box-shadow 0.17s, transform 0.14s;
}
.card:hover,
.card:focus-within,
.testimonial-card:hover,
.testimonial-card:focus-within {
  box-shadow: 0 8px 32px rgba(210, 140, 13, 0.13);
  transform: translateY(-2px) scale(1.01);
}

/* --- UTILITY CLASSES (OPTIONAL) --- */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px !important; }
.mb-24 { margin-bottom: 24px !important; }
.rounded-xl { border-radius: 24px !important; }
.shadow-soft { box-shadow: 0 4px 20px var(--cb-soft-shadow); }

/* --- PRINT (for content pages) --- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal, .cookie-modal-overlay { display: none !important; }
  .section, .container { box-shadow: none !important; border: none !important; padding: 0 !important; }
}
section {
  padding: 15px;
}