/* CSS RESET & NORMALIZE */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FAFAF8;
  color: #27251F;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 16px;
  min-height: 100vh;
}
*, *:before, *:after {
  box-sizing: inherit;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #A01A1F;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #1A3933;
  text-decoration: underline;
}
ul, ol {
  list-style-position: inside;
  margin-left: 0;
}

/* BRAND FONTS */
:root {
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Georgia', 'Times New Roman', Times, serif;
  --brand-primary: #A01A1F;
  --brand-secondary: #1A3933;
  --brand-accent: #E8F5E9;
  --brand-grey: #F4F1EC;
  --text-main: #27251F;
  --text-muted: #564C44;
  --border-radius: 14px;
  --shadow: 0 2px 16px rgba(107, 74, 74,.09);
  --transition-main: .3s cubic-bezier(.38,.12,.62,.94);
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: #FAFAF8;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}


/* TYPOGRAPHY -------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--brand-secondary);
  font-weight: 700;
  letter-spacing: .01em;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 24px;
  line-height: 1.2;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 18px;
  line-height: 1.25;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.3;
}
h4, h5, h6 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}
p, ul, ol, blockquote, pre {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
ul, ol {
  padding-left: 1.1em;

}
blockquote {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--brand-primary);
  border-left: 4px solid var(--brand-primary);
  background: var(--brand-accent);
  padding: 16px 24px;
  margin: 10px 0 12px 0;
  border-radius: var(--border-radius);
}
strong {
  font-weight: 600;
  color: var(--brand-primary);
}

/* BUTTONS & CTA -------------------------------------*/
.cta-btn,
button,
input[type="submit"],
.mobile-menu-toggle {
  font-family: var(--font-display);
  font-size: 1.08rem;
  padding: 11px 32px;
  border: none;
  border-radius: var(--border-radius);
  background: var(--brand-primary);
  color: #fff;
  cursor: pointer;
  letter-spacing: .03em;
  box-shadow: 0 3px 16px rgba(160, 26, 31, 0.08);
  transition: background var(--transition-main), box-shadow .18s;
  display: inline-block;
  margin: 8px 0 0 0;
  text-align: center;
  text-decoration: none;
}
.cta-btn:hover, .cta-btn:focus, button:hover, button:focus {
  background: var(--brand-secondary);
  color: #fff;
  box-shadow: 0 8px 32px rgba(26, 57, 51,.13);
  outline: none;
}


/* HEADER & NAVIGATION --------------------------*/
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 20px rgba(50,40,30,.07);
  border-bottom: 1.5px solid #ece8e2;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
header nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 10px 0 10px 0;
}
header nav > a img {
  height: 36px;
  width: auto;
  margin: 0 10px 0 0;
}
header nav ul {
  display: flex;
  gap: 26px;
  align-items: center;
    margin-bottom: 0;
}
header nav ul li {
  list-style: none;
}
header nav ul li a {
  font-family: var(--font-display);
  color: var(--brand-secondary);
  font-size: 1.07rem;
  padding: 7px 0;
  transition: color .2s;
  border-bottom: 2px solid transparent;
}
header nav ul li a:hover, header nav ul li a:focus {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}
header .cta-btn {
  margin-left: 18px;
  font-weight: 700;
  font-size: 1rem;
}

/* MOBILE NAVIGATION -----------------------------*/
.mobile-menu-toggle {
  display: none;
  background: var(--brand-primary);
  color: #fff;
  font-size: 2rem;
  border: none;
  padding: 6px 18px 8px 18px;
  margin-left: auto;
  border-radius: var(--border-radius);
  z-index: 102;
  transition: background var(--transition-main);
}
.mobile-menu-toggle:hover {
  background: var(--brand-secondary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100vw;
  background: #fff;
  box-shadow: 0 0 60px rgba(60,45,29,0.18);
  z-index: 200;
  transform: translateX(100vw);
  transition: transform .35s cubic-bezier(.47,.08,.48,1);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 13px 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.1rem;
  color: var(--brand-primary);
  background: none;
  border: none;
  padding: 8px 21px;
  margin: 0 0 12px 0;
  cursor: pointer;
  align-self: flex-end;
  transition: color .2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--brand-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 23px;
  align-items: flex-start;
  width: 100%;
  padding: 24px 36px 12px 36px;
}
.mobile-nav a {
  font-size: 1.22rem;
  padding: 10px 0;
  color: var(--brand-secondary);
  font-family: var(--font-display);
  width: 100%;
  border-radius: var(--border-radius);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-accent);
  color: var(--brand-primary);
  text-decoration: none;
  outline: none;
}

