/* RESET & NORMALIZATION */
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, 
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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background: #FFFAF3;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img, svg {
  max-width: 100%;
  display: block;
}
button, input, textarea, select {
  font: inherit;
  border-radius: 0;
}

/* BRAND COLORS */
:root {
  --col-primary: #82462A;
  --col-secondary: #FFFAF3;
  --col-accent: #C7A976;
  --col-brown-dark: #6a3612;
  --col-brown-light: #eed2bb;
  --col-accent2: #9A782E;
  --col-bg: #FFFAF3;
  --col-bg-light: #fff;
  --col-grey: #F0ECE7;
  --col-text: #322319;
  --col-shadow: rgba(130, 70, 42, 0.13);
  --col-shadow-strong: rgba(130, 70, 42, 0.23);
}

/* FONTS */
@import url('https://fonts.googleapis.com/css?family=Merriweather:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: var(--col-text);
  background: var(--col-bg);
  font-size: 16px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  color: var(--col-primary);
  font-weight: 900;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
  line-height: 1.17;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.9rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.3rem;
}
p, ul, ol, li, a, span {
  font-size: 1rem;
}
strong {
  color: var(--col-primary);
  font-weight: 700;
}
em {
  color: var(--col-accent2);
}

/* LAYOUT CONTAINERS */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.section,
main section {
  background: none;
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 20px;
  box-shadow: none;
  transition: background 0.25s;
}

/* CARDS & FLEX CONTAINERS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--col-bg-light);
  margin-bottom: 20px;
  border-radius: 18px;
  box-shadow: 0 6px 22px var(--col-shadow);
  padding: 26px 20px;
  position: relative;
  flex: 1 1 250px;
  min-width: 260px;
  transition: box-shadow 0.23s, transform 0.23s;
}
.card:hover {
  box-shadow: 0 10px 32px var(--col-shadow-strong);
  transform: translateY(-4px) scale(1.02);
}
.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;
    align-items: flex-start;
    gap: 18px;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 5px 12px var(--col-shadow);
  border-left: 6px solid var(--col-accent);
  max-width: 500px;
  min-width: 220px;
  transition: box-shadow 0.2s, border-left 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 12px 32px var(--col-shadow-strong);
  border-left: 10px solid var(--col-primary);
}
.testimonial-card strong {
  font-weight: bold;
  color: var(--col-accent2);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Section Content Padding */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* HEADER/NAVIGATION */
header {
  background: #fff;
  border-bottom: 2px solid var(--col-brown-light);
  box-shadow: 0 2px 10px var(--col-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  min-height: 74px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
header nav a {
  font-weight: 600;
  color: var(--col-primary);
  padding: 7px 16px;
  border-radius: 12px;
  transition: background 0.2s, color 0.2s;
  font-family: 'Open Sans', sans-serif;
}
header nav a:hover,
header nav a.active {
  background: var(--col-brown-light);
  color: var(--col-brown-dark);
}
header img {
  height: 48px;
  width: auto;
  border-radius: 14px;
}
.cta-btn {
  background: var(--col-accent);
  color: var(--col-primary);
  border: none;
  border-radius: 22px;
  padding: 12px 32px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 22px var(--col-shadow);
  transition: background 0.15s, color 0.17s, box-shadow 0.17s;
  outline: none;
  margin-left: 14px;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--col-primary);
  color: #fff;
  box-shadow: 0 7px 30px var(--col-shadow-strong);
}

.mobile-menu-toggle {
  display: none;
  background: var(--col-accent);
  color: var(--col-primary);
  font-size: 2.2rem;
  padding: 8px 18px 8px 12px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  margin-left: 14px;
  transition: background 0.15s;
  box-shadow: 0 3px 10px var(--col-shadow);
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--col-primary);
  color: #fff;
}

/* MOBILE NAVIGATION */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2000;
  background:rgba(255,250,243,0.98);
  box-shadow: -4px 0 48px var(--col-shadow-strong);
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 20px 32px 32px 32px;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.77,0,.18,1);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  right: 24px;
  top: 22px;
  background: var(--col-accent);
  color: var(--col-primary);
  font-size: 2.3rem;
  border: none;
  border-radius: 16px;
  padding: 3px 18px 3px 12px;
  cursor: pointer;
  transition: background 0.12s;
  box-shadow: 0 3px 10px var(--col-shadow);
  z-index: 2010;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--col-primary);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 80px;
  width: 100%;
}
.mobile-nav a {
  color: var(--col-primary);
  font-weight: 700;
  font-size: 1.25rem;
  background: none;
  border-radius: 12px;
  padding: 11px 12px;
  transition: background 0.18s, color 0.15s;
}
.mobile-nav a:hover {
  background: var(--col-brown-light);
  color: var(--col-primary);
}

