/* ========================================================
   CSS Reset and Normalize for Cross-Browser Consistency
   ======================================================== */
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%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px; /* base font size for mobile */
}
body {
  line-height: 1.5;
  background: #FFFFFF;
  color: #4B3720;
  font-family: 'Lato', Arial, sans-serif;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
* {
  box-sizing: inherit;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
  border-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}
button {
  cursor: pointer;
}

/* ========================================================
   Brand Variables (with fallbacks for old browsers)
   ======================================================== */
:root {
  --color-primary: #80654B;
  --color-secondary: #DED6C9;
  --color-accent: #366073;
  --color-dark: #4B3720;
  --color-light: #FFFFFF;
  --color-bg: #FFFFFF;
  --color-placeholder: #F7F5F2;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Lato', Arial, sans-serif;
  --radius: 12px;
  --shadow: 0 2px 16px rgba(128, 101, 75, 0.04), 0 1.5px 4px rgba(54,96,115,0.05);
  --shadow-hover: 0 4px 24px rgba(54,96,115,0.08), 0 2px 8px rgba(128,101,75,0.07);
  --transition: 0.2s cubic-bezier(.4,0,.2,1);
}

/* ========================================================
   Typography
   ======================================================== */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-dark);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-dark);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
h1 {
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.125rem;
  line-height: 1.3;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
  line-height: 1.5;
}
p {
  font-size: 1rem;
  margin-bottom: 16px;
  color: #4B3720;
}
strong {
  font-weight: 700;
}
small {
  font-size: 0.875rem;
}
.text-section {
  max-width: 690px;
  margin: 0 auto;
}

/* Spacing for lists inside content */
ul, ol {
  margin-bottom: 20px;
  padding-left: 0;
}
ul li, ol li {
  margin-bottom: 8px;
  position: relative;
  line-height: 1.5;
  padding-left: 20px;
  color: #4B3720;
}
ul li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--color-secondary);
  border-radius: 50%;
}

/* ========================================================
   Layout Structure
   ======================================================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 20px;
  padding-left: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

/* Features (cards) layout for main pages */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.features-grid > div {
  flex: 1 1 220px;
  min-width: 210px;
  background: var(--color-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 20px 20px 20px;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.features-grid > div img {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
}
.features-grid > div:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.02);
}

/* Cards (re-usable) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.015);
}

.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;
  }
}

.testimonials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #FFF;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: #4B3720;
  min-width: 260px;
  max-width: 380px;
  flex: 1 1 260px;
  transition: box-shadow var(--transition), transform var(--transition);
  margin-bottom: 20px;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px) scale(1.01);
}
.testimonial-card p {
  color: #4B3720;
  font-size: 1rem;
  margin: 0 0 10px 0;
}
.testimonial-card strong {
  color: var(--color-accent);
  font-size: 0.97rem;
}

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

/* CTA sections */
section.cta {
  background: var(--color-secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  padding: 40px 20px;
  text-align: center;
}
section.cta h2 {
  margin-bottom: 16px;
}
section.cta .cta {
  margin-top: 16px;
}

/* Blog and Tags */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.blog-list article {
  background: var(--color-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  flex: 1 1 240px;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.blog-list article:hover {
  box-shadow: var(--shadow-hover);
}
.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.tags-list span {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-size: 0.94rem;
  padding: 4px 14px;
  border-radius: 16px;
  font-family: var(--font-display);
  letter-spacing: .02em;
}

/* Map Placeholder */
.map-placeholder {
  background: var(--color-placeholder);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 16px;
}
.map-placeholder img {
  width: 40px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-info-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: #4B3720;
}
.contact-info-list img {
  width: 20px;
  height: 20px;
}

/* =======================
    Header & Navigation
   ======================= */
header {
  background: var(--color-light);
  box-shadow: 0 1px 8px rgba(128,101,75,0.07);
  position: sticky;
  top: 0;
  z-index: 40;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 0 16px 0;
  max-width: 1160px;
  margin: 0 auto;
}
header nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 500;
  border-radius: 8px;
  padding: 6px 12px;
  transition: background var(--transition), color var(--transition);
}
header nav a:hover,
header nav a:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}
header nav a.cta {
  background: var(--color-accent);
  color: #fff;
  padding: 8px 20px;
  border-radius: 24px;
  font-weight: 700;
  margin-left: 22px;
  transition: background var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 8px rgba(54, 96, 115, 0.07);
  letter-spacing: 0.01em;
}
header nav a.cta:hover, header nav a.cta:focus {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 5px 20px rgba(54, 96, 115, 0.14);
}
header nav img {
  height: 36px;
  margin-right: 12px;
}

.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  display: none;
}

/* =======================
      Responsive Nav
   ======================= */
