/* ===================== Soprasciol Braunschweig Elegant Classic CSS ========================== */
/* RESET & BASELINE */
html {
  box-sizing: border-box;
  font-size: 16px;
  background: #f7f5f1;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Arial', serif;
  color: #42392c;
  background: #f7f5f1;
  line-height: 1.7;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  padding-left: 1.3em;
  margin-bottom: 1em;
}
ul li, ol li {
  margin-bottom: 0.5em;
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: #42392c;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #be9c65;
}

/* TYPE-HIERARCHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', 'Times New Roman', Times, serif;
  color: #2e2415;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.15;
}
h1 { font-size: 2.625rem; letter-spacing: 0.01em; }
h2 { font-size: 2rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
h5, h6 { font-size: 1rem; }
.subheadline {
  font-size: 1.125rem;
  color: #745c35;
  margin-bottom: 18px;
  font-style: italic;
  font-family: 'Arial', serif;
}
p, address {
  margin-bottom: 16px;
  font-size: 1rem;
  color: #453a29;
}
strong {
  color: #322710;
  font-weight: bold;
}

/* ============= LAYOUT CONTAINERS ============== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
}
.text-section {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 0 10px 0;
}
/* Section Spacing Pattern */
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
  background: transparent;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

@media (max-width: 768px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  section, .section {
    padding: 24px 0;
    margin-bottom: 34px;
  }
}

/* =================== HEADER & NAVIGATION ================== */
header {
  background: #fffbed;
  border-bottom: 1px solid #e3dac7;
  box-shadow: 0 2px 8px 0 rgba(190,156,101,0.03);
  position: sticky;
  top: 0;
  z-index: 80;
}
header nav {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-content: space-between;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 20px 18px 20px;
}
header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
}
header nav ul li {
  margin-bottom: 0;
}
header nav a img {
  height: 38px;
  display: block;
}
/* Main Navigation Links */
header nav ul li a {
  font-family: 'Merriweather', 'Times New Roman', serif;
  font-size: 1rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  color: #42392c;
  transition: border 0.2s, color 0.2s;
}
header nav ul li a:hover, header nav ul li a:focus {
  color: #be9c65;
  border-bottom: 2px solid #be9c65;
}

/* CTA Button in Nav */
.cta-btn {
  display: inline-block;
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  background: #be9c65;
  color: #fff;
  padding: 12px 32px;
  border-radius: 32px;
  border: none;
  box-shadow: 0 4px 14px 0 rgba(66,57,44,0.07);
  transition: background 0.18s, color 0.15s, box-shadow 0.22s;
  letter-spacing: 0.03em;
  font-weight: 600;
  text-shadow: 0 1px 0 rgba(80,60,10,0.07);
  cursor: pointer;
  margin-left: 18px;
}
.cta-btn:hover, .cta-btn:focus {
  background: #42392c;
  color: #fffbed;
  box-shadow: 0 4px 24px 0 rgba(66,57,44,0.13);
}

/* =================== MOBILE NAVIGATION =================== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #42392c;
  cursor: pointer;
  margin-left: 18px;
  z-index: 120;
}

@media (max-width: 992px) {
  header nav ul,
  header nav .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(248,244,234, 0.95);
  box-shadow: -2px 0 24px 0 rgba(66,57,44,0.16);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0 0 0 0;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.75,0,0.25,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  color: #42392c;
  font-size: 2.2rem;
  border: none;
  padding: 28px 28px 0 0;
  cursor: pointer;
  z-index: 201;
  align-self: flex-end;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #be9c65;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 30px 48px;
  margin-top: 16px;
}
.mobile-nav a {
  font-family: 'Merriweather', serif;
  color: #42392c;
  font-size: 1.15rem;
  padding: 10px 0;
  transition: color 0.2s;
  border-bottom: 1px solid #e3dac7;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #be9c65;
}

/* =================== HERO & MAIN CTA ================== */
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}
.content-wrapper > h1, .content-wrapper > h2 {
  margin-bottom: 10px;
}
.content-wrapper .cta-btn {
  margin: 22px 0 0 0;
}

