/* === 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,
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;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  background: linear-gradient(135deg, #F4EFE8 0%, #e8eddc 100%);
  color: #283C49;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: #283C49;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #8BB174;
  outline: none;
}
h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-weight: 700;
  margin-bottom: 16px;
  color: #283C49;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
p, li {
  font-size: 1rem;
  margin-bottom: 12px;
}
strong {
  font-weight: 700;
}
em {
  font-style: italic;
}
/* === UTILITY LAYOUT CLASSES === */
.container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(40,60,73,0.07);
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.3s, transform 0.3s;
}
.card:hover {
  box-shadow: 0 6px 24px 0 rgba(40,60,73,0.14);
  transform: translateY(-3px) scale(1.01);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fafcfa;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(40,60,73,0.10);
  padding: 20px;
  margin-bottom: 20px;
  color: #283C49;
  transition: box-shadow 0.3s, border 0.3s;
}
.testimonial-card p {
  color: #283C49;
  font-size: 1.05rem;
  font-style: italic;
}
.testimonial-card strong {
  color: #8BB174;
}
/* === HEADER & NAVIGATION === */
header {
  background: linear-gradient(90deg, #F4EFE8 90%, #e2ead6 100%);
  box-shadow: 0 2px 8px 0 rgba(40,60,73,0.05);
  position: sticky;
  top: 0;
  z-index: 99;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 24px;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
}
nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
nav a {
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 4px 0;
  font-weight: 500;
  position: relative;
}
nav a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #8BB174;
  transition: width .2s;
  border-radius: 1px;
  position: absolute;
  left: 0;
  bottom: -2px;
}
nav a:hover::after, nav a:focus::after {
  width: 100%;
}
/* --- BUTTONS --- */
.btn {
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 28px;
  border: none;
  background: #8BB174;
  color: #fff;
  box-shadow: 0 2px 8px 0 rgba(139,177,116,0.11);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  text-align: center;
  text-decoration: none;
  min-width: 170px;
}
.btn:hover, .btn:focus {
  background: #6b9859;
  box-shadow: 0 4px 20px 0 rgba(139,177,116,0.17);
  transform: translateY(-2px) scale(1.01);
  color: #fff;
}
.btn-primary {
  background: linear-gradient(95deg, #8BB174 25%, #283C49 100%);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(95deg, #6b9859 20%, #283C49 100%);
  color: #fff;
}
/* ========== TABLES ========== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px 0 rgba(40,60,73,0.07);
}
th, td {
  padding: 14px 12px;
  text-align: left;
}
th {
  background: #e8eddc;
  color: #283C49;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
}
td {
  font-size: 1rem;
  border-bottom: 1px solid #F4EFE8;
}
tr:last-child td {
  border-bottom: none;
}
/* ========== FOOTER ========== */
footer {
  background: #283C49;
  color: #fff;
  padding: 40px 0 24px 0;
  margin-top: 48px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
footer nav a {
  color: #fff;
  opacity: 0.90;
  font-size: 0.96rem;
  transition: opacity 0.2s;
}
footer nav a:hover, footer nav a:focus {
  opacity: 1;
  color: #8BB174;
}
footer p {
  color: #e8eddc;
  font-size: 0.98rem;
}
/* =========== MOBILE MENU =========== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #283C49;
  cursor: pointer;
  margin-left: 24px;
  z-index: 120;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus {
  color: #8BB174;
  outline: none;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #283C49;
  color: #fff;
  transform: translateX(100vw);
  transition: transform 0.4s cubic-bezier(0.6,0.2,0.2,1); /* slide animation */
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 40px;
  padding-left: 32px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #fff;
  position: absolute;
  top: 23px;
  right: 32px;
  cursor: pointer;
  z-index: 1211;
  padding: 8px;
  transition: color 0.2s;
}
.mobile-menu-close:focus {
  color: #8BB174;
}
.mobile-nav {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 10px 0;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  min-width: 80vw;
  display: inline-block;
  outline: none;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: #8BB174;
  color: #fff !important;
}
body.menu-open {
  overflow: hidden;
}
@media (max-width: 1024px) {
  header .container {
    gap: 10px;
  }
  nav {
    gap: 12px;
  }
}
@media (max-width: 900px) {
  .container { max-width: 90vw; }
  header .container { padding: 0 10px; }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    gap: 8px;
  }
  nav {
    display: none !important;
  }
  .btn.btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (max-width: 520px) {
  .container {
    padding: 0 4vw;
  }
}
/* ========== SECTIONS / RESPONSIVE ========== */
@media (max-width: 992px) {
  .section {
    padding: 32px 10px;
    margin-bottom: 38px;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 30px 4vw;
    margin-bottom: 30px;
  }
  .content-wrapper, .card-container, .content-grid {
    flex-direction: column !important;
    gap: 16px !important;
  }
  .testimonial-card { padding: 16px; }
  .text-image-section {
    flex-direction: column;
    gap: 18px; 
  }
}
@media (max-width: 520px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.1rem; }
  h3 { font-size: 1rem; }
  .btn, .btn-primary {
    font-size: 0.98rem;
    min-width: 110px;
    padding: 9px 18px;
  }
  table, th, td { font-size: 0.98rem; }
}
/* ========== LISTS, QUOTES, UL, OL ========== */
ul {
  padding-left: 24px;
  margin-bottom: 12px;
  list-style-type: disc;
}
ul li {
  margin-bottom: 8px;
  line-height: 1.6;
  position: relative;
  padding-left: 4px;
}
ul li strong {
  font-weight: 700;
}
ul li:before {
  content: '';
  display: none;
}
ul li {
  color: #283C49;
}
li {
  font-size: 1rem;
}
/* ========== FORMS ========== */
input, textarea, select {
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid #e8eddc;
  background: #fff;
  width: 100%;
  transition: border-color .2s;
  margin-bottom: 20px;
}
input:focus, textarea:focus, select:focus {
  border-color: #8BB174;
  outline: none;
}
label {
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 1rem;
  margin-bottom: 8px;
  display: block;
}
/* ========== COOKIES BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0; right: 0;
  z-index: 9999;
  background: #283C49;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  box-shadow: 0 -2px 22px 0 rgba(40,60,73,0.10);
  padding: 28px 12vw 18px 12vw;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.5s, opacity 0.5s;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(110%);
  pointer-events: none;
}
.cookie-banner-message {
  font-size: 1.04rem;
  text-align: center;
  line-height: 1.7;
  color: #fff;
}
.cookie-banner-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.cookie-btn {
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border: none;
  border-radius: 18px;
  padding: 9px 20px;
  margin: 0 2px;
  cursor: pointer;
  background: #8BB174;
  color: #fff;
  font-weight: 600;
  transition: background 0.2s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #6b9859;
}
.cookie-btn.reject {
  background: #949fab;
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #6b7686;
}
.cookie-btn.settings {
  background: #F4EFE8;
  color: #283C49;
  border: 1px solid #8BB174;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #e8eddc;
  color: #283C49;
}
@media (max-width: 700px) {
  .cookie-banner {
    padding: 14px 4vw 10px 4vw;
  }
  .cookie-banner-message {
    font-size: 0.97rem;
  }
  .cookie-banner-actions {
    gap: 8px;
  }
}
/* ========== COOKIE MODAL POPUP ========== */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(40, 60, 73, 0.78);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 12000;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.4s;
}
.cookie-modal-backdrop.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 26px 26px 0 0;
  max-width: 390px;
  width: 98vw;
  margin: 0 auto 0 auto;
  box-shadow: 0 8px 32px 0 rgba(40,60,73,0.13);
  padding: 32px 28px 28px 28px;
  color: #283C49;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  bottom: 0;
  animation: cookieSlideIn .35s;
}
@keyframes cookieSlideIn {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: #283C49;
  cursor: pointer;
}
.cookie-modal .modal-title {
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 8px 0;
}
.cookie-category label {
  font-size: 1.05rem;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-weight: 600;
  margin-bottom: 0;
}
.cookie-switch {
  position: relative;
  width: 44px;
  height: 22px;
  display: inline-block;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #e8eddc;
  border-radius: 22px;
  transition: background .2s;
}
.cookie-switch input:checked + .cookie-slider {
  background: #8BB174;
}
.cookie-slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s;
  box-shadow: 0 1px 3px 0 rgba(40,60,73,.15);
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(22px);
}
.cookie-category.essential .cookie-switch {
  opacity: 0.6;
  pointer-events: none;
}
.cookie-modal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.cookie-modal .modal-actions .cookie-btn {
  min-width: 105px;
}
.cookie-category-desc {
  color: #545b63;
  font-size: 0.97rem;
  margin: 3px 0 0 0;
  margin-left: 4px;
}
.cookie-modal .cookie-categories-list {
  margin-bottom: 6px;
  margin-top: 4px;
}
/* ========== ANIMATIONS & MICRO-INTERACTIONS ========== */
.btn, .btn-primary, .mobile-menu-toggle, .mobile-menu-close, .cookie-btn, .cookie-modal-close {
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s;
}
.btn:active, .btn-primary:active, .mobile-menu-toggle:active, .mobile-menu-close:active, .cookie-btn:active {
  transform: scale(0.98);
}
.card, .testimonial-card, .cookie-banner, .cookie-modal {
  transition: box-shadow 0.3s, transform 0.3s, background 0.2s;
}
.card:active, .testimonial-card:active {
  transform: scale(0.98);
}
/* ========== ACCESSIBLE FOCUS RING ========== */
a, button, .btn, .cookie-btn, .cookie-modal-close {
  outline: none;
  box-shadow: none;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cookie-btn:focus-visible, .cookie-modal-close:focus-visible {
  outline: 2px solid #8BB174;
  outline-offset: 2px;
}
/* ========== VISUAL HIERARCHY & TYPOGRAPHY SCALE ========== */
h1 { font-size: 2.5rem; margin-bottom: 24px; font-weight: 700; }
h2 { font-size: 2rem; margin-bottom: 20px; font-weight: 700; }
h3 { font-size: 1.5rem; margin-bottom: 16px; font-weight: 600; }
h4 { font-size: 1.18rem; margin-bottom: 12px; font-weight: 600; }
p, li { font-size: 1rem; }
@media (max-width: 540px) {
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1rem; }
  h3 { font-size: 0.95rem; }
}
/* ========== GRADIENT MODERN AUTHENTIC ========== */
body, html {
  background: linear-gradient(125deg, #F4EFE8 0%, #e8eddc 100%);
}
section {
  border-radius: 32px 32px 19px 19px/22px 22px 32px 32px;
  background: linear-gradient(100deg, #fff 75%, #F4EFE8 100%);
  box-shadow: 0 2px 20px 0 rgba(40,60,73,0.05);
}
@media (max-width: 700px) {
  section {
    border-radius: 22px;
    padding: 22px 6vw;
  }
}
/* ========== ENSURE ADEQUATE SPACING ========== */
.section, section { margin-bottom: 60px; padding: 40px 20px; }
.card-container, .content-grid, .content-wrapper { gap: 20px; }
.card { margin-bottom: 20px; }
.text-image-section { gap: 30px; }
.feature-item { gap: 15px; }
.testimonial-card { gap: 20px; padding: 20px; }
/* ========== PREVENT OVERLAPPING & Z-INDEX ORDER ========== */
header, .mobile-menu, .cookie-banner, .cookie-modal-backdrop { z-index: 1200; }
/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 10px;
  background: #e8eddc;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb {
  background: #8BB174;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #6b9859;
}
/* ========== PRINT OPTIMIZATION ========== */
@media print {
  .mobile-menu, .cookie-banner, .cookie-modal-backdrop, nav, .btn, .btn-primary, .mobile-menu-toggle { display: none !important; }
  section, .section, body {
    background: #fff !important;
    color: #000 !important;
  }
}
