/* --- CSS RESET & BASE --- */
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, sans-serif;
  background: #FFFFFF;
  color: #374940;
  min-height: 100vh;
  line-height: 1.7;
  font-size: 16px;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}
ul, ol {
  margin: 16px 0 16px 24px;
  padding: 0;
}
ul li, ol li {
  margin-bottom: 8px;
  font-size: 16px;
}
a {
  color: #6B5E43;
  text-decoration: none;
  transition: color 0.15s;
}
a:hover, a:focus {
  color: #A4967B;
  outline: none;
}
strong {
  font-weight: 700;
}
blockquote {
  margin: 24px 0 24px 0;
  padding: 16px 24px;
  background: #f8f6f0;
  color: #6B5E43;
  border-left: 4px solid #A4967B;
  font-style: italic;
  border-radius: 12px;
}

/* --- BRAND COLORS as CSS VARS --- */
:root {
  --color-primary: #374940;
  --color-secondary: #D1E0CC;
  --color-bg: #FFFFFF;
  --color-accent: #6B5E43;
  --color-warning: #A4967B;
  --color-offwhite: #f8f6f0;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: var(--color-primary);
  line-height: 1.1;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 24px;}
h2 { font-size: 2rem; font-weight: 600; margin-bottom: 20px; }
h3 { font-size: 1.3rem; font-weight: 500; margin-bottom: 16px; }
.center {
  text-align: center;
}

p {
  color: var(--color-primary);
  font-size: 1rem;
  margin-bottom: 16px;
}

/* --- CONTAINERS & LAYOUT --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.text-section {
  background: var(--color-offwhite);
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(106, 93, 67, 0.07);
  padding: 32px 24px;
  margin-bottom: 28px;
}

/* Flex spacing patterns (MANDATORY) */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-offwhite);
  border-radius: 16px;
  box-shadow: 0 2px 14px rgba(106, 93, 67, 0.09);
  padding: 28px 24px;
  min-width: 260px;
  flex: 1 1 280px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 4px 24px 0 rgba(106,93,67,0.14);
  transform: translateY(-2px) scale(1.012);
}
.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;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 20px;
  margin-bottom: 24px;
  border-radius: 16px;
  box-shadow: 0 2px 14px rgba(106, 93, 67, 0.13);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  transition: box-shadow 0.18s, transform 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 30px rgba(106,93,67,0.21);
  transform: scale(1.012);
}
.testimonial-card p {
  color: #374940;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- HEADER --- */
header {
  background: var(--color-secondary);
  box-shadow: 0 2px 16px rgba(106, 93, 67, 0.05);
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  min-height: 80px;
  gap: 12px;
}
.logo img {
  height: 48px;
  width: auto;
  border-radius: 10px;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-left: 26px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-primary);
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.16s, color 0.16s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  padding: 10px 26px;
  margin-left: 18px;
  border-radius: 24px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(106,93,67,0.08);
  transition: background 0.18s, box-shadow 0.15s, transform 0.15s;
  outline: none;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: #A4967B;
  box-shadow: 0 4px 18px rgba(106,93,67,0.14);
  transform: translateY(-2px) scale(1.024);
}

/* --- MOBILE NAV --- */
.mobile-menu-toggle {
  display: none;
  background: var(--color-accent);
  color: #fff;
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.16s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-primary);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 50;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.6,-0.2,.45,1.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  box-shadow: 0 3px 30px rgba(106,93,67,0.22);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 24px 0 0;
  background: none;
  color: var(--color-primary);
  border: none;
  font-size: 2.2rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  transition: background 0.17s;
}
.mobile-menu-close:focus {
  outline: 2px solid var(--color-accent);
  background: var(--color-offwhite);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  width: 100%;
  margin-top: 28px;
  padding: 0 36px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  color: var(--color-primary);
  padding: 16px 12px;
  border-radius: 12px;
  transition: background 0.16s, color 0.16s;
  text-align: left;
  margin-bottom: 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}

