/* =======================================================
   CSS RESET & BASE VARIABLES (SCANDINAVIAN CLEAN THEME)
   ======================================================= */
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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #FAF9F6;
  color: #403218;
}
ol, ul {
  list-style: none;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; border: 0; }
input, button, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
button { cursor: pointer; background: none; }
*, *:before, *:after {
  box-sizing: border-box;
}

/* ===== Variables for Brand Colors & Font Fallbacks ===== */
:root {
  --primary: #725F40;
  --secondary: #CBA977;
  --accent: #EFE7DA;
  --surface: #FFFFFF;
  --border: #E3DDD2;
  --contrast-text: #222218;
  --subtle-text: #7a7157;
  --shadow: 0 4px 16px 0 rgba(120,108,89,0.07);
  --radius: 12px;
  --radius-s: 6px;
  --focus-outline: 2px solid var(--secondary);
  --transition: 0.25s cubic-bezier(0.44,0.13,0.48,0.87);
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  background-color: #FAF9F6;
  color: var(--contrast-text);
  font-size: 16px;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', 'Georgia', serif;
  color: var(--primary);
  font-weight: 700;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; letter-spacing: -1px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
.section h2 { margin-bottom: 24px; }

p, ul, ol {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--contrast-text);
  font-size: 1rem; /* 16px */
  margin-bottom: 16px;
  line-height: 1.7;
}

strong { font-weight: 600; color: var(--primary); }

::selection {
  background: var(--secondary);
  color: #fff;
}

/* =============================================
   LAYOUT – CONTAINER & FLEX STRUCTURE
   ============================================= */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* -- Section spacing & containers-- */
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
  /* .section selector provided as well in case of deeper overrides */
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

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

/* =============================================
   HEADER & NAVIGATION
   ============================================= */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px 0 rgba(114, 95, 64, 0.03);
  position: sticky;
  top: 0;
  z-index: 1002;
}
header .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}
header a img {
  height: 46px;
  margin-right: 32px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  flex-grow: 1;
}
header nav a {
  position: relative;
  font-weight: 500;
  color: var(--primary);
  font-size: 1rem;
  transition: color var(--transition);
  padding: 6px 0;
}
header nav a:hover,
header nav a:focus {
  color: var(--secondary);
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  font-family: 'Merriweather', serif;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: none;
  margin-left: 24px;
  box-shadow: 0 2px 8px 0 rgba(173,153,119,0.06);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  letter-spacing: 0.01em;
  outline: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 4px 16px 0 rgba(173, 153, 119,0.15);
}
.btn-secondary {
  background: var(--accent);
  color: var(--primary);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 4px 16px 0 rgba(173, 153, 119,0.15);
}

header .btn-primary { margin-left: auto; margin-right: 0; }

.mobile-menu-toggle {
  display: none;
  padding: 8px 16px;
  font-size: 2.1rem;
  color: var(--primary);
  background: transparent;
  border: none;
  margin-left: 14px;
  border-radius: var(--radius-s);
  transition: background var(--transition);
  z-index: 1004;
}
.mobile-menu-toggle:focus {
  outline: var(--focus-outline);
}

/*****
 MOBILE MENU
*****/
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(239,231,218,0.97);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.56,0.08,0.36,0.99), opacity 0.27s;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
  box-shadow: 0 6px 32px 0 rgba(114, 95, 64, 0.10);
}
.mobile-menu-close {
  position: absolute;
  right: 22px;
  top: 26px;
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 2.2rem;
  padding: 8px 10px;
  border-radius: var(--radius-s);
  transition: background var(--transition);
  z-index: 2010;
}
.mobile-menu-close:focus {
  outline: var(--focus-outline);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 76px;
  margin-left: 38px;
}
.mobile-nav a {
  font-size: 1.3rem;
  color: var(--primary);
  font-family: 'Merriweather', serif;
  padding: 12px 0;
  border-radius: var(--radius-s);
  transition: background var(--transition), color var(--transition);
  min-width: 180px;
  min-height: 32px;
  outline: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: #fff;
}

/*****
  MAIN LAYOUT
*****/
main {
  background: none;
}

.section, section {
  background: none;
  border-radius: var(--radius);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 24px 0 rgba(114,95,64,0.10);
  transform: translateY(-2px) scale(1.01);
}