@media (max-width: 1024px) {
  header nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* HERO SECTION */
main section:first-child {
  background: var(--col-bg-light);
  box-shadow: 0 4px 14px var(--col-shadow);
  border-radius: 24px;
  margin-top: 24px;
  text-align: left;
}
main section:first-child h1 {
  color: var(--col-primary);
  letter-spacing: 0.01em;
}
main section:first-child p {
  font-size: 1.18rem;
  color: var(--col-text);
  margin-bottom: 8px;
}

/* SHARED SECTION, CARD, FLEX RESPONSIVE */
@media (max-width: 768px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .section, main section {
    padding: 24px 8px;
    margin-bottom: 40px;
    border-radius: 11px;
  }
  .card {
    min-width: 90vw;
    padding: 16px 8px;
  }
  .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    max-width: 100%;
    padding: 14px 8px;
    border-left-width: 4px;
  }
}

/* BUTTON, LINKS, ANIMATION */
a.btn, button, .cta-btn {
  cursor: pointer;
  outline: 0;
  text-align: center;
  font-family: 'Open Sans', Arial, sans-serif;
  transition: background 0.18s, color 0.14s, box-shadow 0.2s;
}
a:focus,
button:focus {
  outline: 2px solid var(--col-accent2);
  outline-offset: 1.5px;
}

/* LISTS AND TYPOGRAPHY */
ul {
  padding-left: 32px;
  margin-bottom: 10px;
}
ul li {
  padding-bottom: 10px;
  position: relative;
  padding-left: 20px;
  color: var(--col-text);
}
ul li::before {
  content: "\2022";
  color: var(--col-accent2);
  position: absolute;
  left: 0;
  font-size: 1.4em;
  line-height: 1;
  top: 0.4em;
}
@media (max-width: 768px) {
  ul {
    padding-left: 14px;
  }
  ul li {
    padding-left: 12px;
  }
}
ol {
  padding-left: 33px;
  margin-bottom: 12px;
}
ol li {
  padding-bottom: 8px;
}

/* FOOTER */
footer {
  background: var(--col-brown-light);
  padding: 28px 0 20px;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -2px 24px var(--col-shadow);
  margin-top: 60px;
}
footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
footer a {
  color: var(--col-primary);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 7px;
  padding: 6px 11px;
  transition: background 0.12s;
}
footer a:hover {
  background: var(--col-primary);
  color: #fff;
}
footer p {
  color: var(--col-brown-dark);
  font-size: 0.98rem;
}
@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    text-align: left;
  }
}

/* FORMS - mainly placeholder infos and links */
input, textarea, select {
  border: 1.5px solid var(--col-brown-light);
  border-radius: 14px;
  padding: 12px 8px;
  margin-bottom: 14px;
  width: 100%;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.17s, box-shadow 0.15s;
  box-shadow: 0 2px 8px var(--col-shadow);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--col-primary);
  box-shadow: 0 2px 18px var(--col-shadow-strong);
}
label {
  font-weight: 600;
  color: var(--col-primary);
  margin-bottom: 4px;
  display: block;
}

/* ANIMATION/MICRO-INTERACTIONS */
.cta-btn, .mobile-menu-toggle, .mobile-menu-close, button {
  transition: background 0.15s, color 0.15s, box-shadow 0.16s, transform 0.14s;
}
.cta-btn:active, .mobile-menu-toggle:active, .mobile-menu-close:active, button:active {
  transform: scale(0.97);
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  background: var(--col-bg-light);
  color: var(--col-primary);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 24px 14px;
  box-shadow: 0 -2px 18px var(--col-shadow-strong);
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  font-size: 1rem;
  transition: transform 0.32s cubic-bezier(.77,0,.18,1), opacity 0.24s;
}
.cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-left: 26px;
}
.cookie-banner button {
  background: var(--col-accent);
  border: none;
  font-weight: 700;
  color: var(--col-primary);
  border-radius: 15px;
  padding: 10px 20px;
  transition: background .13s, color .13s, box-shadow .13s;
  cursor: pointer;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--col-primary);
  color: #fff;
}
.cookie-banner .cookie-settings-btn {
  background: #fff;
  color: var(--col-accent2);
  border: 1.5px solid var(--col-accent2);
}
.cookie-banner .cookie-settings-btn:hover {
  background: var(--col-accent2);
  color: #fff;
}

