/* ===========================================================
   CSS RESET & NORMALIZE (only standard rules for wide support)
   =========================================================== */
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,
u,
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;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F1E9D2;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
button {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
:focus {
  outline: 2px solid #728C69;
  outline-offset: 2px;
}

/* ===========================================================
   ROOT VARIABLES
   =========================================================== */
:root {
  --color-primary: #2B3A42;
  --color-secondary: #728C69;
  --color-accent: #F1E9D2;
  --color-bg: #F7F4EF;
  --color-bg-alt: #E8E4D8;
  --color-bg-dark: #425044;
  --color-green-accent: #6F8D6A;
  --color-earth-light: #E0D2BA;
  --color-earth-dark: #624C36;
  --color-text: #2B3A42;
  --color-text-on-dark: #F1E9D2;
  --color-card-shadow: rgba(59,72,64,.1);

  --font-display: 'Merriweather', serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* Font faces
   Should be loaded in HTML <head> ideally, add fallback here */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700&family=Roboto:wght@400;500;700&display=swap');

/* ===========================================================
   BASE TYPOGRAPHY & GENERAL
   =========================================================== */
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-primary);
  background: var(--color-accent);
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.2;
}
h1 {
  font-size: 2.67rem; /* 48px */
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;    /* 32px */
  margin-bottom: 18px;
}
h3 {
  font-size: 1.5rem;  /* 24px */
  margin-bottom: 12px;
}
p, ul li, ol li, dl dd {
  font-size: 1rem;     /* 16px */
  line-height: 1.7;
  margin-bottom: 16px;
}
strong {
  font-weight: 700;
}
a {
  color: var(--color-secondary);
  transition: color .2s;
}
a:hover, a:focus {
  color: var(--color-green-accent);
  text-decoration: underline;
}


/* ===========================================================
   HEADER & NAVIGATION
   =========================================================== */
header {
  background: var(--color-bg);
  box-shadow: 0 2px 8px 0 var(--color-card-shadow);
  padding: 0 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
header > a img {
  height: 56px;
  margin: 12px 0 12px 16px;
  border-radius: 32px 0 32px 0;
  background: var(--color-accent);
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-right: 16px;
  margin-left: auto;
}
.main-nav a {
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--color-primary);
  padding: 5px 12px;
  border-radius: 20px;
  transition: background .18s, color .18s;
}
.main-nav a:hover:not(.btn-primary),
.main-nav a:focus:not(.btn-primary) {
  background: var(--color-earth-light);
  color: var(--color-secondary);
}
.main-nav .btn-primary {
  font-family: var(--font-display);
  background: var(--color-secondary);
  color: var(--color-accent);
  padding: 8px 26px;
  border-radius: 30px;
  box-shadow: 0 4px 16px -8px var(--color-green-accent);
  font-size: 18px;
  letter-spacing: 0.01em;
  transition: background .2s, color .2s, transform .18s;
  border: none;
}
.main-nav .btn-primary:hover, .main-nav .btn-primary:focus {
  background: var(--color-green-accent);
  color: var(--color-text-on-dark);
  transform: translateY(-2px) scale(1.03);
}

header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 80px;
  position: relative;
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 10px;
  }
}

/* MOBILE HEADER/NAV MENU */
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: var(--color-accent);
  border-radius: 50%;
  border: none;
  width: 46px;
  height: 46px;
  margin-left: auto;
  font-size: 2.1rem;
  align-items: center;
  justify-content: center;
  transition: background .18s;
  z-index: 9992;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-green-accent);
  color: var(--color-accent);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 94vw;
  max-width: 410px;
  height: 100vh;
  background: var(--color-bg);
  box-shadow: -8px 0 32px 0 var(--color-card-shadow);
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.76,0,.24,1);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 20px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: var(--color-secondary);
  font-size: 2rem;
  padding: 10px 16px 16px 24px;
  align-self: flex-end;
  border-radius: 50%;
  transition: background .18s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: var(--color-green-accent);
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  padding-left: 36px;
  padding-right: 18px;
  width: 100%;
}
.mobile-nav a {
  font-size: 19px;
  line-height: 2.2;
  color: var(--color-primary);
  padding: 4px 0 4px 10px;
  border-radius: 15px;
  font-family: var(--font-body);
  width: 100%;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--color-earth-light);
  color: var(--color-secondary);
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  header > a img {
    margin-left: 10px;
    height: 48px;
  }
}
@media (max-width: 480px) {
  .mobile-menu {
    width: 100vw;
    max-width: 100vw;
    min-width: 0;
  }
}

/* Overlay when mobile menu open (create modal background effect) */
.mobile-menu.open::before {
  content: '';
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1980;
  width: 100vw;
  height: 100vh;
  background: rgba(34, 46, 40, 0.28);
  pointer-events: auto;
  transition: opacity 0.3s;
}

/* Main navigation links also need spacing to logo */
header {
  gap: 0;
}

/* Container for alignment */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ===========================================================
   MAIN LAYOUT STRUCTURE
   =========================================================== */
