/* ---------------------------
   CSS RESET & BASE 
----------------------------*/
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: inherit;
  vertical-align: baseline;
  background: transparent;
  box-sizing: border-box;
}
html {
  height: 100%;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #fff;
  font-family: 'Roboto', Arial, sans-serif;
  color: #2D4C3A;
  line-height: 1.7;
  font-size: 1rem;
  font-weight: 400;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
  border: none;
}
a {
  color: #2D4C3A;
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #647B6A;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  resize: none;
}
ul, ol {
  padding-left: 1.35em;
  margin-bottom: 24px;
}
li {
  margin-bottom: 8px;
}
strong {
  font-weight: 700;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
  background: #fff;
  font-size: 1rem;
}
th, td {
  padding: 12px 16px;
  text-align: left;
}
th {
  background: #F4F0E6;
  color: #2D4C3A;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
}
td {
  border-bottom: 1px solid #e2e1dd;
}
hr {
  border: 0;
  height: 1px;
  background: #e2e1dd;
  margin: 32px 0;
}

/* ---------------------------
   TYPOGRAPHY
----------------------------*/
h1, h2, h3, h4, h5, h6 {
  color: #2D4C3A;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin-bottom: 24px;
}
h1 {
  font-size: 2.375rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.32rem;
  margin-bottom: 16px;
}
h4 {
  font-size: 1.15rem;
  margin-bottom: 14px;
}
h5, h6 {
  font-size: 1rem;
  margin-bottom: 8px;
}
p, .text-section > ul, .text-section > ol, .text-section > dl {
  margin-bottom: 18px;
}
.text-section {
  margin-bottom: 28px;
}
.text-section ul {
  margin-bottom: 16px;
}
.text-section > ul li, .text-section > ol li {
  margin-bottom: 7px;
}
dl {
  margin-bottom: 20px;
}
dt {
  font-weight: 600;
  margin-top: 12px;
}
dd {
  margin-left: 0.9em;
  color: #647B6A;
}

/* ---------------------------
   CONTAINER & SECTION LAYOUT
----------------------------*/
.container {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(46,77,58,0.05);
}

/* ---------------------------
   HEADER / NAVIGATION
----------------------------*/
header {
  background: #fff;
  border-bottom: 1px solid #F4F0E6;
  padding: 0;
  position: relative;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 0 20px;
}
header img {
  height: 44px;
  width: auto;
}
header nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
header nav a {
  color: #2D4C3A;
  text-decoration: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 7px 0;
  letter-spacing: 0.01em;
  transition: color 0.18s;
  border-radius: 4px;
  line-height: 1.3;
}
header nav a:hover, header nav a:focus {
  color: #647B6A;
  background: #F4F0E6;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2D4C3A;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 28px;
  box-shadow: 0 2px 12px 0 rgba(46,77,58,0.08);
  text-decoration: none;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s, transform 0.16s;
  outline: none;
  margin-left: 20px;
}
.btn-primary:hover, .btn-primary:focus {
  background: #647B6A;
  color: #fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 24px 0 rgba(46,77,58,0.11);
}

/* Hamburger menu button */
.mobile-menu-toggle {
  display: none;
  background: none;
  color: #2D4C3A;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  margin-left: 12px;
  line-height: 1;
  z-index: 123;
  padding: 7px 12px;
  border-radius: 5px;
  transition: background 0.15s, color 0.15s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #F4F0E6;
}

/* ---------------------------
   MOBILE MENU OVERLAY
----------------------------*/
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  max-width: 360px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 32px 0 rgba(46,77,58,0.10);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px 30px 38px 30px;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.82,.08,.46,1.15);
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: #2D4C3A;
  border: none;
  font-size: 2.1rem;
  cursor: pointer;
  margin-bottom: 18px;
  margin-right: -8px;
  padding: 7px 12px;
  border-radius: 4px;
  transition: background 0.15s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #F4F0E6;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  margin-top: 8px;
}
.mobile-nav a {
  color: #2D4C3A;
  text-decoration: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 500;
  padding: 13px 0;
  border-bottom: 1px solid #F4F0E6;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #F4F0E6;
  border-radius: 5px;
}

