/* ==== CSS RESET & NORMALIZE ==== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #1c261a;
  background: #F4F1ED;
  min-height: 100vh;
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
ul li, ol li {
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.6;
}
a {
  color: #37533C;
  text-underline-offset: 3px;
  transition: color 0.2s;
  font-weight: 600;
}
a:hover {
  color: #C79247;
}

/* ==== BRAND COLORS & VARIABLES (no CSS custom properties for compatibility) ==== */
:root {
  /* For documentation only */
}

/* ==== TYPOGRAPHY ==== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', 'Georgia', serif;
  font-weight: 900;
  color: #37533C;
  letter-spacing: -1px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 8px;
}
.subheadline {
  font-size: 1.25rem;
  font-weight: 700;
  color: #b3771b;
  margin-bottom: 28px;
  letter-spacing: -0.5px;
  text-shadow: 0 1px 0 #fff3e7;
}
strong {
  font-weight: 800;
  color: #37533C;
}

/* ==== CONTAINERS & LAYOUT ==== */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.header-wrapper, .footer-wrapper, .content-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.content-wrapper {
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 4px 32px 0 rgba(55,83,60,0.06);
}
.text-section {
  margin-bottom: 16px;
}

/* ==== FLEX SPACING PATTERNS (per spec) ==== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(55, 83, 60, 0.10);
  padding: 24px;
  transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover {
  box-shadow: 0 6px 24px 0 rgba(199,146,71,0.10);
  transform: translateY(-2px) scale(1.015);
}
.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;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(44,59,41,0.12);
  margin-bottom: 20px;
  max-width: 800px;
  flex-direction: column;
}
.testimonial-card p {
  font-size: 1.1rem;
  color: #37533C;
  font-weight: 600;
}
.testimonial-card strong {
  font-size: 1rem;
  color: #b3771b;
  display: block;
  margin-top: 4px;
  letter-spacing: 0.3px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F4F1ED;
  border-radius: 12px;
  padding: 24px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px 0 rgba(199,146,71,0.04);
}

/* ==== BUTTONS ==== */
.btn, .main-nav a.btn, .mobile-nav a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1.125rem;
  font-weight: 800;
  border-radius: 40px;
  padding: 15px 38px;
  border: none;
  cursor: pointer;
  background: #b3771b;
  color: #fff;
  text-decoration: none;
  margin-top: 8px;
  box-shadow: 0 2px 8px 0 rgba(199,146,71,0.07);
  letter-spacing: 1.5px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.btn-primary {
  background: #b3771b;
  color: #fff;
  border: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: #C79247;
  color: #fff;
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 5px 16px 0 rgba(199, 146, 71, 0.15);
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* ==== HEADER / NAVIGATION ==== */
header {
  background: #fff;
  box-shadow: 0 2px 10px 0 rgba(199,146,71,0.07);
  z-index: 6000;
}
.header-wrapper {
  align-items: center;
  padding: 16px 0 10px 0;
}
.header-wrapper a img {
  height: 48px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-weight: 800;
  font-size: 1rem;
  color: #37533C;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: #b3771b;
  color: #fff;
}
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: #b3771b;
  background: transparent;
  border: none;
  padding: 4px 10px;
  border-radius: 8px;
  margin-left: 8px;
  transition: background 0.15s, color 0.15s;
  z-index: 9999;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #C79247;
  color: #fff;
}

/* ==== MOBILE MENU ==== */
.mobile-menu {
  position: fixed;
  display: flex;
  flex-direction: column;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #37533C;
  color: #fff;
  z-index: 9000;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.77,.2,.05,1), opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
  box-shadow: -2px 0 16px 0 rgba(44,59,41,0.14);
}
.mobile-menu-close {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  background: transparent;
  border: none;
  padding: 6px 13px;
  border-radius: 8px;
  z-index: 10001;
  cursor: pointer;
  box-shadow: 0 1px 4px 0 rgba(44,59,41,0.09);
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #C79247;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  margin-top: 86px;
  padding-left: 32px;
  gap: 28px;
  width: 100vw;
}
.mobile-nav a {
  color: #fff;
  font-weight: 900;
  font-size: 1.5rem;
  text-decoration: none;
  letter-spacing: 2px;
  padding: 10px 0;
  border-radius: 6px;
  transition: background 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #b3771b;
  color: #fff;
}

/* ==== FOOTER ==== */
footer {
  background: #F4F1ED;
  padding: 54px 0 34px 0;
  margin-top: 64px;
  border-top: 4px solid #b3771b;
}
.footer-wrapper {
  align-items: flex-start;
  gap: 42px;
  flex-wrap: wrap;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #37533C;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  opacity: 0.92;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #b3771b;
  text-decoration: underline;
}
.brand-info img {
  width: 56px;
  margin-bottom: 14px;
}
.brand-info p {
  color: #555;
  font-size: 0.98rem;
  line-height: 1.7;
}