@media (max-width: 960px) {
  header nav {
    gap: 10px;
    padding: 14px 0 12px 0;
  }
  header nav a.cta {
    margin-left: 10px;
  }
}
@media (max-width: 768px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 24px;
    top: 16px;
    z-index: 120;
    background: var(--color-accent);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 1.4rem;
    border: none;
    box-shadow: 0 1px 10px rgba(54, 96, 115, 0.04);
    transition: background 0.2s;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: var(--color-primary);
    color: #fff;
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(222, 214, 201, 0.98);
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.33s cubic-bezier(.6,.04,.34,1.09);
    opacity: 1;
    will-change: transform;
    padding: 0;
  }
  .mobile-menu.open {
    transform: translateX(0);
  }
  .mobile-menu-close {
    align-self: flex-end;
    background: none;
    border: none;
    color: var(--color-accent);
    font-size: 2rem;
    margin: 28px 32px 14px 0;
    padding: 0 4px;
    transition: color 0.2s;
    border-radius: 8px;
    z-index: 258;
  }
  .mobile-menu-close:hover, .mobile-menu-close:focus {
    color: var(--color-primary);
    background: #fff;
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin-top: 32px;
    margin-left: 32px;
  }
  .mobile-nav a {
    background: none;
    color: var(--color-primary);
    font-size: 1.05rem;
    font-family: var(--font-display);
    padding: 10px 8px 10px 0;
    transition: color var(--transition), background var(--transition);
    border-radius: 8px;
    min-width: 160px;
  }
  .mobile-nav a:active, .mobile-nav a:focus {
    background: var(--color-secondary);
    color: var(--color-accent);
  }
}

/* =======================
       Buttons & CTAs
   ======================= */
.cta, .btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.09rem;
  letter-spacing: .03em;
  padding: 10px 26px;
  border-radius: 26px;
  box-shadow: 0 1.5px 9px rgba(54,96,115,0.08);
  border: none;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  margin-top: 10px;
}
.cta:hover, .cta:focus, .btn:hover, .btn:focus {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 3px 22px rgba(54,96,115,0.13);
  text-decoration: none;
  transform: translateY(-2px) scale(1.03);
}

/* =========================
   Hero Section (/)
   ========================= */