@media (max-width: 1100px) {
  .container {
    max-width: 95vw;
  }
}

@media (max-width: 880px) {
  header nav ul {
    gap: 13px;
  }
}

@media (max-width: 768px) {
  header nav ul {
    display: none;
  }
  header .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}


/* SECTION & LAYOUT PATTERNS ----------------------*/
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 6px 32px rgba(144, 134, 104, 0.07);
}

main > section {
  margin-bottom: 60px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  flex: 1 1 320px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 20px;
  transition: box-shadow var(--transition-main);
}
.card:hover {
  box-shadow: 0 4px 24px rgba(100,80,60,.14);
}
.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;
}
.text-section {
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .section, main > section {
    padding: 18px 3vw;
    margin-bottom: 35px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .card-container, .content-grid {
    gap: 13px;
  }
  .content-wrapper {
    gap: 18px;
  }
}

/* TESTIMONIALS & CARDS ---------------------------*/
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--brand-accent);
  border-radius: var(--border-radius);
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(160,26,31,0.06);
  border: 1px solid #e4ebe4;
  flex-wrap: wrap;
  min-width: 0;
}
.testimonial-card blockquote {
  font-size: 1.15rem;
  line-height: 1.36;
  color: var(--brand-secondary);
  margin: 0;
  background: none;
  padding: 0 0 0 0;
  border-left: none;
}
.testimonial-card footer {
  font-family: var(--font-display);
  color: var(--brand-primary);
  font-size: 1.03rem;
  margin-left: 24px;
  min-width: 80px;
}
@media (max-width: 600px) {
  .testimonial-card {
    flex-direction: column;
    gap: 12px;
    padding: 15px;
  }
  .testimonial-card footer {
    margin-left: 0;
  }
}

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

/* FOOTER ---------------------------------*/
footer {
  background: #fff;
  padding: 32px 0 12px 0;
  border-top: 1.5px solid #eee8de;
  box-shadow: 0 0 24px rgba(200,188,165,.07);
  width: 100%;
  margin-top: 24px;
}
footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 19px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
footer nav ul li {
  list-style: none;
}
footer nav ul li a {
  font-size: 1.01rem;
  color: var(--brand-secondary);
  font-family: var(--font-display);
  padding: 6px 0;
  transition: color .2s;
}
footer nav ul li a:hover, footer nav ul li a:focus {
  color: var(--brand-primary);
}
.footer-info {
  text-align: center;
  color: var(--text-muted);
  margin-top: 6px;
  font-size: .98rem;
}

