/* === CSS RESET & NORMALIZE (Mobile-first) === */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 400;
  background: #F7F4EF;
  color: #24313d;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
main {
  flex: 1;
}
a {
  color: #134266;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #609239;
}
ul, ol {
  list-style-position: outside;
  margin: 0 0 1.2em 1.5em;
}
ul li, ol li { margin-bottom: 0.5em; }
img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px 0 rgba(19, 66, 102, 0.04);
}
thead {
  background: #FFE8D4;
}
th, td {
  padding: 12px 16px;
  text-align: left;
  font-size: 1rem;
}
th {
  font-weight: 700;
  letter-spacing: .03em;
  color: #134266;
}
tbody tr {
  border-bottom: 1px solid #ececec;
}

hr {
  border: none;
  border-top: 1px solid #e6e6e6;
}

/* ==== BRAND COLORS ==== */
:root {
  --color-primary: #134266;
  --color-secondary: #609239;
  --color-accent: #F5F7FA;
  --color-warm-bg: #FFF7F2;
  --color-warm-highlight: #FFE8D4;
  --color-shadow: rgba(19,66,102,0.08);
  --color-positive: #609239;
  --color-danger: #d33d27;
  --radius: 16px;
}

/* ==== TYPOGRAPHY SCALE ==== */
h1, .h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 2.3rem;
  color: var(--color-primary);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.7rem;
  margin-bottom: 16px;
  color: var(--color-secondary);
  letter-spacing: 0.01em;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--color-primary);
}
p, li, ul, ol, dl, dd, dt {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  margin-bottom: 10px;
}
p.intro, .subheadline {
  font-size: 1.2rem;
  font-weight: 500;
  color: #24313d;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}

strong { font-weight: 700; }

/* === LAYOUT CONTAINERS === */
.container {
  width: 100%;
  max-width: 1100px;
  padding: 0 18px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.text-section {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 16px 0 var(--color-shadow);
  padding: 30px 20px;
  margin-bottom: 32px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 16px 0 var(--color-shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  min-width: 250px;
  flex: 1 1 260px;
  transition: box-shadow .2s;
}
.card:hover {
  box-shadow: 0 6px 32px 0 rgba(19, 66, 102, 0.14);
}
.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 GRID === */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: stretch;
  margin-top: 16px;
  margin-bottom: 16px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-warm-bg);
  border-radius: var(--radius);
  padding: 24px 18px 22px 18px;
  min-width: 210px;
  flex: 1 1 220px;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: box-shadow 0.25s;
}
.feature-item img {
  width: 38px;
  height: 38px;
}
.feature-item:hover {
  box-shadow: 0 8px 32px 0 rgba(96,146,57,0.13);
}

/* ==== TESTIMONIALS ==== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-warm-highlight);
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: 0 2px 8px var(--color-shadow);
  position: relative;
  color: #25323a;
}
.testimonial-card p {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-style: italic;
  font-size: 1.09rem;
  margin-bottom: 0;
}
.testimonial-card .testimonial-name {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  color: var(--color-secondary);
  margin-left: 15px;
  font-size: 1rem;
}

/* ==== BUTTONS ==== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-secondary);
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.025rem;
  padding: 12px 28px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  box-shadow: 0 2px 12px var(--color-shadow);
  transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
  margin: 20px 0 0 0;
  letter-spacing: 0.01em;
}
.btn-primary:hover, .btn-primary:focus {
  background: #437e18;
  box-shadow: 0 6px 24px 0 rgba(19,66,102,0.18);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}
.btn-secondary {
  background: var(--color-primary);
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  padding: 11px 22px;
  border:none;
  border-radius: 24px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: background 0.21s, box-shadow 0.16s, transform 0.13s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #1d5a8b;
  color: #fff;
  box-shadow: 0 4px 14px 0 rgba(96,146,57,0.13);
  transform: translateY(-1px) scale(1.02);
}
.btn-danger {
  background: var(--color-danger);
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  padding: 11px 20px;
  border:none;
  border-radius: 24px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: background 0.21s;
}
.btn-danger:hover, .btn-danger:focus {
  background: #b72216;
  color: #fff;
}

/* ==== HEADER & NAVIGATION ==== */
header {
  background: #FFF7F2;
  box-shadow: 0 1px 14px var(--color-shadow);
  padding-top: 8px;
  padding-bottom: 8px;
  position: relative;
  z-index: 50;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
header img {
  height: 56px;
  width: auto;
  border-radius: 0;
}

.main-nav {
  display: flex;
  gap: 20px;
  margin-left: 32px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
}
.main-nav a {
  color: var(--color-primary);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 22px;
  transition: background 0.18s;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--color-warm-highlight);
  color: var(--color-secondary);
}

/* Burger menu for mobile */
.mobile-menu-toggle {
  display: inline-flex;
  background: var(--color-secondary);
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin-left: 14px;
  cursor: pointer;
  transition: background .17s, box-shadow .17s;
  box-shadow: 0 2px 10px var(--color-shadow);
  z-index: 228;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #437e18;
}

.main-nav {
  flex: 1 0 auto;
}

/* Hide mobile nav by default */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  bottom: 0;
  background: #FFF7F2;
  z-index: 230;
  transform: translateX(100vw);
  transition: transform .32s cubic-bezier(0.36,0.66,0.04,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 36px;
  padding-left: 0;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  position: absolute;
  top: 14px;
  right: 19px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.8rem;
  z-index: 231;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: background .17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #437e18;
}

.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 48px 0 0 0;
}
.mobile-nav a {
  color: var(--color-primary);
  font-size: 1.2rem;
  padding: 14px 32px 14px 24px;
  border-radius: 18px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  transition: background .18s, color .15s;
}
.mobile-nav a:hover, .mobile-nav a.active {
  background: var(--color-secondary);
  color: #fff;
}