/*
----------------------------
MAIN
----------------------------
*/
main {
  background: #fff;
  min-height: 300px;
  padding-bottom: 20px;
}

/*
----------------------------
CARDS & FLEX LAYOUTS
----------------------------
*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(46,77,58,0.06);
  flex: 1 1 285px;
  min-width: 240px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.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: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 20px 0 rgba(46,77,58,0.06);
  margin-bottom: 20px;
  flex: 1 1 340px;
  min-width: 220px;
  font-size: 1.05rem;
  color: #2D4C3A;
}
.testimonial-card p {
  font-style: italic;
  font-size: 1.07rem;
  color: #2D4C3A;
  margin-right: 6px;
}
.testimonial-card span {
  color: #647B6A;
  font-size: 0.98rem;
  font-weight: 500;
  margin-top: 10px;
}
.feature-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 21px;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.08rem;
  color: #2D4C3A;
  font-family: 'Roboto', Arial, sans-serif;
}
.feature-list img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/*
----------------------------
FOOTER
----------------------------
*/
footer {
  margin-top: 50px;
  background: #F4F0E6;
  border-top: 1px solid #e2e1dd;
  color: #2D4C3A;
  padding: 32px 0 0 0;
  font-size: 0.98rem;
  font-family: 'Roboto', Arial, sans-serif;
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 18px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 12px;
}
footer nav a {
  color: #2D4C3A;
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.13s;
}
footer nav a:hover, footer nav a:focus {
  color: #647B6A;
}
footer .text-section {
  display: flex;
  align-items: center;
  gap: 9px;
}
footer img {
  height: 30px;
}

/*
----------------------------
COOKIE CONSENT BANNER & MODAL
----------------------------*/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 1.5px solid #e2e1dd;
  box-shadow: 0 -2px 32px 0 rgba(46,77,58,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 23px 12px 22px 12px;
  z-index: 4000;
  animation: fadeInCookie 0.45s cubic-bezier(.62,.15,.37,1.08);
}
@keyframes fadeInCookie {
  from { opacity: 0; transform: translateY(50px);} 
  to { opacity: 1; transform: none; }
}
.cookie-banner p {
  color: #2D4C3A;
  font-size: 1rem;
  flex: 1 1 auto;
  margin-bottom: 0;
  margin-right: 0.5em;
}
.cookie-banner .btn-cookie {
  min-width: 124px;
  padding: 11px 22px;
  border-radius: 28px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-right: 10px;
  cursor: pointer;
  transition: background 0.17s, color 0.17s, transform 0.17s;
  outline: none;
  box-shadow: 0 1px 4px 0 rgba(46,77,58,0.05);
}
.cookie-banner .btn-cookie.accept {
  background: #2D4C3A;
  color: #fff;
}
.cookie-banner .btn-cookie.reject {
  background: #F4F0E6;
  color: #2D4C3A;
}
.cookie-banner .btn-cookie.settings {
  background: transparent;
  color: #2D4C3A;
  text-decoration: underline;
  margin-right: 0;
}
.cookie-banner .btn-cookie:hover, .cookie-banner .btn-cookie:focus {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 20px 0 rgba(46,77,58,0.07);
  background: #647B6A;
  color: #fff;
}
.cookie-banner .btn-cookie.reject:hover, 
.cookie-banner .btn-cookie.reject:focus {
  background: #e2e1dd;
  color: #2D4C3A;
}
.cookie-banner .btn-cookie.settings:hover, 
.cookie-banner .btn-cookie.settings:focus {
  background: #F4F0E6;
  color: #2D4C3A;
}