/* COOKIE CONSENT BANNER & MODAL -----------------*/
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  color: var(--brand-secondary);
  box-shadow: 0 -3px 16px rgba(32,24,13,0.13);
  padding: 25px 22px 17px 22px;
  z-index: 10010;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  font-family: var(--font-body);
  border-radius: 18px 18px 0 0;
  animation: cookieBannerSlideIn .8s cubic-bezier(.27,.14,.43,.93);
}
@keyframes cookieBannerSlideIn {
  from { transform: translateY(140%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner p {
  margin: 0 18px 0 0;
  font-size: 1rem;
  color: var(--brand-secondary);
}
.cookie-btn {
  font-family: var(--font-display);
  padding: 7px 20px;
  margin: 0 6px;
  border-radius: 20px;
  border: 1.5px solid var(--brand-primary);
  background: var(--brand-primary);
  color: #fff;
  font-size: 1rem;
  min-width: 110px;
  box-shadow: 0 1px 7px rgba(160,26,31,0.09);
  transition: background .2s, color .2s;
  cursor: pointer;
  display: inline-block;
}
.cookie-btn.cookie-reject {
  background: #fff;
  color: var(--brand-primary);
  border: 1.5px solid var(--brand-primary);
}
.cookie-btn.cookie-reject:hover, .cookie-btn.cookie-reject:focus {
  background: var(--brand-secondary);
  color: #fff;
}
.cookie-btn.cookie-settings {
  background: var(--brand-secondary);
  border-color: var(--brand-secondary);
}
.cookie-btn.cookie-settings:hover, .cookie-btn.cookie-settings:focus {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}
.cookie-consent-banner .cookie-btn:focus {
  outline: 2px solid var(--brand-primary);
}

@media (max-width:650px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    padding: 18px 13px 7px 13px;
  }
  .cookie-consent-banner p {
    margin: 0 0 4px 0;
  }
}

.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 10011;
  left: 0; right:0; top:0; bottom:0;
  background: rgba(40,34,20,0.37);
  justify-content: center;
  align-items: center;
}
.cookie-modal-overlay.open {
  display: flex;
  animation: fadeIn .34s cubic-bezier(.1,.5,.55,1);
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 38px rgba(100,66,31,0.14);
  min-width: 295px;
  max-width: 95vw;
  min-height: 290px;
  padding: 30px 34px 24px 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  animation: modalPopup .38s cubic-bezier(.28, .61, .43, .99);
  position: relative;
}
@keyframes modalPopup {
  from { transform: scale(.77); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 1.28rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 9px;
}
.cookie-category input[type="checkbox"] {
  width: 21px;
  height: 21px;
  accent-color: var(--brand-primary);
}
.cookie-category label {
  font-size: 1.07rem;
  color: var(--brand-secondary);
  font-family: var(--font-display);
}
.cookie-category.essential label {
  color: var(--brand-secondary);
  font-weight: 600;
}
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.cookie-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 2rem;
  color: var(--brand-primary);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2000;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--brand-secondary);
}

@media (max-width: 540px) {
  .cookie-modal {
    padding: 14px 8vw 11px 8vw;
  }
}

/* FORMS --------------------------*/
input[type="text"], input[type="email"], textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 9px 14px;
  border-radius: var(--border-radius);
  border: 1.5px solid #dcd6cd;
  background: #fff;
  color: var(--brand-secondary);
  margin-bottom: 13px;
  width: 100%;
  transition: border .18s, box-shadow .18s;
  box-sizing: border-box;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: var(--brand-primary);
  outline: none;
  box-shadow: 0 1px 7px rgba(160,26,31,0.11);
}
label {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--brand-secondary);
  margin-bottom: 8px;
}

/* SPACING UTILITIES -----------------------------*/
.mb-20 { margin-bottom: 20px; }
.mb-32 { margin-bottom:32px; }
.mt-20 { margin-top:20px; }
.gap-24 { gap:24px; }
.gap-16 { gap:16px; }
.gap-32 { gap:32px; }

/* GENERAL INTERACTIVE & MICRO-INTERACTIONS ---------------*/
a, button, .cta-btn, input, .cookie-btn {
  transition: background var(--transition-main), color .22s, box-shadow .22s, border-color .22s;
}
.card,
.section,
.testimonial-card,
.cookie-modal,
input[type="text"], input[type="email"], textarea {
  transition: box-shadow .25s, border-color .22s;
}
.card:active, .testimonial-card:active {
  transform: scale(.985);
}

/* CUSTOM SCROLLBAR (Webkit) -----------------*/
::-webkit-scrollbar { width: 10px; background: #F4F1EC; }
::-webkit-scrollbar-thumb { background: #E8F5E9; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #daccc6; }

/* RESPONSIVE FIXES -------------------------*/
@media (max-width:470px) {
  h1 {font-size:1.5rem;}
  h2 {font-size:1.16rem;}
  h3 {font-size:1.01rem;}
  .footer-info, footer nav ul li a {font-size:.91rem;}
}

/* EXTRA: CONSISTENT ELEMENT SPACING ------*/
main > section, .section {
  margin-bottom:60px;
}
.card, .testimonial-card, .feature-item, .text-section, .content-wrapper > * {
  margin-bottom: 20px;
}
.card:last-child, .testimonial-card:last-child, .feature-item:last-child, .content-wrapper > *:last-child {
  margin-bottom:0;
}
section {
  padding: 10px 0;
}
/* ENSURE NO OVERLAP and USE FLEXBOX ONLY */
/* (No grid or columns; confirmed) */
