/* ===================================================
   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;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  line-height: 1.6;
  min-height: 100vh;
  background: #f5f3ee;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #31261a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 1rem;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #693a22;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #d3a466;
}
ul, ol {
  list-style: none;
}
button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
:focus {
  outline: 2px solid #d3a466;
  outline-offset: 1px;
}

/* =======================
   TYPOGRAPHY
======================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', serif;
  color: #31261a;
  font-weight: 700;
}
h1 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-size: 1rem;
}
p, ul, ol {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #57432a;
  font-size: 1rem;
  margin-bottom: 16px;
}
strong {
  font-weight: 700;
}

/* =======================
   CONTAINERS & LAYOUT
======================= */
.container {
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(49,38,26,0.04);
}

/* =====================
   NAVIGATION BAR STYLE
===================== */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(49,38,26,0.03);
  position: sticky;
  top: 0;
  z-index: 100;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 14px 20px;
  position: relative;
  width: 100%;
}
.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  padding: 8px 0;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #57432a;
  transition: color 0.2s;
}
.nav-links .btn-primary {
  margin-left: 16px;
}
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #693a22;
  color: #fff;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  border: none;
  margin-left: 8px;
  transition: background 0.2s;
  z-index: 120;
  display: none;
}
.mobile-menu-toggle:hover {
  background: #d3a466;
  color: #693a22;
}

/* ===================
   MOBILE MENU STYLE
=================== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 90vw;
  height: 100vh;
  background: #fff;
  box-shadow: -6px 0 24px rgba(105,58,34,0.10);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.47,1.64,.41,.8);
  z-index: 130;
  display: flex;
  flex-direction: column;
  padding: 32px 24px 24px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: #f5f3ee;
  color: #693a22;
  font-size: 1.7rem;
  margin-bottom: 32px;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.mobile-menu-close:hover {
  background: #d3a466;
  color: #31261a;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  color: #31261a;
  font-size: 1.09rem;
  padding: 12px 0;
  font-family: 'Open Sans', Arial, sans-serif;
  border-bottom: 1px solid #f5f3ee;
  transition: color 0.16s, background 0.2s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover {
  color: #d3a466;
  background: #f5f3ee;
  border-radius: 6px;
  padding-left: 8px;
}

/* Mask overlay for mobile menu */
.mobile-menu-mask {
  display: none;
  position: fixed;
  z-index: 120;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(49,38,26,0.36);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.mobile-menu.open + .mobile-menu-mask {
  display: block;
  pointer-events: all;
  opacity: 1;
}

/* =========================
   HERO SECTION STYLE
========================= */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0 40px 0;
  background: #f5f3ee;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  max-width: 640px;
}
.hero h1 {
  font-size: 2.3rem;
  color: #693a22;
}
.hero p {
  font-size: 1.19rem;
  color: #433020;
}

/* =====================
   SECTIONS
===================== */
.features {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(49,38,26,0.04);
}
.features .content-wrapper {
  gap: 16px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  margin-bottom: 8px;
}
.feature-grid li {
  background: #faf7f1;
  border-radius: 14px;
  flex: 1 1 220px;
  min-width: 210px;
  max-width: 340px;
  padding: 24px 20px 18px 20px;
  box-shadow: 0 2px 12px rgba(105,58,34,0.06);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.25s, transform 0.15s;
}
.feature-grid li:hover {
  box-shadow: 0 6px 28px rgba(105,58,34,0.13);
  transform: translateY(-3px) scale(1.03);
}
.feature-grid img {
  height: 40px;
  width: 40px;
  margin-bottom: 6px;
}
.features h3 {
  color: #693a22;
  font-size: 1.14rem;
}

