/* ========== CSS RESET & BASE STYLES ========== */
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,main,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 {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
:root {
  --primary: #3A4843;
  --secondary: #A57B54;
  --accent: #F4EFE8;
  --cream-light: #F9F5F0;
  --brown-dark: #4D372F;
  --brown-mid: #A57B54;
  --sage: #7F9471;
  --shadow: rgba(58,72,67,0.09);
  --radius: 12px;
  --header-height: 82px;
}
html {
  scroll-behavior: smooth;
  background-color: var(--accent);
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: var(--primary);
  line-height: 1.6;
  background-color: var(--accent);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
@media (max-width: 768px) {
  body { font-size: 15px; }
}

/* ========== FONTS ========== */
h1, h2, h3, h4 { font-family: 'Merriweather', Georgia, serif; font-weight: 700; }
h1 { font-size: 2.75rem; letter-spacing: -1px; color: var(--brown-dark); margin-bottom: 24px; }
h2 { font-size: 2rem; color: var(--secondary); margin-bottom: 20px; }
h3 { font-size: 1.25rem; color: var(--primary); margin-bottom: 12px; }
h4 { font-size: 1rem; text-transform: uppercase; font-weight: 700; color: var(--brown-mid); letter-spacing: 1.5px; margin-bottom: 12px; }
p, ul, ol, li, span, a, blockquote { font-family: 'Roboto', Arial, sans-serif; font-weight: 400; }
p { font-size: 1rem; margin-bottom: 14px; }
blockquote { font-size: 1.1rem; font-style: italic; border-left: 4px solid var(--secondary); background: var(--cream-light); padding: 12px 16px; margin-bottom: 10px; border-radius: 6px; color: var(--primary); }
ul, ol { padding-left: 24px; margin-bottom: 14px; }
li { margin-bottom: 8px; }
strong { font-weight: 700; }
a {
  color: var(--secondary);
  transition: color 0.2s;
  text-underline-offset: 2px;
}
a:hover, a:focus {
  color: var(--primary);
}
img { max-width: 100%; height: auto; display: inline-block; border-radius: 6px; }

/* Vintage Fonts (Fallback for special elements) */
.vintage-font, footer h4, .cta {
  font-family: 'Merriweather', Georgia, serif;
  letter-spacing: 1px;
}

/* ========== LAYOUT/CONTAINERS ========== */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}

main {
  min-height: 600px;
  background: var(--accent);
}

/* Section spacing rules */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  section { padding: 30px 7px; margin-bottom: 40px; }
}

.content-wrapper {
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 4px 20px var(--shadow);
  padding: 36px 30px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.text-section {
  background: var(--cream-light);
  border-left: 7px solid var(--secondary);
  border-radius: var(--radius);
}

/* ========== FLEXBOX PATTERNS ========== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px var(--shadow);
  padding: 28px 20px;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  max-width: 370px;
  transition: box-shadow 0.19s;
}
.card:hover {
  box-shadow: 0 8px 26px rgba(58,72,67,0.16);
}

.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: 20px; }
  .content-wrapper { padding: 20px 10px; }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--cream-light);
  border-radius: var(--radius);
  border-left: 4px solid var(--secondary);
  margin-bottom: 20px;
  box-shadow: 0 2px 8px var(--shadow);
  transition: background 0.18s;
}
.testimonial-card:hover {
  background: #fff8ee;
}
.testimonial-card span {
  font-size: 0.94rem;
  color: var(--brown-dark);
  font-style: italic;
  margin-left: 4px;
}

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

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  margin-top: 20px;
}
.footer-columns > div {
  flex-basis: 180px;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
footer {
  background: var(--primary);
  color: #fff;
  padding: 50px 0 32px 0;
  margin-top: 32px;
  font-size: 1rem;
}
footer a {
  color: #fff;
  text-decoration: underline;
  transition: color 0.2s;
}
footer a:hover {
  color: var(--secondary);
}
footer h4 { font-size: 1.08rem; color: var(--accent); margin-bottom: 7px; }
footer img { max-width: 110px; margin-bottom: 8px; }

@media (max-width: 990px) {
  .footer-columns { gap: 18px; }
  .footer-columns > div { flex-basis: 44%; min-width: 110px; }
}
@media (max-width: 768px) {
  .footer-columns { flex-direction: column; gap: 15px; }
  .footer-columns > div { flex-basis: auto; min-width: unset; }
  footer { padding: 40px 0 18px 0; }
}

/* ========== HEADER & NAVIGATION ========== */
header {
  background: #fff8ee url('data:image/svg+xml;utf8,<svg width="40" height="12" viewBox="0 0 120 12" fill="none"><rect opacity="0.12" y="10" width="120" height="2" rx="1" fill="%233A4843"/></svg>') repeat-x bottom;
  box-shadow: 0 2px 16px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}
header img[alt="Rustic Realm"] { max-height: 62px; border-radius: 0; }
nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
nav a {
  color: var(--primary);
  font-family: 'Merriweather', serif;
  font-weight: 600;
  font-size: 1.08rem;
  text-decoration: none;
  position: relative;
  transition: color 0.18s;
  padding: 4px 8px;
}
nav a:after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: var(--secondary);
  transition: width 0.18s;
  border-radius: 2px;
  margin-top: 2px;
}
nav a:hover,
nav a:focus {
  color: var(--secondary);
}
nav a:hover:after,
nav a:focus:after {
  width: 65%;
}