/* ================== FEATURES & CARDS ================== */
.features-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 8px;
  padding-left: 0;
}
.features-list li {
  background: #fffbed;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(190,156,101,0.04);
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 1 265px;
  min-width: 220px;
  max-width: 310px;
  font-size: 1.05rem;
  margin-bottom: 20px;
  transition: box-shadow 0.23s, transform 0.18s;
  position: relative;
}
.features-list li img {
  height: 38px;
  width: 38px;
  margin-bottom: 4px;
}
.features-list li strong {
  font-size: 1.1rem;
  color: #422c14;
  margin-bottom: 3px;
  font-family: 'Merriweather', serif;
}
.features-list li:hover, .features-list li:focus-within {
  box-shadow: 0 4px 18px 0 rgba(66,57,44,0.11);
  transform: translateY(-5px) scale(1.02);
  z-index: 3;
}

@media (max-width: 900px) {
  .features-list {
    flex-direction: column;
    gap: 16px;
  }
  .features-list li {
    min-width: 0;
    max-width: none;
    width: 100%;
    padding: 18px 16px;
  }
}

/* =========== CARD CONTAINER ========== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  border-radius: 16px;
  background: #f9f7ee;
  box-shadow: 0 2px 10px 0 rgba(66,57,44,0.06);
  padding: 18px 20px;
  position: relative;
  transition: box-shadow 0.18s, transform 0.15s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 18px 0 rgba(66,57,44,0.13);
  transform: translateY(-2px) scale(1.01);
  z-index: 2;
}

/* ========== CONTENT GRID ========== */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
@media (max-width: 850px) {
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}

/* ========== TEXT-IMAGE SECTION ========== */
.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;
  }
}