main {
  flex: 1 0 auto;
  min-height: 60vh;
  background: var(--color-accent);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: 44px 0 44px 0;
  box-shadow: 0 4px 20px -8px var(--color-card-shadow);
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--color-bg);
  border-radius: 32px 0 32px 0;
  box-shadow: 0 4px 20px -8px var(--color-card-shadow);
  padding: 36px 28px;
  margin-bottom: 20px;
}
.text-section {
  background: var(--color-bg-alt);
  box-shadow: 0 8px 36px -12px var(--color-card-shadow);
}

/* Card/Content layouts */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 20px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-accent);
  border-radius: 32px 0 32px 0;
  box-shadow: 0 2px 12px -8px var(--color-card-shadow);
  padding: 32px 24px 24px 24px;
  flex: 1 1 300px;
  min-width: 250px;
  max-width: 430px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .18s, transform .18s;
}
.card:hover, .card:focus {
  box-shadow: 0 8px 24px -8px var(--color-green-accent);
  transform: translateY(-3px) scale(1.01);
}

.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: 24px;
    align-items: stretch;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-bg-alt);
  border-radius: 16px 0 16px 0;
  box-shadow: 0 2px 8px -2px var(--color-card-shadow);
  padding: 22px 18px;
  min-width: 220px;
  margin-bottom: 20px;
}
.feature-item img {
  height: 32px;
  width: 32px;
  margin-bottom: 8px;
}

/* Testimonials */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: var(--color-bg-alt);
  border-radius: 28px 0 28px 0;
  box-shadow: 0 2px 16px -4px var(--color-card-shadow);
  padding: 20px;
  margin-bottom: 20px;
  border-left: 7px solid var(--color-secondary);
  max-width: 560px;
  transition: box-shadow .16s, border-color .2s;
}
.testimonial-card p {
  color: var(--color-primary);
  font-size: 1.1rem;
}
.testimonial-card span {
  color: var(--color-green-accent);
  font-size: 0.96rem;
  font-family: var(--font-display);
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 8px 24px -4px var(--color-green-accent);
  border-left-color: var(--color-green-accent);
}

/* FAQ/Definition Lists */
dl {
  margin-bottom: 24px;
}
dt {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 4px;
  margin-top: 18px;
  color: var(--color-secondary);
}
dd {
  padding-left: 16px;
  color: var(--color-primary);
  margin-bottom: 8px;
}

/* ==========================================================
   BUTTONS & INTERACTIVE ELEMENTS
   ==========================================================
*/
.btn-primary,
.btn {
  display: inline-block;
  font-family: var(--font-display);
  background: var(--color-secondary);
  color: var(--color-accent);
  padding: 14px 36px;
  border-radius: 32px;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: .02em;
  border: none;
  box-shadow: 0 2px 12px -6px var(--color-card-shadow);
  transition: background .16s, color .16s, transform .18s;
  margin: 8px 0;
  cursor: pointer;
}
.btn-primary:hover, .btn-primary:focus,
.btn:hover, .btn:focus {
  background: var(--color-green-accent);
  color: var(--color-text-on-dark);
  transform: translateY(-2px) scale(1.02);
}

/* Links that look like buttons */
a.btn-primary {
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

/* Cookie Consent Banner & Modal */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2500;
  background: var(--color-bg);
  border-top: 3px solid var(--color-green-accent);
  padding: 28px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 -6px 32px 0 var(--color-card-shadow);
  font-family: var(--font-body);
  font-size: 1rem;
  align-items: flex-start;
  transition: transform .32s cubic-bezier(.67,.17,.2,1);
}
.cookie-banner.hide {
  transform: translateY(110%);
}
.cookie-banner__text {
  color: var(--color-primary);
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}
.cookie-btn {
  padding: 10px 22px;
  border-radius: 24px;
  font-family: var(--font-display);
  font-size: 1rem;
  background: var(--color-secondary);
  color: var(--color-accent);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px -6px var(--color-card-shadow);
  transition: background .16s, color .16s;
}
.cookie-btn:focus, .cookie-btn:hover {
  background: var(--color-green-accent);
  color: var(--color-text-on-dark);
}
.cookie-btn--secondary {
  background: var(--color-bg-alt);
  color: var(--color-primary);
  border: 1px solid var(--color-secondary);
}
.cookie-btn--secondary:hover, .cookie-btn--secondary:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}
/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 2600;
  background: rgba(34, 46, 40, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .32s;
  pointer-events: none;
  opacity: 0;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal__dialog {
  background: var(--color-accent);
  border-radius: 34px 0 34px 0;
  padding: 32px 26px;
  box-shadow: 0 8px 60px 0 var(--color-card-shadow);
  min-width: 320px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.cookie-modal__header h2 {
  font-size: 1.3rem;
  margin: 0;
}
.cookie-modal__close {
  background: none;
  font-size: 1.8rem;
  color: var(--color-secondary);
  border-radius: 50%;
  transition: background .16s;
  padding: 4px 10px;
  align-self: flex-end;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  background: var(--color-bg-alt);
  color: var(--color-green-accent);
}
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
}
.cookie-category__label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-primary);
  flex: 1 1 0;
}
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.cookie-switch input {
  display: none;
}
.cookie-switch span {
  position: absolute;
  cursor: pointer;
  background: var(--color-bg-alt);
  border-radius: 30px;
  top: 0; left: 0;
  right: 0; bottom: 0;
  transition: background .14s;
}
.cookie-switch input:checked + span {
  background: var(--color-green-accent);
}
.cookie-switch span:before {
  content: '';
  position: absolute;
  left: 4px; top: 4px;
  width: 16px;
  height: 16px;
  background: var(--color-accent);
  border-radius: 50%;
  transition: left .16s;
}
.cookie-switch input:checked + span:before {
  left: 24px;
}
.cookie-category__desc {
  font-size: 0.9rem;
  color: var(--color-earth-dark);
  margin-left: 8px;
}
.cookie-category--essential .cookie-switch span {
  background: var(--color-earth-light);
}
.cookie-category--essential .cookie-switch input + span:before,
.cookie-category--essential .cookie-switch input:checked + span:before {
  background: var(--color-secondary);
}
.cookie-category--essential .cookie-switch span,
.cookie-category--essential input {
  pointer-events: none;
}
/* Style modal action buttons (Save/Close) */
.cookie-modal__actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 12px;
}

