/* -----------------------------
   CSS Reset & Normalization
------------------------------ */
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, menu, 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 {
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background: #F6F1ED;
  color: #563C27;
}
ul, ol {
  list-style: none;
  padding-left: 0;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input[type="button"], input[type="reset"], input[type="submit"] {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
}

/* ----------------------------
   Brand Fonts (Oswald/Roboto)
------------------------------ */
@import url('https://fonts.googleapis.com/css?family=Oswald:400,500,600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  background: #F6F1ED;
  color: #563C27;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', Arial, sans-serif;
  letter-spacing: 0.01em;
  color: #563C27;
}
h1 { font-size: 2.4rem; font-weight: 700; margin-bottom: 24px; }
h2 { font-size: 2rem; font-weight: 600; margin-bottom: 20px; }
h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: 16px; }
h4, h5, h6 { font-weight: 500; }
p, li, span {
  font-size: 1rem;
  color: #563C27;
  line-height: 1.7;
}
strong { font-weight: 700; }
em {font-style: italic;}

/* ------------------------------
   Color Palette Variables
------------------------------- */
:root {
  --color-primary: #563C27;
  --color-secondary: #A57E49;
  --color-accent: #F6F1ED;
  --color-gold: #A57E49;
  --color-gold-light: #cdae7d;
  --color-white: #fff;
  --color-dark: #3c2818;
  --color-success: #3bb77e;
  --color-error: #d32f2f;
  --shadow-elevated: 0 4px 18px 0 rgba(86,60,39,0.10);
  --shadow-soft: 0 2px 8px rgba(86,60,39,0.04);
}

/* ------------------------------
   Layout Helpers
------------------------------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.text-section {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

/* Card Layouts */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-accent);
  box-shadow: var(--shadow-elevated);
  border-radius: 16px;
  padding: 28px 24px;
  min-width: 260px;
  flex: 1 1 300px;
  transition: box-shadow 0.21s cubic-bezier(.4,0,.2,1), transform 0.18s;
  border: 1.5px solid var(--color-gold-light);
}
.card:hover {
  box-shadow: 0 6px 32px 0 rgba(86,60,39,0.18);
  transform: translateY(-8px) scale(1.02);
}

.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;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--color-accent);
  border: 1.5px solid var(--color-gold-light);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(165, 126, 73, 0.13);
}

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

/* ------------------------------
   Navigation & Header
------------------------------- */
header {
  background: var(--color-white);
  border-bottom: 1px solid #e3d2bc;
  box-shadow: 0 2px 8px rgba(165,126,73,0.06);
  position: sticky;
  top: 0;
  z-index: 40;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 20px;
}
header nav {
  display: flex;
  gap: 30px;
}
header nav a {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  transition: color 0.23s;
  color: var(--color-primary);
  padding: 2px 0;
}
header nav a:after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: var(--color-gold);
  border-radius: 2px;
  margin-top: 2px;
  transition: width 0.2s cubic-bezier(.4,0,.2,1);
}
header nav a:hover,
header nav a:focus {
  color: var(--color-gold);
}
header nav a:hover:after,
header nav a:focus:after {
  width: 100%;
}

/* Logo */
header a img {
  height: 42px;
  width: auto;
  display: block;
}

/* Call-to-action in header */
.cta.primary {
  background: linear-gradient(90deg, var(--color-gold), #dcb980);
  color: var(--color-white);
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 12px 28px;
  border-radius: 26px;
  box-shadow: 0 3px 12px rgba(165,126,73,0.13);
  font-weight: 600;
  border: none;
  transition: background 0.23s, color 0.2s, box-shadow 0.18s;
  margin-left: 28px;
}
.cta.primary:hover,
.cta.primary:focus {
  background: var(--color-primary);
  color: var(--color-gold);
  box-shadow: 0 8px 24px rgba(165,126,73,0.20);
}

.cta {
  background: var(--color-gold);
  color: var(--color-white);
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 10px 22px;
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(165,126,73,0.07);
  font-weight: 500;
  border: none;
  display: inline-block;
  transition: background 0.20s, color 0.17s, box-shadow 0.17s, transform 0.13s;
  margin-top: 16px;
}
.cta:hover, .cta:focus {
  background: var(--color-primary);
  color: var(--color-gold);
  box-shadow: 0 5px 18px rgba(86,60,39,.11);
  transform: translateY(-2px) scale(1.025);
}

/* ------------------------
   Burger/Mobile Navigation
------------------------- */
.mobile-menu-toggle {
  display: none;
  background: var(--color-gold);
  color: var(--color-white);
  font-size: 2rem;
  line-height: 1;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  z-index: 103;
  border: none;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-primary);
  color: var(--color-gold);
  outline: none;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  background: rgba(246,241,237,0.98);
  position: fixed;
  top: 0; right: 0;
  left: 0; bottom: 0;
  z-index: 200;
  padding: 0;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.42s cubic-bezier(.39,.58,.57,1), opacity 0.34s cubic-bezier(.39,.58,.57,1);
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  font-size: 2rem;
  background: var(--color-gold);
  color: var(--color-white);
  border-radius: 50%;
  margin: 24px 24px 8px 0;
  width: 42px;
  height: 42px;
  border: none;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
  display: flex;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-primary);
  color: var(--color-gold);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
  background: none;
  width: 100%;
  padding: 32px 32px 0 40px;
  font-size: 1.2rem;
}
.mobile-nav a {
  padding: 14px 0 6px 0;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.16rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: border-color 0.17s, color 0.17s;
  color: #3c2818;
  width: 100%;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--color-gold);
  border-bottom: 2px solid var(--color-gold);
}

