/* === CSS RESET & BASELINE === */
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, 
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F6F6F6;
  color: #33473B;
  font-family: 'Nunito Sans', Arial, sans-serif;
  min-height: 100vh;
  font-size: 16px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}

/* === BRAND FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Bree+Serif:wght@400&family=Nunito+Sans:wght@400;600;700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Bree Serif', serif;
  color: #33473B;
  margin-bottom: 16px;
  font-weight: 400;
  line-height: 1.15;
}
h1 { font-size: 2.75rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 16px; }
h4 { font-size: 1.1rem; }
p, li, label, select, input, textarea {
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #33473B;
  letter-spacing: 0.01em;
}
strong { font-weight: bold; }

/* === LAYOUT HELPERS & CONTAINER === */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 16px rgba(51,71,59,0.06);
  margin-bottom: 60px;
  padding: 40px 20px;
  transition: box-shadow .2s;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

/* === FLEXBOX PATTERNS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(51,71,59,.07);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 20px;
  flex: 1 1 250px;
  min-width: 225px;
  transition: box-shadow .18s;
}
.card:hover {
  box-shadow: 0 7px 24px rgba(51,71,59,.13);
}
.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: flex-start;
  gap: 20px;
  padding: 20px;
  background: #F6F6F6;
  border-left: 6px solid #EFC88B;
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(51,71,59,0.07);
  transition: box-shadow .15s;
}
.testimonial-card strong {
  color: #33473B;
  font-size: 1rem;
  letter-spacing: .01em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === HEADER & NAVIGATION === */
header {
  display: flex;
  justify-content: space-evenly;
  width: 100%;
  padding: 12px;
  background: #fff;
  box-shadow: 0 1px 8px rgba(51,71,59,0.07);
  position: sticky;
  top: 0;
  z-index: 1200;
}
header .container {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: flex-start;
  gap: 24px;
}
header img {
  height: 46px;
  width: auto;
  margin-right: 18px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  margin-left: auto;
}
.main-nav a {
  color: #33473B;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 4px 0;
  transition: color .20s, border-bottom .20s;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #EFC88B;
  border-bottom: 2px solid #EFC88B;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #33473B;
  font-size: 2rem;
  margin-left: 16px;
  cursor: pointer;
  padding: 4px 8px;
  transition: color .2s;
  z-index: 1900;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #EFC88B;
}

/* === MOBILE MENU === */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(51,71,59,0.93);
  transform: translateX(100vw);
  transition: transform .45s cubic-bezier(0.7,0,0.4,1);
  z-index: 5000;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  align-self: flex-end;
  margin: 24px 24px 12px 0;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  margin: 48px 0 0 32px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-bottom .2s;
  border-radius: 3px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #EFC88B;
  border-bottom: 2px solid #fff;
}

@media (max-width: 1025px) {
  .main-nav { gap: 16px; }
}
@media (max-width: 900px) {
  .main-nav { gap: 7px; font-size: 0.98rem; }
}
@media (max-width: 850px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
}

/* === HERO BANNER === */
.hero {
  background: linear-gradient(120deg, #F6F6F6 60%, #EFC88B 100%);
  border-radius: 0 0 22px 22px;
  box-shadow: 0 2px 14px rgba(51,71,59,0.08);
  padding: 48px 0 12px 0;
  margin-bottom: 38px;
}
.hero h1 {
  color: #33473B;
  font-size: 2.3rem;
  margin-bottom: 18px;
}
.hero p {
  font-size: 1.17rem;
  margin-bottom: 30px;
  color: #406654;
  max-width: 520px;
}

/* === FEATURES GRID & CARDS === */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 12px;
  margin-bottom: 16px;
}
.feature-grid > div {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(51,71,59,0.06);
  padding: 26px 18px 18px 18px;
  flex: 1 1 210px;
  min-width: 175px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  position: relative;
  transition: box-shadow .18s;
}
.feature-grid > div:hover {
  box-shadow: 0 5px 18px rgba(51,71,59,0.13);
}
.feature-grid img {
  width: 36px;
  height: 36px;
  margin-bottom: 4px;
}
.feature-grid h3 {
  font-size: 1.07rem;
  color: #33473B;
  margin-bottom: 7px;
}

/* === BUTTONS === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: #33473B;
  color: #fff;
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  padding: 12px 28px;
  border: none;
  border-radius: 24px;
  box-shadow: 0 2px 10px rgba(51,71,59,0.08);
  cursor: pointer;
  transition: background .16s, box-shadow .21s, transform .16s;
  margin-top: 16px;
  margin-bottom: 4px;
}
.btn-primary:hover, .btn-primary:focus {
  background: #EFC88B;
  color: #33473B;
  transform: translateY(-2px) scale(1.027);
  box-shadow: 0 5px 24px rgba(51,71,59,0.17);
  outline: none;
}

/* === FORMS & FILTERS === */
label {
  font-size: 1.03rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #33473B;
}
input[type="text"], select, textarea {
  padding: 10px 12px;
  border: 1px solid #C7CECB;
  border-radius: 8px;
  background: #f8f9f8;
  font-size: 1rem;
  margin-bottom: 10px;
  transition: border-color .17s;
  min-width: 160px;
  max-width: 100%;
}
input[type="text"]:focus, select:focus, textarea:focus {
  border-color: #EFC88B;
  outline: none;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 12px;
  margin-bottom: 12px;
}
.filter-bar label {
  min-width: 75px;
}
.filter-bar select {
  min-width: 135px;
}

