/* === 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, 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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5; background: #F6F7F4; color: #375B5C; font-family: 'Open Sans', Arial, sans-serif; -webkit-font-smoothing: antialiased; min-height: 100vh;
}
*,*:before,*:after { box-sizing: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; height: auto; border-radius: 12px; }
table { border-collapse: collapse; width: 100%; }

/* ==== BRAND VARIABLES ==== */
:root {
  --color-primary: #375B5C;
  --color-accent: #E2AE4A;
  --color-secondary: #F6F7F4;
  --color-dark: #222222;
  --color-light: #ffffff;
  --shadow-soft: 0 4px 24px rgba(55, 91, 92, 0.07);
  --shadow-hover: 0 8px 32px rgba(55, 91, 92, 0.12);
  --radius: 20px;
  --radius-small: 12px;
  --section-spacing: 60px;
  --section-padding: 40px 20px;
  --gap-standard: 24px;
}

/* ==== TYPOGRAPHY ==== */
body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  background: var(--color-secondary);
  color: var(--color-primary);
}
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: var(--color-primary);
  font-weight: 700;
}
h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 24px; }
h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 20px; }
h3 { font-size: 1.3rem; margin-bottom: 14px; }
h4 { font-size: 1.1rem; margin-bottom: 12px; }
p, ul, ol, table, dl { margin-bottom: 16px; }
strong { font-weight: bold; }
em { font-style: italic; }
blockquote {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-style: italic;
  font-size: 1.1rem;
  background: #fffbea;
  border-left: 6px solid var(--color-accent);
  padding: 22px 28px;
  margin-bottom: 12px;
  border-radius: var(--radius);
  color: var(--color-dark);
}
cite {
  display: block;
  color: var(--color-primary);
  font-size: 0.97rem;
  margin-top: 6px;
  font-family: 'Open Sans', Arial, sans-serif;
  opacity: 0.9;
}

/* BUTTONS */
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-accent);
  color: var(--color-primary);
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  padding: 13px 32px;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  text-align: center;
  transition: background 0.25s, color 0.2s, box-shadow 0.22s, transform 0.16s;
}
.button-primary:hover, .button-primary:focus {
  background: #ffd34d;
  color: var(--color-dark);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.03);
}
.button-accent {
  background: var(--color-primary);
  color: var(--color-accent);
  border-radius: var(--radius);
  padding: 8px 24px;
  font-size: 1rem;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  border: none;
  font-weight: 600;
  transition: background 0.22s, color 0.22s, box-shadow 0.2s;
}
.button-accent:hover, .button-accent:focus {
  background: #224646;
  color: #fff;
  box-shadow: var(--shadow-hover);
}

/* === LAYOUT CONTAINERS === */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  background: var(--color-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 32px 24px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section {
  margin-bottom: var(--section-spacing);
  padding: var(--section-padding);
  background: none;
  border: none;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-standard);
  margin-bottom: 20px;
}
.card {
  background: var(--color-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 24px 18px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: box-shadow 0.23s, transform 0.18s;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) 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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fffbea;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  margin-bottom: 24px;
  flex-direction: column;
  min-width: 220px;
  max-width: 680px;
}
.testimonial-card blockquote {
  background: none;
  border-left: none;
  padding: 0;
  margin-bottom: 0;
  color: var(--color-dark);
}
.testimonial-card cite {
  font-style: normal;
  color: var(--color-primary);
  margin-top: 10px;
  opacity: 1;
}

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