@media (max-width: 1024px) {
  header nav,
  header .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* Add a smooth fade shadow to mobile menu as overlay */
.mobile-menu::before {
  content: '';
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(86,60,39,0.13);
  z-index: 199;
  pointer-events: none;
}

/* Hide mobile overlay on desktop */
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* -----------------------------
   Sections & Content Structure
------------------------------ */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  background: var(--color-white);
  position: relative;
}
@media (max-width: 768px) {
  section {
    padding: 26px 7px;
    margin-bottom: 36px;
  }
}

/* Text sections */
.text-section ul {
  list-style: disc inside;
  margin-left: 1.2em;
  margin-bottom: 16px;
}
.text-section ol {
  list-style: decimal inside;
  margin-left: 1.3em;
  margin-bottom: 16px;
}
.text-section ul li, .text-section ol li {
  margin-bottom: 8px;
  font-size: 1rem;
  color: #563C27;
}

/* Map Placeholder */
.map-placeholder {
  border: 1.5px dashed #b89d79;
  border-radius: 12px;
  padding: 20px;
  background: #FCF8F3;
  color: #A57E49;
  font-style: italic;
  font-size: 1.05rem;
  text-align: center;
  margin-top: 16px;
}

/* -----------------------------
   Cards, Grids, Features
------------------------------ */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 36px;
}
.feature-item {
  min-width: 210px;
  max-width: 320px;
  background: #fcf8f3;
  border: 1.5px solid var(--color-gold-light);
  border-radius: 13px;
  box-shadow: 0 2px 8px rgba(86,60,39,0.07);
  padding: 18px 14px;
}

/* For FAQ, Blog tags, Highlighted text */
.tag {
  background: var(--color-gold);
  color: var(--color-white);
  border-radius: 8px;
  font-size: 0.9rem;
  padding: 2px 8px;
  margin-left: 10px;
  display: inline-block;
}

/* -----------------------------
   Testimonials
------------------------------ */
.testimonial-card {
  background: #faf7f4;
  border-left: 6px solid var(--color-gold);
  box-shadow: 0 2px 8px rgba(86,60,39,0.05);
  min-width: 260px;
}
.testimonial-card p {
  font-size: 1.08rem;
  color: #3c2818;
  line-height: 1.7;
}
.testimonial-card span {
  font-size: 1rem;
  color: #7f6645;
}
.testimonial-card strong {
  color: var(--color-primary);
}

/* Accessibility: ensure contrast */
@media (max-width: 768px) {
  .testimonial-card {
    padding: 20px 10px;
  }
}

/* -----------------------------
   Footer
------------------------------ */
footer {
  background: var(--color-white);
  box-shadow: 0 -2px 8px rgba(165,126,73,0.05);
  border-top: 1px solid #e3d2bc;
  padding: 40px 0 24px 0;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer-menu {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 22px;
  justify-content: center;
}
.footer-menu a {
  color: #7c674c;
  font-weight: 500;
  transition: color 0.18s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: var(--color-gold);
  text-decoration: underline;
}
.brand-footer img {
  height: 38px;
  margin-bottom: 16px;
}
.footer-legal {
  font-size: 0.94rem;
  color: #86704f;
  opacity: 0.7;
  letter-spacing: 0.01em;
}

/* ----------------------
   Responsive Structure
------------------------ */
@media (max-width: 950px) {
  .container {
    max-width: 98vw;
    padding: 0 12px;
  }
}
@media (max-width: 768px) {
  header .container {
    height: auto;
    flex-direction: row;
    gap: 12px;
    padding: 8px 12px;
  }
  .content-wrapper {
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .card-container,
  .content-grid,
  .features {
    flex-direction: column;
    gap: 18px;
  }
  .footer-menu,
  .footer-social {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 500px) {
  .container {
    padding: 0 6px;
  }
  .brand-footer img {
    height: 28px;
  }
}

/* ------------------------------
   Micro-interactions & Buttons
------------------------------- */
button, .cta {
  outline: none;
  transition: background 0.2s, color 0.18s, box-shadow 0.13s, transform 0.14s;
}
button:active, .cta:active {
  filter: brightness(0.96);
  transform: scale(0.98);
}

/* Links underline gold on hover */
a:focus, a:hover {
  outline: none;
}
a:focus {
  color: var(--color-gold);
  text-decoration: underline;
}

/* -------------------------------
   Cookie Consent Banner & Modal
-------------------------------- */
#cookie-consent-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 2200;
  width: 100%;
  background: #3c2818;
  color: var(--color-white);
  box-shadow: 0 -2px 16px rgba(86,60,39,0.17);
  padding: 22px 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 30px;
  font-size: 1rem;
  animation: cookieSlideIn 0.6s cubic-bezier(.4,0,.2,1);
}
#cookie-consent-banner span{
  color: white;
}
@keyframes cookieSlideIn {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
#cookie-consent-banner .cookie-buttons {
  display: flex;
  gap: 18px;
}
.cookie-btn {
  background: var(--color-gold);
  color: var(--color-white);
  border-radius: 20px;
  padding: 9px 20px;
  font-size: 1rem;
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 500;
  border: none;
  box-shadow: 0 1px 5px rgba(165,126,73,0.07);
  transition: background 0.18s, color 0.16s;
  cursor: pointer;
}
.cookie-btn.reject {
  background: transparent;
  color: var(--color-gold);
  border: 1.2px solid var(--color-gold);
}
.cookie-btn.settings {
  background: var(--color-accent);
  color: var(--color-primary);
  border: 1.2px solid #eee0c4;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-primary);
  color: var(--color-gold);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--color-gold);
  color: var(--color-white);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #eaddc6;
  color: var(--color-primary);
}
@media (max-width: 768px) {
  #cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 9px;
    gap: 19px;
    font-size: 0.97rem;
  }
}

#cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 3100;
  background: rgba(44,31,16,0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(.4,0,.2,1);
}
#cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
#cookie-modal .cookie-modal-content {
  background: var(--color-white);
  max-width: 400px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(86,60,39,0.20);
  padding: 34px 28px 28px 28px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: modalSlideUp 0.36s cubic-bezier(.4,0,.2,1);
}
@keyframes modalSlideUp {
  0% { transform: translateY(48px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
#cookie-modal h2 {
  font-size: 1.38rem;
  margin-bottom: 6px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.cookie-category label {
  flex: 1 1 auto;
  font-size: 1rem;
  color: #563C27;
}
.cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  background: #eaddc6;
  border-radius: 14px;
  margin-right: 6px;
  transition: background 0.18s;
}
.cookie-toggle input[type='checkbox'] {
  opacity: 0; position: absolute; left: 0; top: 0; width: 100%; height: 100%; cursor: pointer;
}
.cookie-toggle .toggle-slider {
  position: absolute; left: 3px; top: 3px;
  width: 18px; height: 18px;
  background: #b89d79;
  border-radius: 50%;
  transition: left 0.20s, background 0.18s;
}
.cookie-toggle input:checked ~ .toggle-slider {
  left: 23px;
  background: var(--color-gold);
}
.cookie-toggle input:checked ~ .toggle-slider {
  background: var(--color-gold);
}

.cookie-category .desc { font-size: 0.95rem; color: #7e6743; margin-left: 8px; }

.cookie-modal-actions {
  margin-top: 20px;
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}

@media (max-width: 490px) {
  #cookie-modal .cookie-modal-content {
    max-width: 90vw;
    padding: 23px 8px 18px 12px;
  }
}

/* ------------------------------
   Utility and Detail Styles
------------------------------- */
/* Add Gold Accent underline for headings */
h2, h3, h1 {
  position: relative;
  z-index: 2;
  padding-bottom: 7px;
}
h2:after, h1:after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-gold);
  border-radius: 3px;
  margin-top: 13px;
}
h3:after {
  content: '';
  display: block;
  width: 34px;
  height: 2.2px;
  background: var(--color-gold-light);
  border-radius: 2px;
  margin-top: 8px;
}

/* Decorative divider (if needed) */
.divider {
  width: 100px;
  height: 3px;
  margin: 30px auto;
  background: var(--color-gold);
  border-radius: 3px;
}

/* ------------------------------
   Miscellaneous/Details
------------------------------- */
::-webkit-scrollbar {
  width: 9px;
  background: #F6F1ED;
}
::-webkit-scrollbar-thumb {
  background: var(--color-gold-light);
  border-radius: 8px;
}

input, textarea, select {
  border: 1.2px solid #dfd6c3;
  border-radius: 5px;
  padding: 10px 12px;
  background: var(--color-accent);
  font-family: inherit;
  margin-bottom: 12px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--color-gold);
}

hr {
  border: 0; 
  height: 1px;
  background: #dfd3bd;
  margin: 32px 0;
}

/* Contact/Blog specifics */
.text-section em {
  color: #a57e49;
  font-style: italic;
}

/* ------------------------------
   Accessibility
------------------------------- */
:focus-visible {
  outline: 2px solid var(--color-gold) !important;
  outline-offset: 2px;
}

/* ------------------------------
   Hide cookie/modal by default
------------------------------- */
#cookie-consent-banner,
#cookie-modal { display: none; }
#cookie-consent-banner.active { display: flex; }
#cookie-modal.active { display: flex; }
