/* ----------------- CSS RESET & NORMALIZE ----------------- */
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: #F5F6F2;
  color: #26343E;
}
ol, ul {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color .24s;
}
img, svg {
  max-width: 100%;
  display: inline-block;
}
button {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  transition: background .24s, color .24s, box-shadow .26s;
}
input, textarea, select {
  font: inherit;
}
h1, h2, h3, h4, h5, h6 { font-weight: bold; }
:root {
  --color-primary: #1B395E;
  --color-primary-dark: #13284d;
  --color-secondary: #A5C869;
  --color-secondary-dark: #729A30;
  --color-accent: #F5F6F2;
  --color-accent-dark: #eaede5;
  --color-warm1: #FFD9AE;
  --color-warm2: #FFE5C7;
  --color-warm3: #FFBC87;
  --color-border: #E3E5E0;
  --color-neutral: #cfd3cf;
  --color-negative: #EC8579;
  --shadow-md: 0 2px 10px 0 rgba(27,57,94,0.07), 0 1.5px 6px 0 rgba(215,153,88,0.05);
  --radius: 16px;
  --radius-lg: 24px;
  --container-width: 1200px;

  --ff-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --ff-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* ----------------- BASE TYPOGRAPHY ----------------- */
body {
  font-family: var(--ff-body);
  font-size: 16px;
  background: var(--color-accent);
  color: #26343E;
  letter-spacing: .015em;
}
h1, .h1 {
  font-family: var(--ff-display);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
h2, .h2 {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 18px;
}
h3, .h3 {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-secondary-dark);
  margin-bottom: 12px;
}
p {
  font-size: 1rem;
  line-height: 1.7;
  color: #333950;
  margin-bottom: 16px;
}
strong { color: var(--color-primary); font-weight: 700; }
section li img { vertical-align: middle; margin-right: 12px; }

/* ----------------- CONTAINER & LAYOUT ----------------- */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  max-width: var(--container-width);
  box-sizing: border-box;
}
.content-wrapper {
  margin: 0 auto;
  max-width: 780px;
  padding: 0 8px;
  box-sizing: border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  box-sizing: border-box;
  /* Spacing between sections handled by margin-bottom */
}
@media (max-width: 900px) {
  .section {
    padding: 28px 10px;
    margin-bottom: 40px;
  }
  .content-wrapper {
    padding: 0;
  }
}
@media (max-width: 600px) {
  .section {
    padding: 20px 3px;
    margin-bottom: 25px;
    border-radius: 10px;
  }
}

/* ----------------- FLEXBOX LAYOUT MANDATORY PATTERNS ----------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 24px 18px;
  flex: 1 1 270px;
  max-width: 380px;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card:hover {
  box-shadow: 0 4px 24px 0 rgba(27,57,94,0.15);
  transform: translateY(-2px) scale(1.015);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: stretch;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; gap: 16px; }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 26px 20px 26px;
  background: var(--color-warm1);
  color: #2d3d4f;
  border-radius: var(--radius);
  margin-bottom: 24px;
  box-shadow: 0 2px 8px 0 rgba(27, 57, 94, 0.07);
  font-size: 1.04rem;
  transition: box-shadow .19s, background .19s;
}
.testimonial-card p {
  color: #303041;
  margin: 0 0 10px 0;
  font-size: 1.075rem;
  font-style: italic;
}
.testimonial-card strong {
  color: var(--color-primary-dark);
  font-weight: 700;
}
.testimonial-card:hover {
  background: var(--color-warm2);
  box-shadow: 0 4px 18px 0 rgba(165,200,105,0.12);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ---------- Utility Flexbox for cards and lists --------- */