.text-section {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* === LISTS & OTHER COMPONENTS === */
ul, ol { margin-bottom: 16px; }
ul li, ol li {
  margin-bottom: 10px;
  padding-left: 34px;
  position: relative;
  font-size: 1rem;
}
ul li img, ol li img {
  width: 22px; height: 22px; position: absolute; left: 0; top: 2px;
}
ul li strong, ol li strong { color: var(--color-primary); }
table th,
table td {
  padding: 12px 10px;
  border-bottom: 1px solid #e4e4da;
}
table th {
  background: #fff7da;
  font-weight: 700;
  color: var(--color-primary);
}
table tr:last-child td { border-bottom: none; }
dl dt {
  font-weight: 700; color: var(--color-primary); margin-top: 12px;
}
dl dd {
  margin-left: 0;
  margin-bottom: 10px;
}

/* === NAVIGATION HEADER & FOOTER === */
header {
  background: var(--color-light);
  box-shadow: var(--shadow-soft);
  position: relative;
  margin-bottom: 30px;
}
header .container {
  min-height: 72px;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
header nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: var(--color-primary);
  transition: color 0.18s;
  border-radius: var(--radius-small);
  padding: 5px 12px;
}
header nav a:hover, header nav a:focus {
  color: var(--color-accent);
  background: #fff7da;
}
header .button-primary {
  margin-left: 18px;
}
header a img {
  max-height: 48px;
  border-radius: 0;
}

/* Footer */
footer {
  background: var(--color-light);
  box-shadow: var(--shadow-soft);
  padding: 38px 0 22px 0;
  margin-top: 72px;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  padding: 0 20px;
}
footer > .container > a img {
  max-height: 32px;
  margin-bottom: 10px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer nav a {
  font-size: 1rem;
  color: var(--color-primary);
  opacity: 0.95;
  border-radius: var(--radius-small);
  transition: background 0.14s, color 0.18s;
  padding: 3px 7px;
  margin: 0 -7px;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-accent);
  background: #fff7da;
}
footer div {
  font-size: 0.98rem;
  color: var(--color-dark);
  opacity: 0.95;
  margin-bottom: 10px;
}

/* === MOBILE MENU === */
.mobile-menu-toggle {
  display: none;
  background: var(--color-light);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  color: var(--color-primary);
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  position: absolute;
  right: 18px; top: 18px;
  z-index: 1030;
  transition: background 0.18s, color 0.17s, box-shadow 0.12s, transform 0.13s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-accent);
  color: var(--color-dark);
  box-shadow: var(--shadow-hover);
  transform: scale(1.07);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(246, 247, 244, 0.98);
  box-shadow: 0 0 0 999px rgba(55, 91, 92, 0.1);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 28px 24px 18px 24px;
  transform: translateX(-100vw);
  transition: transform 0.38s cubic-bezier(0.6,0.15,0.4,1.13);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 2rem;
  align-self: flex-end;
  margin-bottom: 26px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: background 0.16s, color 0.17s, transform 0.14s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #fee69a;
  color: var(--color-dark);
  transform: scale(1.08);
}

.mobile-nav {
  display: flex !important;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.2rem;
  color: var(--color-dark);
  font-weight: 600;
  border-radius: var(--radius-small);
  padding: 10px 12px;
  transition: background 0.18s, color 0.17s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #fffaee;
  color: var(--color-primary);
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100%;
  background: #fffbea;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  box-shadow: 0 -2px 22px rgba(55,91,92,0.12);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  z-index: 1150;
  padding: 22px 30px 18px 30px;
  font-size: 1rem;
  color: var(--color-dark);
  animation: cookie-slide-in 0.45s cubic-bezier(0.68,0,0.32,1.7);
}
@keyframes cookie-slide-in {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner-message {
  flex: 1;
  font-size: 1rem;
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 15px;
}
.cookie-btn {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  border-radius: var(--radius-small);
  padding: 8px 20px;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.18s, color 0.17s, box-shadow 0.14s;
  cursor: pointer;
  margin-left: 0;
  box-shadow: var(--shadow-soft);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #ffd34d;
  color: var(--color-dark);
  box-shadow: var(--shadow-hover);
}
.cookie-btn-alt {
  background: var(--color-primary);
  color: var(--color-accent);
}
.cookie-btn-alt:hover, .cookie-btn-alt:focus {
  background: #224646;
  color: #fff;
}

/* === Cookie Preferences Modal === */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(55,91,92,0.22);
  z-index: 1199;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fffbea;
  border-radius: var(--radius);
  max-width: 410px;
  width: 90%;
  box-shadow: 0 8px 40px 0 rgba(55,91,92,0.18);
  padding: 36px 28px 32px 28px;
  color: var(--color-dark);
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookie-fade-in 0.3s ease;
  position: relative;
}
@keyframes cookie-fade-in {
  0% { opacity: 0; transform: scale(0.93); }
  100% { opacity: 1; transform: scale(1); }
}
.cookie-modal h3 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: #fff6e1;
  border-radius: var(--radius-small);
  padding: 10px 14px;
  margin-bottom: 10px;
}
.cookie-category label {
  font-size: 1rem; color: var(--color-primary); font-weight: 600;margin-right: 24px;
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--color-accent);
  width: 22px;
  height: 22px;
}
.cookie-preference-btns {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 10px;
}
.cookie-modal-close {
  position: absolute;
  top: 7px; right: 16px;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 4;
}
.cookie-modal-close:hover, .cookie-modal-close:focus { color: var(--color-accent); }