.services ul, .features ul:not(.feature-grid) {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.services ul li, .features ul:not(.feature-grid) li {
  font-size: 1rem;
  color: #31261a;
  background: #faf7f1;
  border-radius: 8px;
  padding: 14px 18px 12px 22px;
  margin-bottom: 8px;
  font-family: 'Open Sans', Arial, sans-serif;
}

/* =====================
   TESTIMONIALS
===================== */
.testimonials {
  background: #fcfaf6;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(49,38,26,0.03);
}
.testimonials .content-wrapper {
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 24px 18px 24px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 18px rgba(105,58,34,0.13);
  margin-bottom: 20px;
  min-width: 240px;
  max-width: 500px;
  transition: box-shadow 0.25s, transform 0.15s;
  color: #2c2015;
}
.testimonial-card:hover {
  box-shadow: 0 7px 32px rgba(105,58,34,0.19);
  transform: translateY(-3px) scale(1.03);
}
.testimonial-card p {
  color: #3b2819;
  font-size: 1.13rem;
  margin-bottom: 0;
}
.testimonial-card span {
  color: #9d733b;
  font-size: 0.98rem;
  font-style: italic;
}

/* =====================
   CONTACT SECTION
===================== */
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.contact-info div {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: #693a22;
  gap: 8px;
  background: #f5f3ee;
  border-radius: 8px;
  padding: 8px 16px;
}
.map-snippet {
  margin-top: 12px;
  padding: 14px 18px 12px 18px;
  background: #faf7f1;
  border-radius: 8px;
  color: #57432a;
  font-size: 0.93rem;
}

/* =====================
   CARDS & GRIDS
===================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(49,38,26,0.04);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  max-width: 360px;
  padding: 20px 20px 16px 20px;
  transition: box-shadow 0.2s, transform 0.13s;
}
.card:hover {
  box-shadow: 0 6px 28px rgba(105,58,34,0.11);
  transform: translateY(-4px) scale(1.04);
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/* =====================
   BUTTONS
===================== */
.btn-primary {
  background: #693a22;
  color: #fff;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 10px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.09rem;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(105,58,34,0.08);
  transition: background 0.2s, color 0.15s, box-shadow 0.21s, transform 0.12s;
  border: none;
  outline: none;
  display: inline-block;
  margin-top: 8px;
  cursor: pointer;
}
.btn-primary:hover, .btn-primary:focus {
  background: #d3a466;
  color: #31261a;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 14px rgba(49,38,26,0.15);
}
.btn-secondary {
  background: #f5f3ee;
  color: #693a22;
  border: 2px solid #693a22;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 10px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  transition: background 0.2s, color 0.17s, border 0.18s;
  display: inline-block;
  margin-top: 10px;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #d3a466;
  color: #31261a;
  border: 2px solid #d3a466;
}

/* =====================
   FOOTER
===================== */
footer {
  background: #f5f3ee;
  margin-top: 60px;
  border-top: 1px solid #e9e2cf;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 40px 20px 24px 20px;
  max-width: 1140px;
  margin: 0 auto;
}
.footer-main nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-main a {
  color: #693a22;
  font-size: 0.98rem;
  font-family: 'Open Sans', Arial, sans-serif;
}
.footer-main a:hover {
  text-decoration: underline;
  color: #d3a466;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #433020;
  font-size: 0.97rem;
}
.footer-logo {
  width: 60px;
  height: auto;
  margin-bottom: 16px;
}
.footer-bottom {
  text-align: center;
  background: #faf7f1;
  color: #a88e6a;
  font-size: 0.92rem;
  padding: 16px 0;
  border-top: 1px solid #e9e2cf;
}

/* =====================
   LEGAL SECTIONS
===================== */
.legal .content-wrapper {
  background: #fff;
  padding: 30px 22px;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(49,38,26,0.05);
  gap: 18px;
}
.legal h1, .legal h2 {
  color: #693a22;
}
.legal ul {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.legal ul li {
  background: #f5f3ee;
  border-radius: 7px;
  padding: 10px 16px;
  color: #57432a;
  font-size: 0.99rem;
}

/* ========================
   CONFIRMATION/THANK YOU
======================== */
.confirmation .content-wrapper {
  align-items: center;
  text-align: center;
  background: #fff;
  padding: 54px 18px;
  border-radius: 15px;
  box-shadow: 0 2px 16px rgba(105,58,34,0.07);
  gap: 14px;
}
.confirmation h1 {
  color: #693a22;
  font-size: 2rem;
}

/* =========================
   COOKIE CONSENT BANNER
========================= */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; width: 100vw;
  z-index: 210;
  background: #faf7f1;
  color: #3b2819;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: 0 -2px 20px rgba(49,38,26,0.07);
  padding: 18px 32px;
  border-top: 1px solid #e5d5b7;
}
.cookie-banner p {
  flex: 1 1 220px;
  font-size: 1rem;
  color: #57432a;
  margin: 0;
}
.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cookie-btn {
  background: #693a22;
  color: #fff;
  padding: 8px 20px;
  border-radius: 8px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.15s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #d3a466;
  color: #31261a;
}
.cookie-btn.secondary {
  background: #f5f3ee;
  color: #693a22;
  border: 2px solid #693a22;
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: #d3a466;
  color: #31261a;
  border: 2px solid #d3a466;
}

/* Cookie modal */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(49,38,26,0.30);
  z-index: 220;
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity 0.23s;
}
.cookie-modal-backdrop.open {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  padding: 36px 30px 28px 30px;
  box-shadow: 0 7px 38px rgba(49,38,26,0.15);
  min-width: 320px;
  max-width: 95vw;
  z-index: 221;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal h3 {
  color: #693a22;
  margin-bottom: 4px;
}
.cookie-modal .cookie-prefs-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-modal .cookie-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f5f3ee;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
}
.cookie-modal .cookie-toggle input[type=checkbox] {
  accent-color: #693a22;
  width: 20px;
  height: 20px;
  border-radius: 5px;
}
.cookie-modal .cookie-note {
  font-size: 0.93rem;
  margin-top: 6px;
  color: #888074;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 16px;
  background: #faf7f1;
  color: #693a22;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #d3a466;
  color: #31261a;
}