.hero {
  background: linear-gradient(180deg, #DED6C9 20%, #fff 90%);
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 0 52px 0;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
}
.hero h1 {
  font-size: 2.3rem;
  color: var(--color-primary);
  margin-bottom: 20px;
  margin-top: 10px;
}
.hero p {
  color: var(--color-dark);
  margin-bottom: 28px;
  font-size: 1.125rem;
  font-family: var(--font-body);
}
@media (min-width: 900px) {
  .hero h1 { font-size: 2.7rem; }
}

/* =======================
         Footer
   ======================= */
footer {
  background: #f8f7f5;
  padding-top: 26px;
  color: var(--color-dark);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  border-bottom: 1px solid #ece7e1;
  padding-bottom: 22px;
}
.footer-top > a img {
  height: 32px;
}
.footer-top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.footer-top nav a {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 0.97rem;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.12s, color 0.12s;
}
.footer-top nav a:hover, .footer-top nav a:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}
.social-links {
  display: flex;
  gap: 14px;
  margin-left: auto;
  align-items: center;
}
.social-links a img {
  height: 28px;
  width: 28px;
  opacity: 0.80;
  transition: opacity 0.17s;
}
.social-links a:hover img, .social-links a:focus img {
  opacity: 1;
}
.footer-bottom {
  padding: 18px 0 6px 0;
  text-align: left;
  font-size: 0.92rem;
  color: #998765;
}
.footer-bottom small {
  font-family: var(--font-body);
}
@media (max-width: 850px) {
  .footer-top {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  .social-links {
    margin-left: 0;
  }
}

/* =======================
      Cookie Consent Banner
   ======================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 600;
  background: #fff;
  color: var(--color-dark);
  box-shadow: 0 -2px 24px rgba(128,101,75,0.09), 0 0.5px 6px rgba(54,96,115,0.04);
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
  border-radius: 22px 22px 0 0;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), opacity 0.2s;
}
.cookie-banner.hide {
  pointer-events: none;
  opacity: 0;
  transform: translateY(100%);
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 8px 18px;
  border-radius: 18px;
  margin-left: 0;
  margin-right: 0;
  border: none;
  transition: background 0.17s, color 0.17s, box-shadow 0.17s, transform 0.16s;
  margin-top: 0;
}
.cookie-banner .accept {
  background: var(--color-accent);
  color: #fff;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-1px) scale(1.03);
}
.cookie-banner .reject {
  background: #fff;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-banner .settings {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #ffe4cd;
  color: var(--color-accent);
}

/* Cookie modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 700;
  background: rgba(54, 96, 115, 0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity .2s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  max-width: 390px;
  min-width: 300px;
  padding: 32px 30px 26px 30px;
  box-shadow: 0 7px 36px rgba(54,96,115,0.11);
  color: var(--color-dark);
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadein-cookie 0.33s cubic-bezier(.6,0,.4,1);
}
@keyframes fadein-cookie {
  from { opacity: 0; transform: scale(.93); }
  to { opacity: 1; transform: none; }
}
.cookie-modal h3 {
  font-size: 1.13rem;
  font-family: var(--font-display);
  margin-bottom: 8px;
}
.cookie-modal ul {
  margin: 0;
  padding: 0 0 0 2px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-modal li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.97rem;
}
.cookie-modal label {
  cursor: pointer;
  user-select: none;
}
.cookie-category-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  background: var(--color-secondary);
  border-radius: 12px;
  position: relative;
  outline: none;
  transition: background .25s;
}
.cookie-category-toggle:checked {
  background: var(--color-accent);
}
.cookie-category-toggle:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform .25s, background .13s;
  box-shadow: 0 3px 12px rgba(54,96,115,0.08);
}
.cookie-category-toggle:checked:before {
  transform: translateX(16px);
  background: #fff;
}
.cookie-modal .category-label {
  flex: 1;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 14px;
  align-self: flex-end;
}
.cookie-modal .accept, .cookie-modal .reject, .cookie-modal .close {
  padding: 8px 19px;
  font-size: 1rem;
  border-radius: 18px;
  border: none;
  transition: background 0.17s, color 0.17s, box-shadow 0.17s;
}
.cookie-modal .accept { background: var(--color-accent); color: #fff; }
.cookie-modal .accept:hover, .cookie-modal .accept:focus {
  background: var(--color-primary); color: #fff;
}
.cookie-modal .reject { background: #fff; color: var(--color-accent); border: 1px solid var(--color-accent); }
.cookie-modal .reject:hover, .cookie-modal .reject:focus { background: var(--color-secondary); color: var(--color-primary); }
.cookie-modal .close { background: var(--color-secondary); color: var(--color-primary); }
.cookie-modal .close:hover, .cookie-modal .close:focus { background: #ffe4cd; color: var(--color-accent); }

/* =======================
       Media Queries
   ======================= */
@media (max-width: 1020px) {
  .container { max-width: 100%; }
}
@media (max-width: 900px) {
  .container { padding-left: 14px; padding-right: 14px; }
  .features-grid {
    gap: 16px;
  }
  .card-container, .content-grid, .testimonials-list, .blog-list {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  /* Typography: scale down a bit on mobile */
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.17rem; }
  h3 { font-size: 1.01rem; }
  /* Layout refinement */
  .features-grid { flex-direction: column; gap: 14px; }
  .features-grid > div { min-width: 0; align-items: flex-start; }
  .card-container, .content-grid, .testimonials-list, .blog-list { flex-direction: column; gap: 10px; }
  .section, section.cta { padding: 28px 6px; margin-bottom: 36px; border-radius: 0; }
  .text-image-section { gap: 14px; }
  .testimonial-card { min-width: 0; max-width: 100%; font-size: 0.99rem; }
  .blog-list article, .features-grid > div, .card { padding: 16px 10px; }
  .footer-top { gap: 12px; padding-bottom: 8px; }
  .footer-top > a img { height: 24px; }
  .footer-bottom { padding: 10px 0 2px 0; font-size: 0.85rem; }
}
@media (max-width: 500px) {
  .container { padding-left: 4px; padding-right: 4px; }
  .hero { padding: 18px 0; }
  .hero .content-wrapper { padding: 0 4px; }
}

/* =========================
   Micro-interactions/Transitions
   ========================= */
a, button, .cta, .btn, .card, .testimonial-card, .features-grid > div, .blog-list article {
  transition: box-shadow var(--transition), color var(--transition), background var(--transition), transform var(--transition);
}

/* =========================
   Simple Animations on page load
   ========================= */
@media (prefers-reduced-motion: no-preference) {
  .section, .hero, .card, .testimonial-card, .features-grid > div, .blog-list article {
    animation: fadein-minml 0.7s cubic-bezier(.4,0,.2,1) 0.08s backwards;
  }
}
@keyframes fadein-minml {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: none; }
}

/* =========================
   Miscellaneous utility
   ========================= */
::-webkit-input-placeholder { color: #BDAE91; opacity: 1; }
::-moz-placeholder { color: #BDAE91; opacity: 1; }
:-ms-input-placeholder { color: #BDAE91; opacity: 1; }
::placeholder { color: #BDAE91; opacity: 1; }

/* =========================
   Accessibility
   ========================= */
:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

/* Hide scrollbars on mobile nav overlay */
.mobile-menu {
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
}

/* Hide cookie modal by default */
.cookie-modal-overlay {
  display: none;
}
.cookie-modal-overlay.open {
  display: flex;
}

/* Utility classes for margin & layout */
.mt-32 { margin-top: 32px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mt-16 { margin-top: 16px !important; }
.mb-16 { margin-bottom: 16px !important; }

/************** END ************/