/* Hide nav and show burger on mobile */
@media (max-width: 1023px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1024px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ==== HERO SECTION ==== */
.hero-section {
  background: linear-gradient(90deg, #FFF7F2 60%, #F5F7FA 100%);
  padding: 64px 0 42px 0;
  margin-bottom: 38px;
  border-bottom-left-radius: 36px;
  border-bottom-right-radius: 36px;
  box-shadow: 0 2px 18px var(--color-shadow);
}
.hero-section .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.hero-section .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.hero-section h1 {
  margin-bottom: 12px;
  font-size: 2.7rem;
}
.hero-section .subheadline {
  margin-bottom: 18px;
  color: var(--color-primary);
}

/* ==== FOOTER ==== */
footer {
  background: #FFF7F2;
  border-top: 1px solid #ececec;
  padding: 30px 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 7px;
}
.footer-nav a {
  color: var(--color-secondary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  transition: text-decoration 0.18s, color 0.18s;
  opacity: 0.95;
}
.footer-nav a:hover { text-decoration: underline; color: var(--color-primary); }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--color-primary);
  font-size: 1rem;
  text-align: center;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  opacity: 0.87;
}

/* ==== SPECIAL TEXT EFFECTS ==== */
.highlight {
  background: var(--color-warm-bg);
  border-left: 4px solid var(--color-secondary);
  padding: 10px 14px;
  border-radius: 9px;
  margin: 16px 0 8px 0;
  font-weight: 500;
}
.content-note {
  background: var(--color-accent);
  border-radius: 12px;
  padding: 12px 18px;
  margin-top: 18px;
  font-size: 1.01rem;
  color: #384441;
  box-shadow: 0 2px 10px 0 rgba(96, 146, 57, .08);
}

dt {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 13px;
}
dd {
  margin-left: 15px;
  margin-bottom: 7px;
}

/* ==== TABLES ==== */
table th,
table td { border-bottom: 1px solid #ececec; }
table td:last-child,
table th:last-child { border-right: none; }
table tr:last-child td { border-bottom: none; }

/* ==== FORMS (if present in future) ==== */
input, textarea, select {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 10px 13px;
  border: 1px solid #ececec;
  border-radius: 7px;
  background: #fff;
  margin-bottom: 16px;
  transition: border 0.16s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border: 1.5px solid var(--color-secondary);
  box-shadow: 0 2px 8px var(--color-shadow);
}

/* ==== RESPONSIVE LAYOUTS ==== */
@media (max-width: 768px) {
  html { font-size: 15px; }
  .container { padding: 0 10px; }
  .hero-section { padding: 40px 0 25px 0; }
  .hero-section h1 { font-size: 2rem; }
  .feature-grid {
    flex-direction: column;
    gap: 19px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 13px;
  }
  .footer-contact {
    font-size: 0.98rem;
  }
  .section {
    padding: 30px 5px;
    margin-bottom: 30px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }
  .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .feature-item {
    min-width: 0;
    width: 100%;
    padding: 18px 10px 16px 10px;
  }
  .card-container {
    flex-direction: column;
    gap: 14px;
  }
  .card {
    min-width: 0;
    width: 100%;
    padding: 18px 10px 12px 10px;
  }
}

@media (max-width: 480px) {
  html { font-size: 14px; }
  .hero-section h1 { font-size: 1.25rem; }
  .section { padding: 20px 0; }
}

/* ==== TRANSITIONS AND MICRO-INTERACTIONS ==== */
*:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 1.5px;
}
nav a, .btn-primary, .btn-secondary, .btn-danger, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.16s, color 0.18s, transform 0.13s, box-shadow 0.16s;
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FFF7F2;
  box-shadow: 0 -2px 24px 0 rgba(19,66,102,0.12);
  padding: 24px 18px 18px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  z-index: 3031;
  opacity: 0;
  transform: translateY(120%);
  pointer-events: none;
  transition: opacity .32s, transform .32s;
}
.cookie-consent-banner.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-consent-text {
  color: #24313d;
  font-size: 1rem;
  flex: 1 1 220px;
  margin-bottom: 9px;
  max-width: 480px;
}
.cookie-consent-actions {
  display: flex;
  gap: 11px;
  align-items: center;
}
.btn-cookie-accept {
  background: var(--color-secondary);
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 9px 23px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 1rem;
  border: none;
  transition: background .18s;
  margin-right: 2px;
}
.btn-cookie-accept:hover { background: #437e18; color: #fff; }
.btn-cookie-reject {
  background: #e5e5e5;
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 9px 17px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 1rem;
  border: none;
  transition: background .18s, color .14s;
}
.btn-cookie-reject:hover { background: #f6cbc2; color: var(--color-danger); }
.btn-cookie-settings {
  background: none;
  color: var(--color-secondary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border: none;
  padding: 8px 16px;
  border-radius: 16px;
  cursor: pointer;
  text-decoration: underline;
  font-size: 1rem;
  transition: background 0.12s;
}
.btn-cookie-settings:hover { background: #f2ecff; color: var(--color-primary); }

@media (max-width: 768px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 16px 5px 12px 5px;
  }
  .cookie-consent-text { max-width: 98vw; }
}

/* ==== COOKIE SETTINGS MODAL ==== */
.cookie-modal-overlay {
  position: fixed;
  z-index: 4044;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(36, 49, 61, 0.44);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #FFF7F2;
  border-radius: 17px;
  box-shadow: 0 4px 32px 0 rgba(19,66,102,0.16);
  padding: 38px 24px 23px 24px;
  width: 98vw;
  max-width: 400px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 4045;
  animation: modalIn .34s cubic-bezier(0.36,0.66,0.04,1);
}
@keyframes modalIn {
  0% { transform: translateY(80px) scale(.95); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-modal-title {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 9px;
}
.cookie-modal-category {
  background: #fff;
  border-radius: 13px;
  padding: 10px 13px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-primary);
  font-size: 1rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
.cookie-modal-category[aria-disabled] {
  opacity: .5;
}
.cookie-modal h4 {
  margin-bottom: 0;
}
.cookie-switch {
  width: 40px; height: 22px;
  background: #ececec;
  border-radius: 12px;
  position: relative;
  transition: background .18s;
  cursor: pointer;
  display: inline-block;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-switch .slider {
  position: absolute;
  left: 2px; top: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px var(--color-shadow);
  transition: left .18s, background .21s;
}
.cookie-switch input:checked + .slider {
  left: 20px;
  background: var(--color-secondary);
}
.cookie-modal-actions {
  margin-top: 17px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  right: 12px; top: 12px;
  background: var(--color-danger);
  color: #fff;
  border: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 1.09rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #b72216;
}

/* ==== UTILS: FLEX LAYOUT HELPERS ==== */
.flex-row        { display: flex; flex-direction: row; }
.flex-col        { display: flex; flex-direction: column; }
.justify-center  { justify-content: center; }
.align-center    { align-items: center; }
.flex-wrap       { flex-wrap: wrap; }
.gap-20          { gap: 20px; }
.gap-24          { gap: 24px; }

/* ==== ACCESSIBILITY ==== */
[tabindex="0"]:focus,
[tabindex="-1"]:focus,
button:focus,
a:focus, input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* ==== PRINT STYLES ==== */
@media print {
  header, footer, .cookie-consent-banner, .mobile-menu { display: none !important; }
  main, .container { box-shadow: none; background: #fff !important; }
}

/* ==== MISC ==== */
::-webkit-input-placeholder { color: #aaa; opacity: 1; }
::-moz-placeholder { color: #aaa; opacity: 1; }
:-ms-input-placeholder { color: #aaa; opacity: 1; }
::placeholder { color: #aaa; opacity: 1; }