/* --- FOOTER --- */
footer {
  background: var(--color-primary);
  color: #fff;
  font-size: 1rem;
  padding: 52px 0 22px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 200px;
  gap: 10px;
}
.footer-brand img {
  width: 48px;
  height: auto;
  margin-bottom: 4px;
}
.footer-brand p {
  font-size: 1rem;
  color: #f6fae0;
  font-family: 'Montserrat', Arial, sans-serif;
}
.footer-links, .footer-contact, .footer-social, .footer-legals {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Open Sans', Arial, sans-serif;
  margin-bottom: 0;
  padding: 4px 0;
  font-size: 1rem;
  border-radius: 6px;
  transition: background 0.15s, color 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--color-accent);
  color: #fcf8ee;
}
.footer-contact p {
  color: #f8f6f0;
  font-size: 0.96rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-contact img {
  width: 22px;
  height: 22px;
}
.footer-social {
  flex-direction: row;
  gap: 18px;
  margin-top: 10px;
}
.footer-social a img {
  width: 28px;
  height: 28px;
  transition: filter 0.14s;
}
.footer-social a:hover img, .footer-social a:focus img {
  filter: brightness(0.98) saturate(1.5);
}
.footer-legals {
  margin-top: 20px;
  flex-direction: row;
  gap: 8px;
  font-size: 0.95rem;
}
.footer-legals a {
  color: #D1E0CC;
  transition: color 0.15s;
  border-radius: 4px;
  padding: 2px 4px;
}
.footer-legals a:hover, .footer-legals a:focus {
  color: #fff;
  background: var(--color-accent);
}

/* --- SECTIONS & GRIDS --- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 16px;
  background: #fff;
}
section:nth-child(even) {
  background: var(--color-secondary);
}
/* override for testimonial & inner section cards */
section .testimonial-card {
  background: #fff;
  color: var(--color-primary);
}

/* --- BUTTONS / INTERACTIVE --- */
.btn-primary,
.button,
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 24px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  margin-top: 10px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(106,93,67,0.07);
  transition: background 0.17s, box-shadow 0.16s, transform 0.12s;
}
.btn-primary:hover, .btn-primary:focus,
.button:hover, .button:focus,
.cookie-btn:hover, .cookie-btn:focus {
  background: #A4967B;
  box-shadow: 0 4px 24px rgba(106,93,67,0.16);
  transform: translateY(-2px) scale(1.016);
}