.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 {
  background: var(--accent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px 0 rgba(114,95,64,0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  margin-bottom: 20px;
  max-width: 540px;
  min-width: 240px;
  color: var(--contrast-text);
  transition: box-shadow var(--transition), border var(--transition);
}
.testimonial-card strong {
  color: var(--primary);
}
.testimonial-card div:last-child { /* For star ratings */
  color: var(--secondary);
  font-size: 1.18em;
  letter-spacing: 2px;
  font-family: 'Merriweather', serif;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px 0 rgba(114,95,64,0.14);
  border: 1.5px solid var(--secondary);
}

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

/*****
  FAQ ACCORDION & TABLES
*****/
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.faq-accordion h3 {
  font-size: 1.17rem;
  margin-bottom: 5px;
  cursor: pointer;
  position: relative;
  color: var(--primary);
}
.faq-accordion p {
  color: var(--contrast-text);
}

/* Table Style */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 1rem;
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px 0 rgba(173,153,119,0.04);
}
thead tr {
  background: var(--accent);
}
th, td {
  padding: 14px 16px;
  text-align: left;
}
th {
  color: var(--primary);
  font-family: 'Merriweather', serif;
  font-size: 1.03rem;
  border-bottom: 1.5px solid var(--border);
}
td {
  color: var(--contrast-text);
  border-bottom: 1px solid var(--border);
}
tbody tr:last-child td {
  border-bottom: none;
}

/*****
  FOOTER
*****/
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--subtle-text);
  font-size: 0.96rem;
  padding: 38px 0 24px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: var(--primary);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1em;
  transition: color var(--transition);
}
.footer-links a:hover, .footer-links a:focus {
  color: var(--secondary);
}
.footer-branding {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  color: var(--subtle-text);
  font-size: 0.98em;
}
.footer-branding img {
  height: 38px;
}

/* === Responsive FLEX Direction Switch for Content === */
@media (max-width: 768px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  header .container {
    flex-direction: row;
    gap: 10px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  header nav {
    display: none;
  }
  .btn-primary, .btn-secondary {
    margin-left: 0;
    margin-top: 0;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .footer-branding {
    margin-top: 34px;
  }
  .content-wrapper, .section, section {
    padding-left: 0;
    padding-right: 0;
  }
  .content-wrapper {
    gap: 16px;
  }
  .testimonial-card {
    padding: 16px 12px;
    max-width: 100%;
  }
  .card {
    padding: 16px 10px;
  }
  .content-grid,
  .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}

/* Extra small screens (<=500px) */
@media (max-width: 500px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.06rem; }
  .btn-primary, .btn-secondary {
    font-size: 1rem;
    padding: 10px 15px;
  }
  section, .section {
    padding: 28px 3px 0 3px;
    margin-bottom: 36px;
  }
}

/*****
  SPACING & FLEX TUNING
*****/
section, .section {
  margin-bottom: 60px;
  padding-top: 40px;
  padding-bottom: 0;
}
.card, .testimonial-card {
  margin-bottom: 20px;
}
.content-grid, .card-container, .faq-accordion {
  gap: 20px;
}
.text-image-section, .feature-item, .testimonial-card {
  gap: 20px;
}

/* Add additional spacing between content cards/sections */
.card + .card,
.testimonial-card + .testimonial-card,
.section + .section,
section + section {
  margin-top: 20px;
}

/*****
  TYPOGRAPHY SCALE & LISTS
*****/
ul, ol {
  margin-bottom: 18px;
  padding-left: 20px;
}
ul li, ol li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 0;
  line-height: 1.7;
}
ul li:before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 13px;
  border-radius: 50%;
  background: var(--secondary);
  vertical-align: middle;
  margin-bottom: 1px;
}
/* Only add dots for ul, not ol */
ol li:before { display: none; }

a {
  color: var(--primary);
  text-decoration: underline dotted rgba(203,169,119,0.25);
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--secondary);
}

/*****
  FORMS & INPUTS
*****/
input, textarea, select {
  min-width: 220px;
  padding: 9px 12px;
  border-radius: var(--radius-s);
  border: 1px solid var(--border);
  background: #fff;
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
  box-shadow: 0 2px 8px 0 rgba(203,169,119,0.07);
  outline: var(--focus-outline);
}
label {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 6px;
}