/* Hide mobile nav on desktop */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--secondary);
  cursor: pointer;
  padding: 8px 16px;
  margin-left: 18px;
  border-radius: 8px;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--cream-light);
}

@media (max-width: 930px) {
  nav { display: none; }
  .mobile-menu-toggle { display: inline-block; }
  header .container { gap: 10px; }
}

/* ========== BURGER MENU (Mobile Navigation) ========== */
.mobile-menu {
  position: fixed;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  z-index: 2000;
  background: rgba(58, 72, 67, 0.98);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.33,1,0.68,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  display: block;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  margin: 24px 0 0 20px;
  cursor: pointer;
  align-self: flex-start;
  padding: 8px;
  transition: background 0.18s;
  border-radius: 40px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: 48px 0 0 34px;
  width: calc(100vw - 40px);
}
.mobile-nav a {
  color: #fff;
  font-family: 'Merriweather', serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  background: transparent;
  padding: 8px 8px 6px 0;
  border-radius: 0;
  transition: color 0.17s, background 0.15s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--brown-mid);
  color: #fff;
}

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

/* Ensure touch areas for mobile nav are large enough */
.mobile-nav a {
  min-height: 44px;
  line-height: 1.2;
}

/* ========== BUTTONS & CTA ========== */
.cta, .button, button, input[type="submit"] {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.13rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 14px 32px;
  margin: 12px 0 0 0;
  box-shadow: 0 2px 8px var(--shadow);
  cursor: pointer;
  letter-spacing: 1px;
  transition: background 0.13s, color 0.2s, box-shadow 0.13s;
  outline: none;
  display: inline-block;
  position: relative;
}
.cta.primary { background: var(--primary); color: #fff; }
.cta.secondary { background: var(--accent); color: var(--primary); border: 2px solid var(--secondary); }
.cta.secondary:hover, .cta.secondary:focus { background: var(--secondary); color: #fff; }
.cta:active, .cta:focus {
  box-shadow: 0 4px 18px rgba(58,72,67,0.18);
}
.cta:hover {
  background: var(--brown-dark);
  color: #fff;
}

/* ========== LISTS & ICONS ========== */
ul li img, ul li svg {
  display: inline-block;
  height: 1.3em;
  width: auto;
  margin-right: 7px;
  vertical-align: middle;
}
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 32px 0 18px 0;
}
.service-item {
  background: var(--cream-light);
  padding: 25px 20px;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-width: 220px;
  max-width: 320px;
  flex-grow: 1;
  transition: box-shadow 0.18s, background 0.18s;
  align-items: flex-start;
}
.service-item span { font-weight: 700; font-size: 1.02rem; color: var(--brown-mid); }
.service-item:hover {
  background: #fff8ee;
  box-shadow: 0 6px 22px rgba(58,72,67,0.16);
}
@media (max-width: 850px) {
  .service-list { gap: 14px; }
  .service-item { min-width: 180px; max-width: 98vw; }
}
@media (max-width: 620px) {
  .service-list { flex-direction: column; }
  .service-item { width: 100%; max-width: 100%; }
}

/* ========== FAQ LISTS & OTHERS ========== */
.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 28px 0 8px 0;
}
.faq-list > div {
  border-radius: var(--radius);
  background: var(--cream-light);
  padding: 18px 17px;
  min-width: 200px;
  max-width: 360px;
  box-shadow: 0 2px 8px var(--shadow);
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ========== SPACING AND TYPOGRAPHY UTILITIES ========== */
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mb-8 { margin-bottom: 8px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mt-16 { margin-top: 16px !important; }
.mt-24 { margin-top: 24px !important; }

/* ========== MICROINTERACTIONS & EFFECTS ========== */
.card, .testimonial-card, .service-item, .cta, .button, .mobile-menu, .cookie-banner, .cookie-modal {
  transition: box-shadow 0.18s, background 0.18s, color 0.16s, transform 0.2s;
}
.card:active, .service-item:active {
  transform: translateY(2px) scale(0.98);
}

h2, h3, h4 { position: relative; }
h2:before, h3:before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 8px;
  background: var(--secondary);
  border-radius: 10px 10px 0 0;
  margin-right: 9px;
  vertical-align: middle;
  opacity: 0.18;
}

/* ========== MOBILE OVERRIDES ========== */
@media (max-width: 570px) {
  header .container { padding: 6px 8px; }
  .content-wrapper { padding: 13px 4px; }
  section { padding: 16px 2px; }
}

/* ========== COOKIE CONSENT BANNER & MODAL ========== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--brown-mid);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 22px 14px 17px 14px;
  z-index: 5000;
  font-size: 1rem;
  box-shadow: 0 -3px 12px rgba(58,72,67,0.11);
  animation: slideInUp 0.55s cubic-bezier(.23,1.32,.51,.84);
  border-radius: 8px 8px 0 0;
}
.cookie-banner__text {
  flex: 1 1 220px;
  max-width: 540px;
  font-size: 1rem;
  margin-bottom: 7px;
}
.cookie-banner__buttons {
  display: flex;
  flex-direction: row;
  gap: 11px;
  align-items: center;
}
.cookie-banner button {
  font-family: 'Merriweather', serif;
  text-transform: uppercase;
  border: none;
  padding: 8px 22px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 1rem;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  margin: 0 0 0 0;
  transition: background .17s;
  box-shadow: 0 2px 8px var(--shadow);
}
.cookie-reject {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.cookie-settings {
  background: var(--secondary);
  color: #fff;
}
.cookie-banner button:hover,
.cookie-banner button:focus {
  background: var(--cream-light);
  color: var(--primary);
}
.cookie-settings:hover,
.cookie-settings:focus {
  background: var(--primary);
  color: #fff;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 6px;
    font-size: 0.95rem;
    padding: 15px 2px;
  }
  .cookie-banner__buttons { flex-direction: column; gap: 8px; }
}
@keyframes slideInUp {
  from { transform: translateY(66px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  z-index: 6000;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(40, 34, 29, 0.76);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s;
}
.cookie-modal.open {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal__content {
  background: #fffaf4;
  color: var(--primary);
  padding: 42px 33px 37px 33px;
  border-radius: 18px;
  min-width: 300px;
  max-width: 97vw;
  box-shadow: 0 6px 38px rgba(58,72,67,0.24);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: modalPopIn 0.45s cubic-bezier(.22,1.21,.56,.91);
}
@keyframes modalPopIn {
  from { transform: scale(0.89) translateY(48px); opacity: 0.48; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal__close {
  position: absolute;
  top: 11px; right: 13px;
  background: none;
  border: none;
  color: var(--brown-mid);
  font-size: 1.7rem;
  cursor: pointer;
  border-radius: 50%;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.17s;
}
.cookie-modal__close:hover { background: var(--cream-light); color: var(--primary); }
.cookie-category {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
}
.cookie-category label {
  font-size: 1.08rem;
  margin-left: 3px;
}
.cookie-category input[type="checkbox"] {
  width: 19px; height: 19px;
  border-radius: 5px;
  accent-color: var(--secondary);
}
.cookie-switch {
  display: inline-block;
  width: 42px;
  height: 24px;
  position: relative;
  margin-right: 9px;
}
.cookie-switch input {
  display: none;
}
.cookie-switch .slider {
  position: absolute;
  cursor: pointer;
  background: var(--cream-light);
  border-radius: 19px;
  top: 0; left: 0; width: 42px; height: 23px;
  transition: background 0.18s;
  border: 1.5px solid var(--secondary);
}
.cookie-switch input:checked + .slider {
  background: var(--secondary);
}
.cookie-switch .slider:before {
  content: '';
  position: absolute;
  height: 17px;
  width: 17px;
  left: 3px; top: 2.3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s;
  box-shadow: 0 1px 3px var(--shadow);
}
.cookie-switch input:checked + .slider:before {
  transform: translateX(18px);
}
.cookie-modal__actions {
  display: flex;
  gap: 11px;
  justify-content: flex-end;
  margin-top: 15px;
}
.cookie-modal__actions button {
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 7px;
}
.cookie-modal__category-desc {
  color: var(--primary);
  font-size: 0.97rem;
  margin-left: 2px;
}

/* ========== ACCESSIBILITY ========== */
a, button, input, textarea, .cta {
  outline-color: var(--secondary);
  outline-width: 2px;
  outline-style: solid;
  outline-offset: 2px;
}
a:focus-visible, button:focus-visible, .cta:focus-visible { background: var(--cream-light); }

/* ========== RETRO DETAILS & PATTERNS ========== */
body, main, section, .content-wrapper, .card, .testimonial-card, .service-item {
  background-image: repeating-linear-gradient( -20deg, #fff8ee 0 2px, transparent 2px 16px), repeating-linear-gradient(-90deg, #ece1d0 0 1.2px, transparent 1.2px 14px);
  background-blend-mode: lighten, normal;
  background-repeat: repeat;
  background-size: auto;
}
.card, .service-item {
  border: 1.6px solid #e6dac9;
  box-shadow: 0 2px 9px var(--shadow);
}
.testimonial-card {
  background: var(--cream-light) url('data:image/svg+xml;utf8,<svg width="70" height="10" viewBox="0 0 70 10" fill="none"><ellipse cx="35" cy="5" rx="35" ry="5" fill="%23fff8ee"/><ellipse cx="30" cy="5" rx="25" ry="3" fill="%23f9f5f0"/></svg>') repeat-x right top;
  background-size: 160px 17px;
}

/* Subtle retro corners */
.card, .service-item, .testimonial-card {
  border-radius: 18px 9px 18px 9px/13px 21px 13px 21px;
  transition: border-color 0.2s;
}
.card:hover, .service-item:hover, .testimonial-card:hover {
  border-color: var(--secondary);
}

/* ========== RETRO BADGES/ICONS ========== */
ul li::before {
  content: '\2022';
  color: var(--secondary);
  font-size: 1.3em;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
  margin-right: 7px;
}
ul li img, ul li svg { margin-left: -7px !important; margin-right: 7px !important; }

/* ========== MISC ========== */
::-webkit-scrollbar {
  width: 13px;
  background: var(--accent);
}
::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 7px;
}

hr {
  border: none; height: 2px;
  background: var(--secondary);
  opacity: 0.12;
  margin: 30px 0 24px 0;
  border-radius: 2px;
}

/* ========== PRINT FIX ========== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  section, .container { background: #fff; box-shadow: none !important; padding: 0; }
}