/* --- FORMS --- */
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  padding: 10px 12px;
  border: 1px solid #e2e6da;
  border-radius: 10px;
  background: #f9f8f3;
  font-size: 1rem;
  margin-bottom: 12px;
  transition: border-color 0.16s, box-shadow 0.15s;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-accent);
  outline: none;
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  margin-bottom: 6px;
  display: block;
  color: var(--color-primary);
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff7ef;
  color: var(--color-primary);
  border-top: 2px solid var(--color-accent);
  box-shadow: 0 -2px 18px rgba(106,93,67,0.08);
  padding: 24px 20px 18px 20px;
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  z-index: 90;
  transition: transform 0.3s;
}
.cookie-banner.hide { /* for JS: animate out */
  transform: translateY(120%);
  pointer-events: none;
  opacity: 0;
}
.cookie-banner-desc {
  font-size: 1rem;
  flex: 2 1 340px;
}
.cookie-btns {
  display: flex;
  gap: 12px;
}
.cookie-btn {
  padding: 8px 24px;
  border-radius: 22px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
}
.cookie-btn.accept {
  background: var(--color-accent);
  color: #fff;
}
.cookie-btn.reject {
  background: #ece3d6;
  color: var(--color-accent);
}
.cookie-btn.settings {
  background: none;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
}
.cookie-btn.accept:hover,.cookie-btn.accept:focus {
  background: #A4967B;
}
.cookie-btn.reject:hover,.cookie-btn.reject:focus {
  background: #e8d7c0;
}
.cookie-btn.settings:hover,.cookie-btn.settings:focus {
  background: #fff;
  color: #A4967B;
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 101;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(55, 73, 64, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.28s;
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 5px 36px rgba(106,93,67,0.25);
  padding: 36px 24px 24px 24px;
  max-width: 380px;
  width: 96vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  animation: cookieModalIn 0.35s cubic-bezier(.63,.01,.36,1.34);
}
@keyframes cookieModalIn {
  from { transform: translateY(80px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.cookie-cat {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-cat label {
  font-size: 1.04rem;
  margin-bottom: 0;
  font-family: 'Open Sans', Arial, sans-serif;
}
.cookie-switch {
  appearance: none;
  width: 38px; height: 22px;
  border-radius: 12px;
  background: #ded2bb;
  outline: none;
  transition: background 0.14s;
  position: relative;
  cursor: pointer;
}
.cookie-switch:checked {
  background: var(--color-accent);
}
.cookie-switch:after {
  content: '';
  display: block;
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.16s;
  box-shadow: 0 1px 3px rgba(97,81,59,0.10);
}
.cookie-switch:checked:after {
  left: 19px;
}
.cookie-cat .cookie-cat-desc {
  font-size: 0.96rem;
  color: #88806c;
  margin-left: 8px;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  width: 100%;
}
.cookie-modal .cookie-btn {
  width: 100%;
  justify-content: center;
}
.cookie-modal-close {
  position: absolute;
  right: 14px; top: 12px;
  background: none; border: none;
  color: var(--color-primary);
  font-size: 2rem;
  border-radius: 50%;
  width: 36px; height: 36px;
  cursor: pointer;
  transition: background 0.14s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus { background: #f7f5e8; }

/* --- MISC--- */
hr {
  border: none;
  border-top: 1.5px solid #ece5d8;
  margin: 30px 0;
}

/* --- SPACING HELPERS --- */
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-60 { margin-bottom: 60px; }
.pt-24 { padding-top: 24px; }
.pb-24 { padding-bottom: 24px; }

/* --- RESPONSIVE --- */
@media (max-width: 1120px) {
  .container { max-width: 98vw; }
}
@media (max-width: 920px) {
  .footer-brand, .footer-links, .footer-contact, .footer-social, .footer-legals {
    min-width: 160px;
    flex: 1 1 140px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  section, .text-section {
    padding: 28px 10px;
  }
  .container {
    padding: 0 6px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  header .btn-primary { display: none; }
  .footer-nav, .footer-nav nav {
    flex-direction: column;
    gap: 9px;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .content-wrapper, .text-section {
    padding: 12px 4px;
  }
  .section {
    margin-bottom: 40px;
    padding: 22px 5px;
  }
  .testimonial-card { padding: 16px 7px; }
}
@media (max-width: 520px) {
  .testimonial-card {
    max-width: 99vw;
  }
  .footer-social a img {
    width: 22px; height: 22px;
  }
  .footer-brand img { width: 36px; }
}
/* Flex containers stack vertically on mobile */
@media (max-width: 820px) {
  .card-container, .content-grid, .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
}
@media (max-width: 520px) {
  .footer-legals { flex-direction: column; gap: 3px; }
  .cookie-banner {
    flex-direction: column;
    gap: 16px;
    text-align: left;
    padding: 16px 8px 12px 8px;
  }
  .cookie-btns { flex-direction: column; gap: 9px; }
}

/* --- SCROLLBAR (for desktop) --- */
@media (min-width: 900px) {
  ::-webkit-scrollbar {
    width: 11px;
    background: #ECEAE2;
  }
  ::-webkit-scrollbar-thumb {
    background: #D1E0CC;
    border-radius: 8px;
    border: 2.5px solid #ECEAE2;
  }
}

/* --- MICROINTERACTIONS --- */
section, .testimmonial-card, .card {
  transition: box-shadow 0.20s cubic-bezier(.4,0,.1,1.2), background 0.22s;
}
.card:active, .testimonial-card:active {
  transform: scale(0.97);
  box-shadow: 0 0 0 rgba(106,93,67,0.02);
}

/* --- UTILITY --- */
.hide { display:none !important; }

/* --- END OF SATORI FLOW UI SYSTEM --- */