/****************************************************
  COOKIE CONSENT BANNER & MODAL
****************************************************/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3000;
  background: var(--surface);
  border-top: 1.5px solid var(--border);
  box-shadow: 0 -2px 16px 0 rgba(114, 95, 64, 0.07);
  padding: 20px 10px 16px 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 1.02em;
  color: var(--primary);
  transition: bottom 0.36s, opacity var(--transition);
}
.cookie-banner.hidden {
  opacity: 0;
  pointer-events: none;
  bottom: -110px;
}
.cookie-banner-message {
  max-width: 600px;
  flex: 1 1 65%;
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.cookie-banner .btn-cookie {
  font-family: 'Merriweather', serif;
  font-size: 1.05rem;
  padding: 8px 18px;
  border-radius: var(--radius-s);
  font-weight: 600;
  border: none;
  outline: none;
  transition: background var(--transition), color var(--transition);
  background: var(--secondary);
  color: #fff;
}
.cookie-banner .btn-cookie:hover, .cookie-banner .btn-cookie:focus {
  background: var(--primary);
  color: #fff;
}
.cookie-banner .btn-cookie.secondary {
  background: var(--accent);
  color: var(--primary);
}
.cookie-banner .btn-cookie.secondary:hover, .cookie-banner .btn-cookie.secondary:focus {
  background: var(--secondary);
  color: #fff;
}

/*****
COOKIE PREFERENCES MODAL
*****/
.cookie-modal-overlay {
  position: fixed;
  z-index: 3100;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(114,95,64,0.17);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.32s;
  visibility: hidden;
}
.cookie-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.cookie-modal {
  background: var(--surface);
  border-radius: var(--radius);
  max-width: 470px;
  min-width: 310px;
  padding: 36px 24px 24px 24px;
  box-shadow: 0 8px 42px 0 rgba(203,169,119,0.13);
  border: 1.6px solid var(--accent);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary);
}
.cookie-modal .modal-close {
  position: absolute;
  top: 16px; right: 19px;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.35rem;
  padding: 4px 8px;
  border-radius: var(--radius-s);
}
.cookie-modal .category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}
.cookie-modal label {
  flex: 1;
  color: var(--primary);
  font-weight: 600;
  font-size: 1.065rem;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 22px;
  height: 22px;
  cursor: pointer;
}
.cookie-modal input[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 14px;
}
.cookie-modal .btn-cookie {
  padding: 9px 25px;
  font-size: 1.07rem;
  border-radius: var(--radius-s);
  font-family: 'Merriweather', serif;
  font-weight: 700;
  border: none;
  background: var(--secondary);
  color: #fff;
  transition: background var(--transition), color var(--transition);
}
.cookie-modal .btn-cookie.secondary {
  background: var(--accent);
  color: var(--primary);
}
.cookie-modal .btn-cookie:hover, .cookie-modal .btn-cookie:focus {
  background: var(--primary);
  color: #fff;
}

/****************************************************
  MICRO-INTERACTIONS & HOVER EFFECTS
****************************************************/
.card, .testimonial-card {
  transition: box-shadow var(--transition), transform var(--transition), border var(--transition);
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 10px 36px 0 rgba(203,169,119,0.12);
  transform: translateY(-3px) scale(1.012);
}
.btn-primary, .btn-secondary, .btn-cookie {
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), border var(--transition);
}
.btn-primary:focus, .btn-secondary:focus, .btn-cookie:focus {
  outline: var(--focus-outline);
}

/****************************************************
  UTILITIES
****************************************************/
.hide { display: none !important; }
.centered { justify-content: center; align-items: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/****************************************************
  SCROLLBAR & SELECTION (AESTHETIC)
****************************************************/
body, html {
  scrollbar-width: thin;
  scrollbar-color: var(--secondary) var(--accent);
}
::-webkit-scrollbar {
  width: 8px;
  background: var(--accent);
}
::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/****************************************************
  PRINT OPTIMIZATION
****************************************************/
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  section, .section { box-shadow: none; border: none; background: none; margin-bottom: 18px; padding: 0 !important; }
}