/* =========================
   RESPONSIVE: MOBILE FIRST
========================= */
@media (max-width: 1160px) {
  .container {
    max-width: 96vw;
    padding: 0 12px;
  }
  .footer-main {
    padding: 32px 12px 15px 12px;
  }
}
@media (max-width: 900px) {
  .main-nav, .footer-main {
    gap: 16px;
  }
  .nav-links {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 6vw;
  }
  .main-nav {
    padding: 12px 6vw;
  }
  .nav-links {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .section {
    padding: 22px 5vw;
    margin-bottom: 38px;
  }
  .content-wrapper {
    gap: 11px;
  }
  .feature-grid {
    gap: 14px;
  }
  .card-container, .content-grid {
    gap: 13px;
  }
  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .footer-logo {
    margin-bottom: 0;
  }
  .footer-contact {
    margin-top: 8px;
  }
  .hero {
    padding: 36px 0 20px 0;
  }
  .hero .content-wrapper {
    max-width: 98vw;
    padding-left: 0;
    padding-right: 0;
  }
}
@media (max-width: 575px) {
  h1 {
    font-size: 1.43rem;
  }
  .hero h1 {
    font-size: 1.47rem;
  }
  h2 {
    font-size: 1.16rem;
  }
  .feature-grid li, .card {
    min-width: 130px;
    padding: 17px 12px 13px 12px;
  }
  .testimonial-card {
    padding: 14px 11px 14px 11px;
  }
  .contact-info {
    gap: 8px;
    font-size: 0.99rem;
  }
  .footer-bottom {
    font-size: 0.80rem;
    padding: 11px 0;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 13px;
    padding: 10px 8px;
    font-size: 0.97rem;
  }
  .cookie-modal {
    padding: 14vw 5vw 18vw 5vw;
    min-width: 0;
  }
}

/* FLEX DIRECTION / LAYOUT CORRECTIONS BY BREAKPOINTS */
@media (max-width: 900px) {
  .footer-main {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 992px) {
  .feature-grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .card-container, .content-grid, .contact-info {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .testimonial-card {
    max-width: 98vw;
  }
}
/* =========================
   SCROLLBAR & SELECTION
========================= */
::-webkit-scrollbar {
  width: 8px;
  background: #f5f3ee;
}
::-webkit-scrollbar-thumb {
  background: #d3a466;
  border-radius: 5px;
}
::selection {
  background: #d3a466;
  color: #fff;
}

/* =========================
   MICRO-INTERACTIONS
========================= */
.btn-primary, .btn-secondary,
.cookie-btn, .mobile-menu-toggle,
.mobile-menu-close, .cookie-modal-close {
  transition: all 0.18s cubic-bezier(.47,1.64,.41,.8);
}
.card, .feature-grid li, .testimonial-card {
  transition: box-shadow 0.25s, transform 0.18s;
}

/* =========================
   HIDING ACCESSIBLY
========================= */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* =========================
   OVERLAY MASK FOR MOBILE MENU
========================= */
@media (max-width: 768px) {
  .mobile-menu-mask {
    display: block;
    position: fixed;
    z-index: 129;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(49,38,26,0.36);
    opacity: 1;
    pointer-events: all;
  }
  .mobile-menu.open ~ .mobile-menu-mask {
    opacity: 1;
    pointer-events: all;
  }
}

/* =========================
   ACCESSIBILITY: REDUCE MOTION
========================= */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