.card-list, ul.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}
.section ul, .section ol {
  margin-left: 0;
  margin-bottom: 18px;
  padding-left: 0;
  /* Flex for visually rich lists */
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.section ol {
  counter-reset: num;
}
.section ol li {
  position: relative;
  padding-left: 38px;
}
.section ol li::before {
  counter-increment: num;
  content: counter(num) '.';
  position: absolute;
  left: 0;
  color: var(--color-secondary-dark);
  font-weight: 700;
}
.section ul li {
  display: flex;
  align-items: flex-start;
  font-size: 1.04rem;
  line-height: 1.6;
  color: #2C342B;
}
.section ul li img {
  width: 32px; height: 32px;
  margin-right: 16px;
}

@media (max-width: 768px) {
  .card, .testimonial-card {
    padding: 16px 8px;
  }
  .card-list, .card-container, .content-grid, .section ul, .section ol {
    gap: 13px;
  }
}

/* ----------------- BUTTONS & CTA ----------------- */
.cta-btn, .btn, button[type="submit"], .cookie-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: #fff;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-warm3));
  padding: 13px 28px;
  border-radius: 32px;
  box-shadow: 0 1px 5px rgba(165, 200, 105, 0.07);
  border: none;
  transition: background .20s, transform .18s, box-shadow .18s, color .16s;
  outline: none;
  cursor: pointer;
}
.cta-btn:hover, .btn:hover, .cookie-banner__btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, var(--color-secondary-dark), var(--color-warm3));
  color: var(--color-primary);
  box-shadow: 0 2px 17px 0 rgba(165, 200, 105, 0.13);
  transform: translateY(-2.5px) scale(1.01);
}
/* Danger/status buttons for cookies */
.btn--danger, .cookie-banner__btn--reject {
  background: var(--color-negative);
  color: #fff;
}
.btn--danger:hover, .cookie-banner__btn--reject:hover {
  background: #d94e3a;
  color: #fff;
}
.btn--outline, .cookie-banner__btn--settings {
  background: #fff;
  color: var(--color-secondary-dark);
  border: 1.5px solid var(--color-secondary-dark);
  box-shadow: none;
}
.btn--outline:hover, .cookie-banner__btn--settings:hover {
  background: var(--color-warm1);
  color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

/* ----------------- HEADER & NAVIGATION ----------------- */
header {
  background: #fff;
  box-shadow: 0 3px 16px -8px rgba(27,57,94,0.07);
  border-radius: 0 0 var(--radius) var(--radius);
  position: relative;
  z-index: 10;
  width: 100%;
  margin-bottom: 12px;
}
.container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 70px;
}
header img {
  height: 46px;
  border-radius: 8px;
}
.main-nav {
  display: flex;
  gap: 24px;
  margin-left: 30px;
  flex: 1 1 auto;
  align-items: center;
}
.main-nav a {
  font-family: var(--ff-display);
  font-size: 1.07rem;
  color: var(--color-primary-dark);
  padding: 8px 10px;
  border-radius: var(--radius);
  transition: background .19s, color .16s;
}
.main-nav a:hover {
  background: var(--color-warm2);
  color: var(--color-secondary-dark);
}
.cta-btn {
  margin-left: auto;
  font-size: 1rem;
  font-weight: 700;
}
@media (max-width: 998px) {
  .main-nav {
    gap: 15px;
    margin-left: 10px;
  }
  header img { height: 38px; }
}
@media (max-width: 768px) {
  .container {
    padding: 0 7px;
    min-height: 56px;
  }
  header img { height: 30px; }
}