/* ========== TESTIMONIAL CARDS ========== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fffbed;
  border-left: 5px solid #be9c65;
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px 0 rgba(190,156,101,0.09);
  font-size: 1.02rem;
  flex-direction: column;
  align-items: flex-start;
  max-width: 630px;
  color: #2c2114;
}
.testimonial-card p {
  margin: 0 0 10px 0;
  color: #2c2114;
}
.testimonial-card span {
  opacity: 0.7;
  font-style: italic;
  font-size: 0.99rem;
  color: #726047;
}
@media (max-width:650px) {
  .testimonial-card {
    padding: 16px;
    max-width: 100%;
  }
}

/* ========== FOOTER ========== */
footer {
  background: #42392c;
  color: #e4d5b7;
  padding: 36px 0 20px 0;
  font-size: 1rem;
  margin-top: 40px;
}
footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  list-style: none;
  justify-content: center;
  margin: 0 0 12px 0;
}
footer ul li a {
  color: #e4d5b7;
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  opacity: 0.9;
  transition: color 0.17s, opacity 0.2s;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
footer ul li a:hover, footer ul li a:focus {
  color: #be9c65;
  opacity: 1;
  border-bottom: 2px solid #be9c65;
}
footer address {
  color: #e5dac4;
  font-style: normal;
  text-align: center;
  font-size: 1rem;
  margin-bottom: 0;
  margin-top: 7px;
}
@media (max-width: 600px) {
  footer ul {
    gap: 16px;
    font-size: 0.98rem;
  }
  footer {
    padding: 18px 0 14px 0;
  }
}

/* ================== COOKIE CONSENT BANNER =================== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background: #fffbed;
  color: #3e3221;
  box-shadow: 0 -4px 26px 0 rgba(66,57,44,0.12);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 22px;
  padding: 24px 32px;
  z-index: 500;
  font-size: 1.01rem;
  border-top: 1px solid #eadcbc;
  opacity: 1;
  transition: opacity 0.25s cubic-bezier(0.55,0.1,0.48,1);
}
.cookie-consent-banner.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-consent-banner p {
  margin-bottom: 0;
  color: #433a2c;
}
.cookie-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.cookie-btn {
  border: none;
  border-radius: 34px;
  font-family: 'Merriweather', serif;
  padding: 10px 30px;
  font-size: 1rem;
  cursor: pointer;
  margin: 0;
  background: #be9c65;
  color: #fffbed;
  font-weight: bold;
  box-shadow: 0 1px 4px #e7e1d0;
  transition: background 0.16s, box-shadow 0.18s, color 0.17s;
}
.cookie-btn.settings {
  background: #f3efde;
  color: #42392c;
  border: 1px solid #d5c5a7;
}
.cookie-btn.reject {
  background: #e0ccc0;
  color: #42392c;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #42392c;
  color: #fffbed;
}
@media (max-width: 650px) {
  .cookie-consent-banner {
    flex-direction: column;
    gap: 14px;
    padding: 16px 8px;
    font-size: 0.95rem;
  }
  .cookie-btn-group {
    gap: 10px;
    flex-direction: column;
    width: 100%;
  }
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 999;
  inset: 0;
  background: rgba(68,54,32,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in-modal 0.22s cubic-bezier(0.54,0.05,0.35,1);
}
@keyframes fade-in-modal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fffbed;
  color: #34291a;
  padding: 38px 32px;
  border-radius: 18px;
  box-shadow: 0 4px 32px 0 rgba(66,57,44,0.19);
  min-width: 270px;
  max-width: 98vw;
  max-height: 95vh;
  overflow-y: auto;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: modal-slidein 0.27s cubic-bezier(.48,.43,.16,.98);
  position: relative;
}
@keyframes modal-slidein {
  from { transform: translateY(48px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  right: 22px;
  top: 18px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #be9c65;
  cursor: pointer;
  transition: color 0.17s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #42392c;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-cat {
  padding: 16px 10px;
  background: #f4eee1;
  border-radius: 8px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  font-size: 1rem;
  border: 1px solid #e7dcc2;
}
.cookie-cat-title {
  font-family: 'Merriweather', serif;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0;
  color: #3e3221;
}
.cookie-cat-desc {
  font-size: 0.97rem;
  color: #7c6b56;
}
.toggle-switch {
  min-width: 38px;
  height: 22px;
  background: #d6c3a7;
  border-radius: 22px;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.16s;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #be9c65;
  box-shadow: 0 1px 6px 0 rgba(190,156,101,0.13);
  transition: left 0.19s, background 0.22s;
}
.toggle-switch input:checked + .toggle-slider {
  left: 18px;
  background: #be9c65;
  border-color: #42392c;
}
.toggle-switch[aria-disabled="true"] {
  background: #e2d4c0;
  cursor: not-allowed;
  opacity: 0.77;
}
.toggle-switch[aria-disabled="true"] .toggle-slider {
  background: #f7edd7;
  border-color: #ccb383;
}

/* =================== FORM ELEMENTS ================== */
input, select, textarea {
  font-family: 'Arial', serif;
  font-size: 1rem;
  padding: 10px 13px;
  border-radius: 8px;
  border: 1px solid #be9c65;
  background: #fffbed;
  margin-bottom: 16px;
  width: 100%;
  transition: border-color 0.17s, box-shadow 0.16s;
  color: #42392c;
}
input:focus, select:focus, textarea:focus {
  border-color: #42392c;
  outline: none;
  box-shadow: 0 2px 8px rgba(66,57,44,0.08);
}
label {
  display: block;
  margin-bottom: 4px;
  font-family: 'Merriweather', serif;
  color: #372d18;
  font-size: 1.04rem;
}
button {
  font-family: 'Merriweather', serif;
}

/* =========== MISC SPACING & PATTERNS =========== */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Ensure minimum spacing between cards/sections */
.card + .card, .testimonial-card + .testimonial-card, .section + .section, section + section, .features-list li + li, .content-wrapper + .content-wrapper {
  margin-top: 24px;
}

/* Responsive for layouts */
@media (max-width: 850px) {
  .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
}

/* ========== VISUAL MICRO-INTERACTIONS ============= */
.card, .features-list li, .testimonial-card, .cta-btn, .cookie-btn, .mobile-menu, .cookie-consent-banner {
  transition: box-shadow 0.18s cubic-bezier(0.65,0,0.35,1), background 0.14s, color 0.17s, transform 0.14s;
}

/* ========== RESPONSIVE TYPOGRAPHY =========== */
@media (max-width: 600px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.17rem; }
  .cta-btn, .cookie-btn {
    font-size: 0.98rem;
    padding: 10px 20px;
  }
}

/* ========== UTILITIES ============ */
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 20px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 20px !important; }
.text-center { text-align: center; }

/* ================= BRAND FOCUSED COLOURS FOR ACCENTS =================== */
.bg-primary { background: #42392c !important; color: #fffbed !important; }
.bg-secondary { background: #be9c65 !important; color: #fffbed !important; }
.text-accent { color: #be9c65 !important; }

/* =================== PRINT OPTIMIZATION ================== */
@media print {
  header, .mobile-menu, .cookie-consent-banner, .cookie-modal, footer {
    display: none !important;
  }
  main, section, .content-wrapper {
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
    color: #111 !important;
  }
}