/* Cookie modal overlay */
.cookie-modal-overlay {
  position: fixed;
  z-index: 4010;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(44, 76, 58, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.28s cubic-bezier(.63,.21,.47,1.11);
}
@keyframes fadeInModal {
  from { opacity: 0; } 
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 42px 0 rgba(46,77,58,0.14);
  max-width: 94vw;
  width: 420px;
  padding: 36px 26px 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: fadeInModalWin 0.28s cubic-bezier(.52,.21,.47,1.11);
}
@keyframes fadeInModalWin {
  from { transform: scale(0.95) translateY(30px); opacity: 0.4; }
  to { transform: none; opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.365rem;
  color: #2D4C3A;
  margin-bottom: 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 16px;
  background: none;
  border: none;
  color: #2D4C3A;
  font-size: 1.7rem;
  cursor: pointer;
  border-radius: 4px;
  padding: 4px 10px;
  transition: background 0.15s;
}
.cookie-modal-close:focus, .cookie-modal-close:hover {
  background: #F4F0E6;
}
.cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid #F4F0E6;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-category span {
  font-size: 1.05rem;
  font-weight: 500;
  color: #2D4C3A;
}
.cookie-category .switch {
  display: inline-flex;
  align-items: center;
  min-width: 38px;
}
/* Custom switch */
.switch input[type="checkbox"] {
  display: none;
}
.switch-label {
  background: #e2e1dd;
  border-radius: 12px;
  width: 34px;
  height: 18px;
  position: relative;
  cursor: pointer;
  transition: background 0.15s;
}
.switch-label::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 2px #ccc;
  transition: left .18s;
}
.switch input[type="checkbox"]:checked + .switch-label {
  background: #2D4C3A;
}
.switch input[type="checkbox"]:checked + .switch-label::before {
  left: 18px;
  background: #F4F0E6;
}
.switch input[type="checkbox"]:disabled + .switch-label {
  background: #F4F0E6;
  opacity: 0.7;
  cursor: not-allowed;
}
.switch input[type="checkbox"]:disabled + .switch-label::before {
  background: #e2e1dd;
}

.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal .btn-cookie {
  min-width: 110px;
}

/*
----------------------------
MEDIA QUERIES & RESPONSIVE 
----------------------------
*/
@media (max-width: 1024px) {
  .container {
    max-width: 98vw;
    padding: 0 12px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
    padding: 0 12px;
  }
  .section {
    padding: 30px 8px;
    margin-bottom: 38px;
  }
  header .container {
    min-height: 64px;
    gap: 14px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.18rem; }
  h3 { font-size: 1.08rem; }
  .section {
    padding: 23px 4vw;
    margin-bottom: 30px;
    border-radius: 10px;
  }
  .content-wrapper, .card-container, .content-grid, .feature-list {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
  }
  .testimonial-card, .card {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .btn-primary {
    margin-left: 0;
    font-size: 0.97rem;
    padding: 12px 18px;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 10px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 16px;
    padding: 17px 7px 14px 7px;
    text-align: left;
    align-items: stretch;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 0 2vw;
  }
  h1 { font-size: 1.23rem; }
  h2 { font-size: 1rem; }
  table td, table th { font-size: 0.98rem; padding: 8px 7px; }
  .section { padding: 14px 2vw; }
  .btn-primary { font-size: 0.94rem; padding: 11px 7vw; }
  .testimonial-card, .card { padding: 13px 4vw; font-size: 0.99rem; }
  .feature-list li { font-size: 0.98rem; }
  .cookie-modal { width: 93vw; min-width: 0; padding: 18px 7vw 18px 7vw; }
}

/*
----------------------------
MICRO-INTERACTIONS
----------------------------
*/
.card, .testimonial-card, .btn-primary {
  transition: 
    box-shadow 0.22s cubic-bezier(.88,.19,.51,.95),
    transform 0.17s cubic-bezier(.88,.19,.51,.95);
}
.card:hover, .card:focus, 
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 6px 24px 0 rgba(46,77,58,0.11);
  transform: translateY(-2px) scale(1.01);
}

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

/*
---------------------------
 ACCESSIBILITY & HELPER
---------------------------
*/
:focus-visible {
  outline: 2.5px solid #647B6A;
  outline-offset: 2px;
}
[tabindex="-1"]:focus {
  outline: none !important;
}

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

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