/* --- 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,
menu,
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,
main,
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 {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  line-height: 1.6;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  background: #F7F9FA;
  color: #273C47;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #295C2D;
  text-decoration: none;
  transition: color 0.18s cubic-bezier(.4,0,.2,1);
}
a:hover, a:focus {
  color: #F9B233;
  outline: none;
}
strong, b {
  font-weight: 700;
}
ul, ol {
  margin-left: 1.5em;
  padding-left: 0.5em;
}
main {
  min-height: 60vh;
}

/* --- Typography Hierarchy --- */
h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.4rem;
  color: #295C2D;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -1px;
}
h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.8rem;
  color: #295C2D;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #2D3B45;
  margin-bottom: 10px;
}
p {
  font-size: 1rem;
  margin-bottom: 16px;
  color: #273C47;
}
.text-section p,
.text-section ul {
  font-size: 1rem;
  color: #273C47;
}

/* --- Container + Alignment Utility Classes --- */
.container {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- Spacing & Section --- */
section {
  background: #fff;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 16px 0 rgba(35,60,71,0.04);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1.5px 6px 0 rgba(35,60,71,0.08);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px;
  min-width: 260px;
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.16s cubic-bezier(.4,0,.2,1), transform 0.15s;
}
.card:hover {
  box-shadow: 0 4px 20px 0 rgba(41,92,45,0.14);
  transform: translateY(-4px) 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;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  margin-bottom: 24px;
  background: #F6FAFB;
  border-radius: 12px;
  box-shadow: 0 0.5px 2px rgba(41,92,45,0.05);
  border: 1px solid #E3E9EC;
  max-width: 600px;
  color: #273C47;
}
.testimonial-card p {
  color: #273C47;
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.testimonial-card span,
.testimonial-card strong {
  color: #295C2D;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

@media (max-width: 1000px) {
  .container {
    max-width: 95vw;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 28px 6px;
    margin-bottom: 36px;
    border-radius: 12px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .testimonial-card {
    padding: 14px;
    margin-bottom: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .card-container,
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .card {
    min-width: 0;
    width: 100%;
    padding: 16px 8px;
    margin-bottom: 16px;
  }
}

/* --- Header & Navigation --- */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(70,120,142,0.06);
  border-bottom: 1.5px solid #EBF0F2;
  position: sticky;
  top: 0;
  z-index: 60;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 12px;
  padding-bottom: 12px;
}
header img {
  height: 44px;
}
nav {
  display: flex;
  gap: 28px;
  align-items: center;
  font-family: 'Montserrat', Arial, sans-serif;
}
nav a {
  font-size: 1rem;
  font-weight: 500;
  color: #273C47;
  padding: 4px 6px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.18s;
}
nav a:hover, nav a:focus {
  border-bottom: 2px solid #F9B233;
  color: #295C2D;
}
.cta-button {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #295C2D;
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 1.07rem;
  letter-spacing: 0.01em;
  padding: 12px 30px;
  border-radius: 8px;
  box-shadow: 0 0.5px 2px rgba(41,92,45,0.06);
  transition: background 0.16s, box-shadow 0.16s, transform 0.16s;
  cursor: pointer;
  margin-left: 16px;
  white-space: nowrap;
  display: inline-block;
}
.cta-button:hover, .cta-button:focus {
  background: #257329;
  box-shadow: 0 3px 16px 0 rgba(249,178,51,0.11);
  color: #fff;
  transform: translateY(-1.5px) scale(1.015);
}

/* --- Mobile Menu Styling --- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 100;
  background: #295C2D;
  color: #fff;
  font-size: 2.2rem;
  border: none;
  border-radius: 8px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(41,92,45,0.1);
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #F9B233;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(.8,0,.2,1);
  box-shadow: 2px 0 18px rgba(39,60,71,0.15);
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 20px 12px 0;
  background: none;
  color: #295C2D;
  font-size: 2rem;
  border: none;
  cursor: pointer;
  transition: color 0.16s;
}
.mobile-menu-close:focus {
  color: #F9B233;
  outline: 2px solid #F9B233;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 36px 36px 0 36px;
}
.mobile-nav a {
  color: #273C47;
  font-size: 1.18rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 8px 0;
  border-radius: 5px;
  transition: background 0.13s;
}
.mobile-nav a:active,
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: #E8F1EB;
  color: #295C2D;
}
/* Hamburger visibility only on small screens */
@media (max-width: 991px) {
  nav {
    display: none;
  }
  .cta-button {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  header .container {
    flex-direction: row;
    gap: 10px;
  }
}
@media (min-width: 992px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* --- Footer --- */
footer {
  background: #f4f7f8;
  border-top: 1.5px solid #EBF0F2;
  padding: 32px 0 14px 0;
}
footer .container {
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  gap: 20px;
}
footer img {
  height: 36px;
}
footer nav {
  gap: 20px;
  margin: 0 12px;
}
footer nav a {
  color: #295C2D;
  font-weight: 600;
}
footer nav a:hover {
  color: #F9B233;
  border-bottom: 2px solid #F9B233;
}
footer p {
  margin-bottom: 0;
  color: #78868C;
  font-size: 0.98rem;
}
@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* --- List & Icon Customization --- */
ul li, ol li {
  margin-bottom: 12px;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #233945;
}
ul li img {
  height: 22px;
  width: 22px;
  margin-right: 8px;
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #233945;
  color: #fff;
  z-index: 400;
  box-shadow: 0 -2px 20px rgba(39,60,71,0.17);
  padding: 24px 24px;
  font-size: 1rem;
  animation: fadeInUp 0.36s cubic-bezier(.5,0,.2,1);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner .cookie-banner-buttons {
  display: flex;
  gap: 18px;
  margin-left: auto;
}
.cookie-banner button,
.cookie-banner .cookie-settings-btn  {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 7px;
  padding: 8px 18px;
  background: #295C2D;
  color: #fff;
  margin: 0 0 0 6px;
  transition: background 0.13s, color 0.13s, box-shadow 0.15s;
  cursor: pointer;
}
.cookie-banner button:hover,
.cookie-banner button:focus {
  background: #F9B233;
  color: #233945;
  box-shadow: 0 4px 12px 0 rgba(249,178,51,0.08);
}
.cookie-banner .reject {
  background: #dbe6e2;
  color: #273C47;
}
.cookie-banner .reject:hover {
  background: #F9B233;
  color: #233945;
}
.cookie-banner .cookie-settings-btn {
  background: transparent;
  color: #F9B233;
  font-size: 0.97rem;
  border: 1px solid #F9B233;
  padding: 8px 14px;
}
.cookie-banner .cookie-settings-btn:hover,
.cookie-banner .cookie-settings-btn:focus {
  background: #F9B233;
  color: #233945;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.98rem;
    padding: 16px 8px;
  }
  .cookie-banner .cookie-banner-buttons {
    margin-left: 0;
    gap: 10px;
  }
}

/* Cookie modal (for preferences) */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(39,60,71,0.28);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  animation: fadeInSlow 0.21s cubic-bezier(.5,0,.2,1);
}
@keyframes fadeInSlow {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  box-shadow: 0 4px 32px 0 rgba(39,60,71,0.17);
  border-radius: 18px;
  min-width: 320px;
  max-width: 92vw;
  padding: 34px 24px 24px 24px;
  color: #273C47;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: slideUpModal 0.24s cubic-bezier(.5,0,.2,1);
}
@keyframes slideUpModal {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-modal h2 {
  color: #295C2D;
  font-size: 1.32rem;
  margin-bottom: 16px;
}
.cookie-modal .modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  font-size: 1.7rem;
  border: none;
  color: #295C2D;
  cursor: pointer;
  transition: color 0.13s;
}
.cookie-modal .modal-close-btn:hover, .cookie-modal .modal-close-btn:focus {
  color: #F9B233;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  gap: 14px;
}
.cookie-modal label {
  color: #233945;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}
.cookie-modal input[type="checkbox"]:not(:disabled) {
  accent-color: #295C2D;
  width: 19px;
  height: 19px;
}
.cookie-modal input[type="checkbox"]:disabled {
  filter: grayscale(1) opacity(0.65);
}
.cookie-modal .essential {
  opacity: 0.74;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}
.cookie-modal .modal-actions button {
  padding: 8px 20px;
  border-radius: 7px;
  border: none;
  background: #295C2D;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.cookie-modal .modal-actions button:hover {
  background: #F9B233;
  color: #233945;
}

/* --- Button / Interactive --- */
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-radius: 7px;
  padding: 8px 18px;
  transition: background 0.15s, color 0.13s, box-shadow 0.13s, transform 0.12s;
  background: #295C2D;
  color: #fff;
  font-size: 1rem;
}
button:hover, button:focus {
  background: #F9B233;
  color: #233945;
  box-shadow: 0 2px 16px 0 rgba(249,178,51,0.09);
  outline: none;
}

/* --- General Form/Inputs --- */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  padding: 7px 12px;
  border-radius: 6px;
  border: 1.2px solid #C5D1D9;
  background: #FAFCFD;
  margin-bottom: 12px;
  width: 100%;
  box-sizing: border-box;
  transition: border 0.12s;
}
input:focus, textarea:focus, select:focus {
  border-color: #295C2D;
  outline: none;
}

/* --- Animations/Micro-interactions --- */
.card,
.cta-button,
button,
.testimonial-card,
.mobile-menu,
.cookie-modal {
  will-change: transform, box-shadow, opacity;
}

/* --- Visual Utility Classes --- */
.rounded {
  border-radius: 14px;
}
.shadow-light {
  box-shadow: 0 1px 5px rgba(35,60,71,0.08);
}
.bg-primary { background: #295C2D !important; color:#fff !important; }
.bg-secondary { background: #F9B233 !important; color: #233945 !important; }
.bg-accent { background: #fff !important; color: #295C2D !important; }

/* --- Accessibility --- */
::-webkit-selection {
  background: #F9B233;
  color: #233945;
}
::selection {
  background: #F9B233;
  color: #233945;
}

/* --- Specific: Cards/Features/Spacing --- */
.features, .feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
}
.feature-item {
  min-width: 220px;
  background: #F6FAFB;
  border-radius: 10px;
  border: 1.2px solid #E3E9EC;
  padding: 16px 20px;
  font-size: 1rem;
  color: #295C2D;
}

@media (max-width: 768px) {
  .features, .feature-list {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 18px;
  }
  .feature-item {
    padding: 12px 10px;
    min-width: 0;
  }
}

/* --- Miscellaneous --- */
::-webkit-input-placeholder { color: #B1B8BC; }
::-moz-placeholder { color: #B1B8BC; }
:-ms-input-placeholder { color: #B1B8BC; }
::placeholder { color: #B1B8BC; }

hr {
  border: none;
  border-top: 1.2px solid #EBF0F2;
  margin: 30px 0;
}

/* --- Helper classes for flexbox and spacing --- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-center { align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mb-20 { margin-bottom: 20px; }
.mb-32 { margin-bottom: 32px; }
.mt-20 { margin-top: 20px; }

/* --- Hide visually for accessiblity --- */
.sr-only {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Print styles --- */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  section, .section {
    background: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: 28px;
  }
}