/* === BLOG TAG NAVIGATION === */
.text-section form {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-bottom: 12px;
}
.text-section input[type="search"] {
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  padding: 8px 14px;
  border-radius: var(--radius-small);
  outline: none;
  border: 1px solid #e3e6e1;
  background: #fff;
  color: var(--color-primary);
  width: 100%;
  transition: border 0.17s;
}
.text-section input[type="search"]:focus {
  border-color: var(--color-accent);
}
.text-section button[type=submit] {
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-small);
  padding: 9px 13px;
  cursor: pointer;
  transition: background 0.16s;
  display: flex; align-items: center;
}
.text-section button[type=submit]:hover, .text-section button[type=submit]:focus {
  background: var(--color-accent);
}
.text-section nav {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-bottom: 18px;
}
.text-section nav a {
  background: #faf8ee;
  color: var(--color-primary);
  font-size: 1rem;
  padding: 7px 18px;
  border-radius: var(--radius-small);
  transition: background 0.16s, color 0.14s;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
}
.text-section nav a:hover, .text-section nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* === CARD/ARTICLE SPACING === */
.text-section article {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 22px 18px;
  margin-bottom: 24px;
  transition: box-shadow 0.2s, transform 0.19s;
}
.text-section article:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px) scale(1.01);
}
.text-section article h2 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}
.text-section article a {
  color: var(--color-primary);
  font-weight: 700;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  transition: color 0.15s;
  border-bottom: 2px solid var(--color-accent);
  margin-top: 6px;
  display: inline-block;
}
.text-section article a:hover, .text-section article a:focus {
  color: var(--color-accent);
  border-bottom-color: var(--color-primary);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1200px) {
  .container, footer .container, header .container {
    max-width: 990px;
    padding: 0 12px;
  }
}
@media (max-width: 900px) {
  .container, footer .container, header .container {
    max-width: 728px;
    padding: 0 8px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  .container,
  .content-wrapper,
  header .container,
  footer .container {
    padding-left: 10px; padding-right: 10px;
    max-width: 100%;
  }
  .content-wrapper {
    padding: 18px 8px;
    border-radius: var(--radius-small);
  }
  .section {
    padding: 28px 6px;
    margin-bottom: 36px;
  }
  .testimonial-card {
    max-width: 100%;
    min-width: unset;
  }
  header .container, footer .container {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .content-grid, .card-container, .features {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
}

@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
}

/* Burger menu: switch on hamburger */
@media (max-width: 900px) {
  header nav,
  header .button-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 901px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* === MISC ELEMENTS/UTILITIES === */
hr {
  border: none;
  border-top: 1px solid #ececeb;
  margin: 26px 0;
}

::-webkit-input-placeholder { color: #bbbab7; }
::-moz-placeholder { color: #bbbab7; }
:-ms-input-placeholder { color: #bbbab7; }
::placeholder { color: #bbbab7; }

/* Hide cookie banner if accepted (to be done dynamically with JS) */
.cookie-banner.hidden {
  display: none !important;
}

/* Modal overlays hidden by default */
.cookie-modal-overlay:not(.open) { display: none; }

/* === ACCESSIBILITY === */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Animation for card hover on touch devices (optional) */
@media (hover: none) {
  .card:hover, .testimonial-card:hover, .text-section article:hover {
    transform: none;
    box-shadow: var(--shadow-soft);
  }
}

/* ========== END OF STYLE.CSS ========== */