/* ==== COOKIE CONSENT BANNER & MODAL ==== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: #37533C;
  color: #fff;
  padding: 24px 16px 16px 16px;
  z-index: 9900;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 32px;
  box-shadow: 0 -3px 16px 0 rgba(44,59,41,0.08);
  animation: slideBannerIn 0.41s cubic-bezier(.77,.2,.05,1);
}
.cookie-banner .cookie-banner-text {
  font-size: 1rem;
  max-width: 560px;
  color: #fff;
}
.cookie-banner .cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
}
.cookie-banner button, .cookie-banner .btn {
  font-size: 1rem;
  font-weight: 800;
  border-radius: 24px;
  padding: 10px 28px;
  border: none;
  margin-left: 4px;
}
.cookie-accept {
  background: #b3771b;
  color: #fff;
}
.cookie-accept:hover, .cookie-accept:focus {
  background: #C79247;
}
.cookie-reject {
  background: #fff;
  color: #37533C;
  border: 2px solid #b3771b;
}
.cookie-reject:hover, .cookie-reject:focus {
  background: #b3771b;
  color: #fff;
}
.cookie-settings {
  background: transparent;
  color: #b3771b;
  text-decoration: underline;
}
.cookie-settings:hover, .cookie-settings:focus {
  color: #fff;
}

@keyframes slideBannerIn {
  from { transform: translateY(60px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(44,59,41,0.34);
  animation: fadeModalIn 0.35s ease;
}
@keyframes fadeModalIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #37533C;
  border-radius: 18px;
  box-shadow: 0 2px 24px 0 rgba(44,59,41,0.13);
  min-width: 320px;
  max-width: 95vw;
  padding: 32px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  position: relative;
  animation: popupScaleIn 0.3s cubic-bezier(.77,.2,.05,1);
}
@keyframes popupScaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  color: #b3771b;
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.cookie-modal .cookie-category label {
  font-weight: 700;
  font-size: 1.01rem;
}
.cookie-modal .cookie-category input[disabled] {
  accent-color: #b3771b;
  opacity: 0.7;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 6px;
}
.cookie-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  color: #b3771b;
  font-size: 1.66rem;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  transition: background 0.15s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #fcecd6;
  color: #b3771b;
}

/* ==== MISC utility classes ==== */
.hidden { display: none !important; }

/* ==== RESPONSIVENESS (mobile first) ==== */
@media (max-width: 1024px) {
  .container {
    max-width: 95vw;
    padding-left: 10px;
    padding-right: 10px;
  }
  .footer-wrapper, .header-wrapper {
    gap: 24px;
  }
}
@media (max-width: 900px) {
  .content-wrapper {
    gap: 18px;
  }
  .testimonial-card { max-width: 98vw; }
}
@media (max-width: 768px) {
  .header-wrapper {
    flex-direction: row;
    align-items: center;
    gap: 18px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
  }
  .section {
    padding: 32px 7px;
    margin-bottom: 36px;
    border-radius: 18px;
  }
  h1 {
    font-size: 1.7rem;
  }
  h2 {
    font-size: 1.28rem;
  }
  .footer-wrapper,.brand-info {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .testimonial-card {
    padding: 14px 6px;
    font-size: 1rem;
    border-radius: 10px;
    max-width: 99vw;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 20px;
    padding: 20px 5px 12px 5px;
    font-size: 0.94rem;
    align-items: flex-start;
  }
}
@media (max-width: 520px) {
  .header-wrapper a img {height: 32px;}
  .footer-wrapper, .brand-info {gap: 12px;}
  .cookie-modal {
    padding: 14px 6px 12px 6px;
    min-width: 96vw;
    border-radius: 8px;
  }
}

/* ==== VISUAL ENHANCEMENTS & INTERACTIONS ==== */
.card, .testimonial-card, .feature-item {
  transition: box-shadow 0.2s, transform 0.15s;
}
.card:hover, .feature-item:hover {
  box-shadow: 0 8px 26px 0 rgba(55,83,60,0.14);
  transform: translateY(-2px) scale(1.012);
}
.section {
  transition: box-shadow 0.3s;
}
.section:hover {
  box-shadow: 0 7px 34px 0 rgba(44,59,41,0.09);
}

.btn, .btn-primary, .cookie-banner button, .cookie-modal button {
  transition: background 0.18s, color 0.17s, box-shadow 0.18s, transform 0.13s;
}

/* For better tap target spacing on mobile */
@media (hover: none) and (pointer: coarse) {
  .btn, .mobile-nav a, .cookie-banner button, .cookie-modal button {
    padding-top: 18px;
    padding-bottom: 18px;
    min-width: 54px;
    font-size: 1.15rem;
  }
}

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

/* ==== END ==== */