/* === TAGS === */
.popular-tags {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.popular-tags strong { margin-right: 6px; }
.popular-tags span {
  background: #EFC88B;
  color: #33473B;
  font-weight: 600;
  font-size: .98rem;
  border-radius: 12px;
  padding: 4px 13px;
  letter-spacing: .01em;
  margin-bottom: 5px;
}

/* === NEWSLETTER SECTION === */
.newsletter {
  background: #fffbe9;
  border: 1.5px solid #EFC88B;
  border-radius: 16px;
  box-shadow: 0 1px 7px rgba(51,71,59,0.035);
}
.newsletter ul {
  margin-bottom: 16px;
  margin-top: 8px;
  padding-left: 22px;
  color: #33473B;
  list-style: inside disc;
}
.newsletter li {
  margin-bottom: 6px;
  font-size: 1rem;
}

/* === FOOTER === */
footer {
  background: #F6F6F6;
  border-top: 2px solid #EFC88B;
  padding: 36px 0 14px 0;
  margin-top: 60px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
.footer-nav a {
  color: #406654;
  font-size: 0.98rem;
  font-weight: 600;
  transition: color .15s;
  padding: 2px 0;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #EFC88B;
}

/* === BREADCRUMBS, SEPARATOR (not in HTML but for future expansion) === */
.breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: .94rem;
  margin-bottom: 20px;
  color: #aec6ba;
}

/* === UTILITY CLASSES === */
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.mt-6 { margin-top: 24px; }
.mb-6 { margin-bottom: 24px; }
.mt-8 { margin-top: 32px; }
.mb-8 { margin-bottom: 32px; }
.text-center { text-align: center; }

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 2px solid #EFC88B;
  box-shadow: 0 -3px 18px rgba(51,71,59,0.11);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 9999;
  padding: 22px 20px 18px 20px;
  animation: cookie-slidein .6s cubic-bezier(0,0,0.35,1);
}
@keyframes cookie-slidein {
  0% { transform: translateY(120%); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: translateY(0); }
}
.cookie-banner p {
  color: #33473B;
  margin: 0 0 14px 0;
  font-size: 1rem;
  text-align: center;
}
.cookie-banner .cookie-btn-group {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 6px;
}
.cookie-banner button {
  background: #33473B;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 22px;
  font-size: 1rem;
  font-family: 'Nunito Sans', Arial, sans-serif;
  cursor: pointer;
  transition: background .19s, color .15s, box-shadow .18s;
}
.cookie-banner button.cookie-settings {
  background: #EFC88B;
  color: #33473B;
  font-weight: 700;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #406654;
  color: #fff;
  outline: none;
}
.cookie-banner button.cookie-settings:hover, .cookie-banner button.cookie-settings:focus {
  background: #FFD8A0;
  color: #33473B;
}

/* === COOKIE PREFERENCES MODAL === */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(51,71,59,0.75);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in .35s;
}
@keyframes fade-in {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  padding: 34px 30px 28px 30px;
  box-shadow: 0 3px 24px rgba(51,71,59,0.18);
  max-width: 400px;
  width: 94vw;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 10001;
}
.cookie-modal h2 {
  font-size: 1.45rem;
  margin-bottom: 6px;
}
.cookie-modal .cookie-cat {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.cookie-modal label {
  font-size: 1rem;
  font-weight: 600;
  margin-right: 10px;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #EFC88B;
  width: 18px;
  height: 18px;
  vertical-align: middle;
}
.cookie-modal .cookie-btn-group {
  justify-content: flex-end;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 17px; right: 20px;
  background: none;
  border: none;
  color: #33473B;
  font-size: 1.6rem;
  cursor: pointer;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1200px) {
  .container { max-width: 98vw; }
  .feature-grid, .card-container {
    gap: 16px;
  }
  .content-wrapper { gap: 16px; }
}
@media (max-width: 1024px) {
  .feature-grid > div {
    padding: 20px 12px 16px 12px;
    min-width: 145px;
  }
}
@media (max-width: 900px) {
  .container { padding-left: 12px; padding-right: 12px; }
  .hero { padding: 24px 0 0 0; }
  .feature-grid {
    gap: 12px;
  }
  .testimonial-card {
    padding: 14px 10px;
  }
}
@media (max-width: 768px) {
  .content-wrapper,
  .footer .content-wrapper { gap: 12px; }
  .hero {
    padding: 20px 0 4px 0;
    margin-bottom: 18px;
    border-radius: 0 0 14px 14px;
  }
  .hero h1 { font-size: 1.25rem; }
  .feature-grid {
    flex-direction: column;
    gap: 12px;
  }
  .feature-grid > div {
    min-width: 96px;
    align-items: flex-start;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .section { padding: 20px 8px; margin-bottom: 32px; }
  footer .content-wrapper {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .newsletter {
    border-radius: 10px;
    padding: 14px 8px;
  }
  .filter-bar {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .text-image-section {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}
@media (max-width: 480px) {
  .container { padding-left: 5px; padding-right: 5px; }
  .section { border-radius: 10px; }
  .hero { border-radius: 0 0 5vw 5vw; }
}

/* === ACCESSIBILITY === */
:focus-visible {
  outline: 2px solid #33473B;
  outline-offset: 2px;
  z-index: 10;
}

/* === MICRO INTERACTIONS === */
.btn-primary, .cookie-banner button, .main-nav a, .mobile-nav a {
  transition: background .17s, color .18s, box-shadow .15s, border .16s, transform .17s;
}

/* === PRINT (optional for content) === */
@media print {
  header, footer, .btn-primary, .cookie-banner, .mobile-menu { display: none !important; }
  body { background: #fff; color: #000; }
}