/* ==========================================================
   FOOTER
   ==========================================================
*/
footer {
  background: var(--color-bg);
  color: var(--color-earth-dark);
  padding: 36px 0 22px;
  border-top: 3px solid var(--color-secondary);
  margin-top: 60px;
  font-size: 0.96rem;
  box-shadow: 0 -2px 10px 0 var(--color-card-shadow);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
}
.footer-nav a {
  color: var(--color-secondary);
  border-radius: 8px;
  padding: 2px 8px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  transition: background .14s, color .14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
footer address {
  text-align: center;
  font-style: normal;
  color: var(--color-earth-dark);
  margin-bottom: 8px;
}
footer p {
  text-align: center;
  color: var(--color-earth-dark);
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* ==========================================================
   LISTS, FORMS, UL/OL
   ==========================================================
*/
ul {
  list-style: disc inside;
  margin-left: 0;
  margin-bottom: 24px;
}
ul > li {
  margin-bottom: 14px;
  padding-left: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.content-wrapper ul > li img {
  height: 24px;
  width: 24px;
  margin-right: 6px;
  filter: brightness(0.95) sepia(0.12) hue-rotate(-30deg) saturate(0.4);
}

ol {
  list-style: decimal inside;
  margin-bottom: 24px;
}

/* ===========================================================
   RESPONSIVE DESIGN
   =========================================================== */
@media (max-width: 1040px) {
  .container {
    max-width: 98vw;
  }
  .content-wrapper,
  .text-section {
    padding: 32px 13px;
  }
}

@media (max-width: 900px) {
  .content-wrapper {
    padding: 28px 10px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .card-container {
    flex-direction: column;
    align-items: stretch;
  }
  .content-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .feature-item {
    min-width: 0;
  }
  .section {
    margin-bottom: 40px;
    padding: 28px 6px;
    border-radius: 24px 0 24px 0;
  }
  h1 {
    font-size: 2rem;
    margin-bottom: 18px;
  }
  h2 {
    font-size: 1.4rem;
    margin-bottom: 13px;
  }
  h3 {
    font-size: 1.08rem;
    margin-bottom: 9px;
  }
  .testimonial-card {
    max-width: 100%;
    border-left-width: 5px;
    padding: 16px;
  }
}
@media (max-width: 540px) {
  .container {
    padding: 0 3vw;
  }
  .cookie-modal__dialog {
    min-width: 0;
    padding: 18px 6px;
  }
  footer, .footer-nav {
    padding: 12px 2px;
    gap: 6px;
  }
}

/* ========== MICRO-ANIMATIONS AND EFFECTS ========== */
.btn-primary, .btn, .cookie-btn {
  transition: background 0.21s cubic-bezier(.7,0,.24,1), color 0.18s cubic-bezier(.76,0,.25,1), transform 0.18s;
}
.section, .content-wrapper, .testimonial-card, .card {
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:active, .testimonial-card:active {
  transform: scale(.99);
}

/* ========== ORGANIC SHAPE DECORATIONS (subtle for nature effect) ========== */
.content-wrapper, .section, .testimonial-card,
.card, .feature-item {
  border-radius: 32px 0 28px 0 / 40px 12px 28px 6px;
}

/* ========== GENERAL UTILITIES ========== */
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ========== Z-INDEX LAYERING FOR NAV/OVERLAYS ========== */
header, .mobile-menu, .cookie-banner, .cookie-modal {
  z-index: 1999;
}
.mobile-menu {
  z-index: 2000;
}
.cookie-banner {
  z-index: 2500;
}
.cookie-modal {
  z-index: 2600;
}

/* ========== PREVENT OVERLAPPING & ADEQUATE SPACING ========== */
.section, .content-wrapper, .card, .testimonial-card, .feature-item, .card-container, .content-grid, .text-image-section {
  margin-bottom: 20px;
}

/* Hide cookie banner/modal by default (shown via JS) */
.cookie-banner.hide, .cookie-modal:not(.open) {
  display: none;
}

/* END CSS */