@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    padding: 20px 5px;
  }
  .cookie-banner .cookie-actions {
    margin-left: 0;
    justify-content: flex-start;
  }
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(35,22,10,.42);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.22s;
}
.cookie-modal.hide { opacity: 0; pointer-events: none; }
.cookie-modal .modal-content {
  background: #fff;
  border-radius: 24px;
  max-width: 436px;
  padding: 36px 28px 22px 28px;
  box-shadow: 0 7px 36px var(--col-shadow-strong);
  font-size: 1rem;
  color: var(--col-primary);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal .modal-content h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 1rem;
}
.cookie-modal .cookie-category-toggle {
  appearance: none;
  outline: none;
  width: 44px;
  height: 24px;
  background: var(--col-grey);
  border-radius: 14px;
  position: relative;
  transition: background .13s;
  margin-right: 8px;
}
.cookie-modal .cookie-category-toggle:checked {
  background: var(--col-accent2);
}
.cookie-modal .cookie-category-toggle::before {
  content: '';
  position: absolute;
  left: 3.5px; top: 2.5px;
  width: 19px; height: 19px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 0 3px rgba(0,0,0,.12);
  transition: left .13s, background .12s;
}
.cookie-modal .cookie-category-toggle:checked::before {
  left: 20px;
  background: var(--col-accent);
}
.cookie-modal .cookie-essential-category {
  opacity: .65;
  pointer-events: none;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 11px;
  flex-wrap: wrap;
}
.cookie-modal .modal-actions button {
  border-radius: 12px;
  background: var(--col-accent);
  color: var(--col-primary);
  padding: 10px 20px;
  font-weight: bold;
  border: none;
}
.cookie-modal .modal-actions button:hover,
.cookie-modal .modal-actions button:focus {
  background: var(--col-primary);
  color: #fff;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #fff;
  color: var(--col-text);
  border: none;
  font-size: 1.6rem;
  border-radius: 10px;
  padding: 3px 12px;
  box-shadow: 0 2px 10px var(--col-shadow);
  cursor: pointer;
}
.cookie-modal .modal-close:hover,
.cookie-modal .modal-close:focus {
  background: var(--col-primary);
  color: #fff;
}

/* ACCESSIBILITY EXTRAS */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* ADDITIONAL TWEAKS FOR CONSISTENCY */
main section h2 + .content-wrapper, main section h1 + .content-wrapper {
  margin-top: -10px;
}
section .content-wrapper > a,
section .content-wrapper > p > a {
  color: var(--col-text);
  font-weight: 600;
  text-decoration: underline;
  border-radius: 7px;
  transition: background 0.14s, color 0.14s;
  padding: 6px 7px;
}
section .content-wrapper > a:hover,
section .content-wrapper > p > a:hover {
  background: var(--col-accent);
  color: var(--col-text);
}

/* ENSURE MIN SPACING BETWEEN BLOCKS */
section, main section, .content-wrapper > * {
  margin-bottom: 16px;
}

/* RESPONSIVE FONT SIZES */
@media (max-width: 540px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.14rem; }
  .cta-btn, .mobile-menu-toggle, .mobile-menu-close { font-size: 1.12rem; }
}

/* PREVENT OVERLAPPING AND PROPER STACKING */
.card,
.section,
main section,
.content-wrapper > * {
  z-index: 1;
}
/* Z-index rules for overlays/menus */
header { z-index: 100; }
.mobile-menu { z-index: 2000; }
.cookie-banner { z-index: 3000; }
.cookie-modal { z-index: 4000; }

/* ENSURE NO ABSOLUTE POSITIONING FOR CARDS, ONLY FOR CLOSE BUTTONS ETC. */
.card, .content-wrapper, .testimonial-card, .section, main section {
  position: relative;
}

/* MICRO-INTERACTIONS & SUBTLE ANIMATIONS */
.card, .testimonial-card {
  transition: box-shadow 0.23s, transform 0.24s, border-color 0.22s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 10px 38px var(--col-shadow-strong);
  transform: translateY(-3px) scale(1.015);
}

/* MAKE SURE BUTTONS AND LINKS ARE ALWAYS VISIBLE */
button, .cta-btn, .mobile-menu-toggle, .mobile-menu-close, .cookie-banner button, .cookie-modal button {
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
}

::-webkit-input-placeholder { color: var(--col-brown-dark); opacity: 0.85; }
::-moz-placeholder { color: var(--col-brown-dark); opacity:0.85; }
:-ms-input-placeholder { color: var(--col-brown-dark); opacity:0.85; }
::placeholder { color: var(--col-brown-dark); opacity:0.85; }

/* DESIGN SIGNATURE: WARM & FRIENDLY */
.section, .card, .testimonial-card, .cookie-banner, .cookie-modal .modal-content {
  border-radius: 22px;
  box-shadow: 0 4px 22px var(--col-shadow);
}
button, .cta-btn, .mobile-menu-toggle, .mobile-menu-close, .cookie-banner button, .cookie-modal .modal-actions button {
  border-radius: 16px;
}

/* ENSURE GAP PROPERTY FOR FLEXBOX EVERYWHERE NEEDED */
.card-container, .content-grid, .text-image-section, .testimonial-card, .feature-item, .mobile-nav, .footer nav, .cookie-banner, .cookie-banner .cookie-actions, .cookie-modal .modal-content, .cookie-modal .modal-actions {
  gap: 20px;
}
@media (max-width: 600px) {
  .card-container, .content-grid, .text-image-section, .mobile-nav, .footer nav, .cookie-banner, .cookie-banner .cookie-actions, .cookie-modal .modal-content, .cookie-modal .modal-actions {
    gap: 12px;
  }
}

/* END OF CSS */