/* --- Burger menu --- */
.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-left: 16px;
  z-index: 51;
  border: 2px solid var(--color-secondary);
  transition: background .21s, color .19s;
}
.mobile-menu-toggle:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
  border-color: var(--color-primary);
}
@media (max-width: 1000px) {
  .main-nav, .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(251,253,249,0.96);
  box-shadow: 0 6px 24px 0 rgba(27,57,94,0.13);
  transform: translateX(100%);
  transition: transform .36s cubic-bezier(.8,.18,0,.97);
  z-index: 900;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  position: absolute;
  top: 22px; right: 24px;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-secondary-dark);
  background: #fff;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  z-index: 950;
  box-shadow: 0 1px 7px 0 rgba(150,180,54,0.11);
  transition: background .18s, color .18s;
}
.mobile-menu-close:hover {
  background: var(--color-warm1);
  color: var(--color-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 86px 0 0 34px;
  gap: 14px;
}
.mobile-nav a {
  display: block;
  font-size: 1.34rem;
  font-family: var(--ff-display);
  margin-bottom: 8px;
  color: var(--color-primary-dark);
  padding: 13px 16px;
  border-radius: 18px;
  min-width: 200px;
  transition: background .20s, color .17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}
@media (max-width: 500px) {
  .mobile-nav { margin: 76px 0 0 16px; }
  .mobile-nav a { min-width: 120px; font-size: 1.13rem; padding: 9px 10px; }
  .mobile-menu-close { top: 16px; right: 13px; font-size: 1.75rem; }
}

/* ---------------- PAGE ELEMENTS ------------------ */
.text-section {
  margin-bottom: 22px;
  font-size: 1.03rem;
  color: #424A2E;
}
.accordion-item {
  margin-bottom: 18px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 1px 4px 0 rgba(27,57,94,0.08);
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 500;
  position: relative;
}
.accordion-item strong {
  color: var(--color-primary-dark);
}
.accordion-item > div {
  margin-top: 10px;
  color: #333950;
  font-size: 1.01rem;
}
.accordion-item:hover { background: var(--color-warm2); }

.contact-prompt {
  background: var(--color-warm1);
  border-radius: var(--radius);
  padding: 15px 22px;
  margin: 24px 0 0 0;
  box-shadow: 0 1px 7px 0 rgba(245,165,40,0.08);
  font-size: 1.07rem;
  color: #294700;
}
.contact-prompt a {
  color: var(--color-secondary-dark);
  font-weight: 600;
  text-decoration: underline;
}

/* IMAGE + TEXT ALIGNMENT */
.section .text-image-section img {
  border-radius: var(--radius);
  box-shadow: 0 2px 8px 0 rgba(27, 57, 94, 0.06);
}

/* --------------- FOOTER LAYOUT ------------------- */
footer {
  background: #fff;
  padding: 48px 0 16px 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -4px 18px 0 rgba(27,57,94,0.06);
  margin-top: 40px;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
}
footer img {
  height: 38px;
  margin-bottom: 8px;
}
.footer-brand {
  margin-bottom: 12px;
}
.footer-main, .footer-legal {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.footer-main a, .footer-legal a {
  color: var(--color-primary-dark);
  font-family: var(--ff-display);
  font-size: 1rem;
  padding: 6px 0;
  border-radius: 9px;
  transition: background .17s, color .15s;
}
.footer-main a:hover, .footer-legal a:hover {
  background: var(--color-secondary);
  color: #fff;
}
.footer-contact {
  font-size: .99rem;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
  max-width: 260px;
}
.footer-contact a {
  color: var(--color-secondary-dark);
  text-decoration: underline;
}
.footer-contact strong {
  font-size: 1.09rem;
  color: var(--color-primary-dark);
}
.footer-copyright {
  width: 100%;
  margin-top: 18px;
  font-size: .943rem;
  color: var(--color-neutral);
  text-align: right;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .footer-copyright { text-align: left; }
}

/* ----------------- COOKIE CONSENT BANNER ------------------ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fffbe9;
  border-top: 2.5px solid var(--color-secondary);
  box-shadow: 0 -2px 19px rgba(160, 140, 70, 0.06);
  z-index: 2000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 18px 12px 20px 12px;
  font-size: 1.05rem;
  transition: transform .42s, opacity .33s;
  opacity: 1;
}
.cookie-banner.hide {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  color: #523e2a;
  margin-bottom: 0;
  flex: 1 1 auto;
  max-width: 480px;
}
.cookie-banner__btn, .cookie-banner__btn--settings, .cookie-banner__btn--reject {
  margin: 0 9px 0 0;
  font-size: 1.02rem;
}
.cookie-banner__btn:last-child { margin-right: 0; }

/* ------------------ COOKIE MODAL ------------------- */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(34,29,8,0.18);
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .27s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal__content {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 30px 0 rgba(27,57,94,0.16);
  padding: 38px 32px 32px 32px;
  max-width: 420px;
  width: 93vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 19px;
}
.cookie-modal__close {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 2rem;
  color: var(--color-secondary-dark);
  background: #fff;
  border-radius: 50%;
  border: 1.4px solid var(--color-border);
  width: 38px; height: 38px;
  justify-content: center;
  align-items: center;
  display: flex;
  transition: background .16s, color .16s;
}
.cookie-modal__close:hover {
  background: var(--color-warm1);
  color: var(--color-primary-dark);
}
.cookie-modal__categories {
  width: 100%;
  margin: 9px 0 10px 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--color-accent-dark);
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 1.01rem;
  font-weight: 500;
}
.cookie-modal__category input[type="checkbox"] {
  accent-color: var(--color-secondary);
  width: 18px;height: 18px;
}
.cookie-modal__category--essential label { color: #bbb; }
.cookie-modal__btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 14px;
}
@media (max-width: 580px) {
  .cookie-modal__content { padding: 19px 7px 13px 7px; }
  .cookie-modal__close { top: 13px; right: 12px; font-size: 1.3rem; width: 28px; height: 28px; }
}

/* --------------- FORM ELEMENTS --------------------- */
input, textarea, select {
  padding: 10px 14px;
  background: #fff;
  border-radius: var(--radius);
  border: 1.4px solid var(--color-border);
  color: #2B3F29;
  margin-bottom: 13px;
  font-size: 1rem;
  transition: border-color .18s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-secondary-dark);
  outline: none;
}
label { margin-bottom: 6px; font-size: 1rem; color: var(--color-primary-dark); font-family: var(--ff-display); }

/* ------------------ RESPONSIVE -------------------- */
@media (max-width: 1200px) {
  .container { max-width: 1000px; }
}
@media (max-width: 900px) {
  .container { max-width: 100vw; }
  .content-wrapper { max-width: 98vw; }
}
@media (max-width: 720px) {
  .container, .content-wrapper { max-width: 100vw; }
  main, header, section, footer { padding-left: 0; padding-right: 0; }
}
@media (max-width: 580px) {
  body { font-size: 15px; }
  h1, .h1 { font-size: 1.55rem; }
  h2, .h2 { font-size: 1.19rem; }
  .footer-contact { font-size: .94rem; }
}

/* -------------- MICRO-INTERACTIONS --------------- */
a, button, .cta-btn, .btn, input, textarea, select {
  transition: all .16s ease;
}
.card, .testimonial-card, .accordion-item {
  transition: box-shadow .17s, transform .16s, background .15s;
}
.cta-btn:active, .btn:active {
  transform: scale(0.97);
}

/* --------------- VISUAL ENHANCEMENTS --------------- */
.card, .testimonial-card, .section {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.card:focus-within, .testimonial-card:focus-within {
  box-shadow: 0 0 0 2.5px var(--color-secondary);
}

::-webkit-scrollbar {
  width: 8px;
  background: var(--color-accent-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 8px;
}

/* ===================== END STYLES =================== */