/* RESET & NORMALIZE */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
img, picture {
  max-width: 100%;
  display: block;
  height: auto;
}
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}
:focus {
  outline: 2px solid #A8794B;
  outline-offset: 2px;
}

/* BRAND COLORS AS CSS VARIABLES */
:root {
  --color-primary: #38412B;
  --color-secondary: #A8794B;
  --color-accent: #F6F3E2;
  --color-bg: #fff;
  --color-text: #222;
  --color-footer-bg: #F6F3E2;
  --color-shadow: rgba(40,40,40,0.05);
  --color-border: #E0DED8;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1.2;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.25;
}
p, li {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 12px;
  color: var(--color-text);
  line-height: 1.7;
}
ul, ol {
  margin-bottom: 18px;
  padding-left: 18px;
}
ul li, ol li {
  list-style: disc inside;
}

/* LINKS */
a {
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--color-secondary);
}

/* CONTAINER & FLEX LAYOUTS */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
}

/* CORE SPACING & SECTIONS */
.section,
main > section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

@media (max-width: 600px) {
  .section,
  main > section {
    margin-bottom: 36px;
    padding: 24px 8px;
  }
}

/* FLEXBOX PATTERNS */
.features-grid,
.services-overview,
.card-container,
.card-grid,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}

@media (max-width: 900px) {
  .features-grid,
  .services-overview,
  .card-container,
  .card-grid,
  .content-grid {
    gap: 16px;
    justify-content: flex-start;
  }
}

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

.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: 20px;
  }
}

.card, .service-card, .feature {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 30px 22px;
  flex: 1 1 240px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
  min-width: 220px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
}
.card:hover, .service-card:hover, .feature:hover {
  box-shadow: 0 8px 32px rgba(56,65,43,0.08);
  transform: translateY(-2px) scale(1.01);
}

/* Text Sections */
.text-section,
.content-wrapper.text-section {
  max-width: 700px;
  margin: 0 auto 32px auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

@media (max-width: 600px) {
  .text-section,
  .content-wrapper.text-section {
    gap: 12px;
  }
}

/* FOOTER */
footer {
  background: var(--color-footer-bg);
  margin-top: 60px;
  padding: 0;
  border-top: 1px solid var(--color-border);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 40px 0 20px 0;
}
.footer-nav nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
}
.footer-nav a {
  font-size: 1rem;
  color: var(--color-primary);
  opacity: 0.88;
  transition: color 0.16s, opacity 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-secondary);
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.97rem;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: middle;
}
footer small {
  display: block;
  color: #555;
  margin-top: 36px;
  opacity: 0.75;
}

@media (max-width: 880px) {
  .footer-nav {
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
  }
}

/* HEADER + NAVIGATION */
header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 10px 0;
}
.logo-link img {
  width: 158px;
  height: auto;
  display: block;
}
.main-nav {
  display: flex;
  gap: 25px;
  align-items: center;
}
.main-nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: var(--color-primary);
  padding: 6px 2px;
  border-radius: 5px;
  transition: color 0.18s, background 0.17s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-secondary);
  background: rgba(168,121,75, 0.08);
}

.cta-primary {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  color: #fff;
  background: var(--color-primary);
  border-radius: 8px;
  padding: 10px 24px;
  margin-left: 12px;
  transition: background 0.22s, color 0.18s, box-shadow 0.2s;
  box-shadow: 0 2px 8px var(--color-shadow);
  border: none;
  outline: none;
  display: inline-block;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--color-secondary);
  color: #fff;
  box-shadow: 0 6px 22px rgba(168,121,75,0.07);
}

/* Responsive Main Nav */
@media (max-width: 950px) {
  .main-nav {
    gap: 13px;
  }
  .cta-primary {
    margin-left: 3px;
    padding: 9px 16px;
    font-size: 0.98rem;
  }
}
@media (max-width: 800px) {
  .main-nav, .cta-primary {
    display: none;
  }
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--color-primary);
  background: none;
  border: none;
  padding: 7px 12px;
  border-radius: 6px;
  z-index: 102;
  transition: background 0.16s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: rgba(168,121,75,0.1);
}
@media (max-width: 800px) {
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 94vw;
  max-width: 340px;
  height: 100vh;
  background: #fff;
  box-shadow: -6px 0 48px rgba(56,65,43,0.15);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(104%);
  transition: transform 0.35s cubic-bezier(.7,.2,.3,1);
  overflow-y: auto;
  padding: 44px 28px 38px 28px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  display: block;
  align-self: flex-end;
  font-size: 2.1rem;
  background: none;
  border: none;
  margin-bottom: 24px;
  color: var(--color-primary);
  cursor: pointer;
  transition: color 0.14s, background 0.1s;
  padding: 8px 10px;
  border-radius: 6px;
  z-index: 1011;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(168,121,75,0.1);
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 6px;
}
.mobile-nav a {
  font-size: 1.08rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--color-primary);
  padding: 10px 4px;
  border-radius: 6px;
  background: none;
  transition: background 0.17s, color 0.17s;
  min-width: 100px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: rgba(168,121,75,0.09);
  color: var(--color-secondary);
}

@media (min-width:801px) {
  .mobile-menu {
    display: none !important;
  }
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--color-footer-bg);
  color: var(--color-primary);
  box-shadow: 0 -2px 18px rgba(56,65,43, 0.07);
  padding: 22px 16px 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 5555;
  font-size: 1.03rem;
  transition: transform 0.4s cubic-bezier(.83,-0.01,.11,.99);
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 16px;
}
.cookie-banner button {
  font-family: 'Roboto', Arial, sans-serif;
  border-radius: 7px;
  border: none;
  padding: 8px 18px;
  margin: 0 2px;
  background: var(--color-primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 2px 10px var(--color-shadow);
  transition: background 0.19s, color 0.13s;
}
.cookie-banner button.cookie-reject {
  background: none;
  border: 1px solid var(--color-secondary);
  color: var(--color-secondary);
}
.cookie-banner button.cookie-settings {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-banner button.cookie-reject:hover, .cookie-banner button.cookie-reject:focus {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  left: 0; right:0; top:0; bottom:0;
  background: rgba(40,44,32,0.26);
  z-index: 6000;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 38px rgba(56,65,43,0.11);
  max-width: 400px;
  width: 90vw;
  padding: 32px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: modalIn 0.4s cubic-bezier(.71,.26,.31,1.2);
}
@keyframes modalIn {
  0% { transform: translateY(60px) scale(0.9); opacity: 0.8; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h3 {
  margin-bottom: 8px;
  font-size: 1.22rem;
  color: var(--color-primary);
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-secondary);
  width: 18px; height: 18px;
}
.cookie-category .toggle-label {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--color-primary);
}
.cookie-category .essential {
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 1.05rem;
}
.cookie-modal .modal-btns {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}
.cookie-modal .modal-btns button {
  flex: 1;
  padding: 8px 0;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 9px; right: 19px;
  font-size: 2rem;
  color: var(--color-secondary);
  background: none;
  border: none;
  cursor: pointer;
}
.cookie-modal .cookie-modal-close:hover { color: var(--color-primary); }

/* TESTIMONIAL CARDS */
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 20px 24px;
  min-width: 210px;
  max-width: 340px;
  flex: 1 1 250px;
  margin-bottom: 20px;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card p {
  color: #38362C;
  font-size: 1.08rem;
  font-style: italic;
  margin-bottom: 5px;
}
.testimonial-card span {
  color: var(--color-secondary);
  font-size: 0.96rem;
  align-self: flex-end;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(56,65,43,0.09);
  transform: translateY(-2px) scale(1.01);
}

/* SERVICES OVERVIEW, CARDS ETC. */
.services-overview {
  gap: 24px;
  flex-wrap: wrap;
}
.service-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 32px 24px 24px 24px;
  flex: 1 1 260px;
  min-width: 220px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card h3 {
  margin-bottom: 10px;
  color: var(--color-primary);
  font-size: 1.19rem;
}
.service-card p {
  margin-bottom: 14px;
}
.service-card a {
  color: var(--color-secondary);
  font-weight: 500;
  margin-top: auto;
  font-size: 1rem;
  transition: color 0.16s;
}
.service-card a:hover, .service-card a:focus {
  color: var(--color-primary);
}

/* FEATURE CARDS */
.feature {
  align-items: flex-start;
  text-align: left;
  min-width: 210px;
  max-width: 300px;
  flex: 1 1 210px;
  padding: 27px 18px 20px 18px;
  gap: 8px;
  display: flex;
  flex-direction: column;
}
.feature img {
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
}
.feature h3 {
  margin-bottom: 4px;
}
.feature p {
  color: #474336;
  font-size: 1rem;
}

/* Icon in Lists */
li img {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: middle;
}

/* HERO section improvements */
h1 + p {
  margin-bottom: 16px;
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 900px) {
  .features-grid, .services-overview {
    flex-direction: column;
    gap: 18px;
  }
  .feature, .service-card, .testimonial-card {
    min-width: 100%;
    max-width: 100%;
  }
}
@media (max-width: 650px) {
  .feature, .service-card, .testimonial-card {
    padding: 17px 6vw;
  }
  h1 {font-size: 2rem;}
  h2 {font-size: 1.35rem;}
  h3 {font-size: 1.08rem;}
  .container {padding: 0 5px;}
}

/* GAP BETWEEN CARDS/SECTIONS */
.card:not(:last-child),
.service-card:not(:last-child),
.feature:not(:last-child),
.testimonial-card:not(:last-child),
.section:not(:last-child),
main > section:not(:last-child) {
  margin-bottom: 32px;
}

@media (max-width: 600px) {
  .section,
  main > section {
    margin-bottom: 20px;
    padding: 18px 2vw;
  }
}

/* MICRO-INTERACTIONS: BUTTONS/TRANSITIONS */
button, .cta-primary, .cookie-banner button {
  transition: background 0.16s, color 0.18s, box-shadow 0.18s, border 0.16s, transform 0.18s;
}
button:active, .cta-primary:active {
  transform: scale(0.98);
  box-shadow: 0 1px 4px var(--color-shadow);
}

/* Scrollbar styling for overlay/menus (minimalist) */
.mobile-menu, .cookie-modal {
  scrollbar-width: thin;
  scrollbar-color: var(--color-secondary) #fff;
}
.mobile-menu::-webkit-scrollbar, .cookie-modal::-webkit-scrollbar {
  width: 6px;
  background: #eee;
}
.mobile-menu::-webkit-scrollbar-thumb, .cookie-modal::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 10px;
}

/* Inputs to match minimalist look (for cookie modal) */
input[type="checkbox"]:focus {
  outline: 2px solid var(--color-secondary);
}

/* Print & Accessibility: Hide mobile/nav on print */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
}
