/* ============================================================================
   CSS RESET & NORMALIZE (Mobile-first)
============================================================================ */
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
{ margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline; box-sizing: border-box; }
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background: #f9f7f4;
  color: #24334d;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 16px;
}
img {
  max-width: 100%;
  height: auto;
  border: none;
  display: block;
}
a {
  color: #24334d;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #66b98a;
}
ul, ol {
  list-style: disc inside;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
}
button:focus, a:focus {
  outline: 2px solid #66b98a;
  outline-offset: 2px;
}

/* ============================================================================
   Brand Font Families – Elegant & Classic
============================================================================ */
:root {
  --font-display: 'Georgia', 'Times New Roman', Times, serif;
  --font-body: 'Georgia', 'Times New Roman', Times, serif;
  --brand-primary: #24334d;
  --brand-secondary: #66b98a;
  --brand-accent: #f2ede5;
  --brand-offwhite: #f9f7f4;
  --shadow-card: 0 6px 20px rgba(36,51,77,0.07), 0 1.5px 4px rgba(36,51,77,0.09);
  --radius-large: 18px;
  --radius-soft: 10px;
  --transition: all 0.25s cubic-bezier(.57,.15,.39,.94);
}

/* ============================================================================
   Typography - Elegant Classic Scale
============================================================================ */
h1 {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  color: var(--brand-primary);
}
h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: var(--brand-primary);
}
h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 10px;
  color: var(--brand-primary);
}
p, ul, ol, li {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--brand-primary);
}
strong {
  font-weight: 600;
  color: var(--brand-secondary);
}
.section > .container > h2 {
  margin-bottom: 24px;
}

/* ============================================================================
   Consistent Spacing & Classic Proportions
============================================================================ */
.container {
  width: 100%;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-card);
  padding: 32px 28px;
  min-width: 260px;
  flex: 1 1 265px;
  transition: box-shadow 0.15s;
}
.card:hover {
  box-shadow: 0 14px 38px rgba(36,51,77,0.11), 0 3px 8px rgba(36,51,77,0.13);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 20px 26px;
  background: #fff;
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  min-width: 260px;
  flex: 1 1 260px;
  color: #24334d;
  font-size: 1.07rem;
}
.testimonial-card p {
  color: #24334d;
}
.testimonial-card strong {
  color: #66b98a;
  font-weight: 700;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
/* Ensure minimum 20px margin/gap between all content cards/sections */
.section > *, .card + .card, .testimonial-card + .testimonial-card {
  margin-top: 0;
}
ul li, ol li {
  margin-bottom: 8px;
  font-size: 1.02rem;
}

/* ============================================================================
   Header – Brand Bar, Navigation, CTA
============================================================================ */
header {
  background: var(--brand-accent);
  box-shadow: 0 1.5px 10px rgba(36,51,77,.05);
  font-family: var(--font-display);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
}
header nav a {
  font-size: 1.08rem;
  color: var(--brand-primary);
  font-weight: 400;
  letter-spacing: 0.2px;
  padding: 4px 2px;
  border-radius: 6px;
  transition: color .18s, background .18s;
}
header nav a:hover,
header nav a.active {
  color: var(--brand-secondary);
  background: #eaf7f3;
}
header img {
  height: 44px;
  margin-right: 24px;
}
.cta-primary, .cta-secondary {
  font-family: var(--font-display);
  border-radius: var(--radius-soft);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: .7px;
  padding: 11px 28px;
  margin-left: 20px;
  transition: var(--transition);
  border: none;
  box-shadow: 0 1.5px 8px rgba(102,185,138,0.04);
  text-align: center;
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
}
.cta-primary {
  background: var(--brand-secondary);
  color: #fff;
  border: 2px solid var(--brand-secondary);
}
.cta-primary:hover, .cta-primary:focus {
  background: #48996a;
  border-color: #48996a;
}
.cta-secondary {
  background: #fff;
  color: var(--brand-secondary);
  border: 2px solid var(--brand-secondary);
  margin-left: 0;
}
.cta-secondary:hover, .cta-secondary:focus {
  color: #fff;
  background: var(--brand-secondary);
}
.header-spacer { height: 74px; }

/* ============================================================================
   Footer
============================================================================ */
footer {
  background: var(--brand-accent);
  padding: 32px 0 18px 0;
  font-family: var(--font-body);
  border-top: 1px solid #e1dfdb;
}
footer .container {
  flex-direction: column;
  align-items: center;
}
footer .content-wrapper {
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
}
footer nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 1.01rem;
}
footer nav a {
  color: var(--brand-primary);
  font-weight: 400;
  padding: 2px 4px;
  text-decoration: underline dotted;
  border-radius: 6px;
  transition: color .17s, background .15s;
}
footer nav a:hover {
  background: #eaf7f3;
  color: var(--brand-secondary);
  text-decoration: underline;
}
footer .text-section p {
  font-size: 0.98rem;
  color: #51627c;
  line-height: 1.6;
}

/* ============================================================================
   Cards, Testimonials, Lists
============================================================================ */
.card {
  background: #fff;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  padding: 32px 28px;
  color: var(--brand-primary);
}
.card:hover {
  box-shadow: 0 17px 42px rgba(36,51,77,0.13), 0 4px 12px rgba(36,51,77,0.14);
}
.testimonial-card {
  background: #fff;
  border-left: 4px solid var(--brand-secondary);
  box-shadow: var(--shadow-card);
  color: #24334d;
  min-width: 260px;
  flex: 1 1 290px;
  align-items: flex-start;
  font-family: var(--font-body);
}
.testimonial-card span {
  font-size: 1.18rem;
  color: #d6a34d;
  font-family: var(--font-display);
}

/* ============================================================================
   Forms & Newsletter
============================================================================ */
form {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}
input[type="email"] {
  padding: 11px 20px;
  border-radius: var(--radius-soft);
  border: 1.6px solid #c7c7c7;
  background: #fff;
  font-size: 1.02rem;
  min-width: 200px;
  box-shadow: none;
  margin-right: 4px;
}
input[type="email"]:disabled, button[type="button"]:disabled {
  background: #f6f2ec;
  opacity: 0.7;
  cursor: not-allowed;
}
button[type="submit"], button[type="button"] {
  padding: 11px 24px;
  background: var(--brand-secondary);
  color: #fff;
  border-radius: var(--radius-soft);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--brand-secondary);
  transition: var(--transition);
  cursor: pointer;
}
button[type="submit"]:hover, button[type="button"]:hover {
  background: #48996a;
  border-color: #48996a;
}
form button:disabled {
  background: #abc9b7;
  color: #fff;
  cursor: not-allowed;
}

/* ============================================================================
   Burger Mobile Menu – Hamburger & Overlay
============================================================================ */
.mobile-menu-toggle {
  display: flex;
  position: fixed;
  right: 20px;
  top: 18px;
  z-index: 999;
  background: #fff;
  color: var(--brand-primary);
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(36,51,77,.11);
  font-size: 2.2rem;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid #e7dfd4;
  transition: background .18s, color .18s, box-shadow .18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #f2ede5;
  color: var(--brand-secondary);
  box-shadow: 0 8px 20px rgba(102,185,138,0.10);
}
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(36,51,77, 0.95);
  transform: translateX(-100%);
  transition: transform .31s cubic-bezier(.87,.04,.12,.98);
  z-index: 1999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 46px;
}
.mobile-menu.mobile-menu-open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  right: 24px;
  top: 20px;
  color: #fff;
  background: transparent;
  font-size: 2.3rem;
  border: none;
  cursor: pointer;
  z-index: 2001;
}
.mobile-nav {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  padding-left: 38px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.36rem;
  font-weight: 500;
  letter-spacing: .3px;
  padding: 8px 0 8px 6px;
  border-radius: 8px;
  transition: background 0.16s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-secondary);
  color: #fff;
}
/* Hide desktop nav on mobile, hide mobile menu on desktop */
header nav, .cta-primary {
  display: none;
}
@media (min-width: 992px) {
  .mobile-menu-toggle, .mobile-menu { display: none; }
  header nav, .cta-primary { display: flex; }
  header nav { gap: 22px; }
  header .container { flex-direction: row; }
}

/* ============================================================================
   Cookie Consent Banner & Modal
============================================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #fff;
  border-top: 2px solid var(--brand-secondary);
  box-shadow: 0 -5px 18px rgba(36,51,77,0.09);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 14px 18px 14px;
  gap: 18px;
  font-family: var(--font-body);
}
.cookie-banner p {
  font-size: 1.01rem;
  color: var(--brand-primary);
  text-align: center;
  margin-bottom: 8px;
}
.cookie-btn-row {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: center;
  margin-top: 2px;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-size: 1.01rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-soft);
  border: none;
  cursor: pointer;
  transition: background .17s, color .17s;
}
.cookie-banner .cookie-accept {
  background: var(--brand-secondary);
  color: #fff;
}
.cookie-banner .cookie-accept:hover {
  background: #48996a;
}
.cookie-banner .cookie-reject {
  background: #fff5f2;
  border: 1.1px solid #e9c4be;
  color: #c95c3d;
}
.cookie-banner .cookie-reject:hover {
  background: #f2ede5;
}
.cookie-banner .cookie-settings {
  background: #fff;
  border: 1.4px solid var(--brand-secondary);
  color: var(--brand-secondary);
}
.cookie-banner .cookie-settings:hover {
  background: #f2ede5;
  color: var(--brand-primary);
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 10005;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(36,51,77,0.45);
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  pointer-events: none;
  opacity: 0;
  transition: opacity .22s cubic-bezier(.66,.01,.13,.98);
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  color: var(--brand-primary);
  border-radius: var(--radius-large) var(--radius-large) 0 0;
  width: 98vw; max-width: 415px;
  padding: 30px 26px 24px 26px;
  margin: 0 1vw 19vh 1vw;
  box-shadow: 0 10px 40px rgba(36,51,77,0.13);
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1rem;
  transform: translateY(80px);
  opacity: 0;
  transition: opacity .23s, transform .23s;
}
.cookie-modal-overlay.active .cookie-modal {
  opacity: 1;
  transform: translateY(0);
}
.cookie-modal h3 {
  font-family: var(--font-display);
  font-size: 1.11rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--brand-primary);
}
.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-option {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 5px;
}
.cookie-option label {
  font-size: 1rem;
}
.cookie-option input[type="checkbox"] {
  accent-color: var(--brand-secondary);
  width: 20px;
  height: 20px;
  border-radius: 5px;
  margin-right: 4px;
}
.cookie-modal .cookie-modal-close {
  background: #fff;
  color: var(--brand-primary);
  font-size: 1.43rem;
  border: none;
  border-radius: 9px;
  position: absolute;
  right: 38px;
  top: 23px;
  cursor: pointer;
  padding: 3px 12px 1px 12px;
  transition: background .15s;
}
.cookie-modal .cookie-modal-close:hover {
  background: #f2ede5;
  color: var(--brand-secondary);
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal-actions .cookie-save {
  background: var(--brand-secondary);
  color: #fff;
  border: 1.2px solid var(--brand-secondary);
  border-radius: var(--radius-soft);
  font-weight: 600;
  font-size: 1.03rem;
  padding: 9px 22px;
  cursor: pointer;
  transition: background .17s;
}
.cookie-modal-actions .cookie-save:hover {
  background: #48996a;
}
.cookie-modal-actions .cookie-cancel {
  background: #fff;
  color: #24334d;
  border: 1.2px solid #ccc;
  border-radius: var(--radius-soft);
  font-size: 1.03rem;
  padding: 9px 22px;
  cursor: pointer;
  transition: background .12s;
}
.cookie-modal-actions .cookie-cancel:hover {
  background: #f2ede5;
  color: var(--brand-secondary);
}
@media (min-width: 600px) {
  .cookie-modal {
    border-radius: var(--radius-large);
    margin: 0 auto 16vh auto;
  }
}

/* ============================================================================
   Small Components, Misc
============================================================================ */
span, .accent {
  color: var(--brand-secondary);
}
hr {
  border: none;
  border-top: 1px solid #e3e3e3;
  margin: 18px 0;
}

/* ============================================================================
   Responsive Design – Mobile-First (Flexbox only)
============================================================================ */
@media (max-width: 992px) {
  .container {
    padding: 0 10px;
  }
  header .container, footer .container, .section .container {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .content-wrapper, .text-section, .content-grid, .card-container {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .testimonial-card, .card {
    min-width: 0;
    width: 100%;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .section {
    padding: 32px 7px;
    margin-bottom: 38px;
  }
  h1 {
    font-size: 1.45rem;
    margin-bottom: 14px;
  }
  h2 {
    font-size: 1.15rem;
    margin-bottom: 10px;
  }
  .container {
    padding: 0 6px;
    max-width: 99vw;
  }
  .content-wrapper, .text-section, .content-grid, .card-container {
    gap: 14px;
  }
  .card, .testimonial-card {
    padding: 20px 13px;
    border-radius: 13px;
  }
  footer {
    padding: 18px 0 12px 0;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
}

/* ============================================================================
   Utility classes
============================================================================ */
.d-none { display: none !important; }
.d-flex { display: flex !important; }
.flex-row { flex-direction: row !important; }
.flex-col { flex-direction: column !important; }
.align-center { align-items: center !important; }
.gap-10 { gap: 10px !important; }
.gap-20 { gap: 20px !important; }

/* ============================================================================
   Micro-interactions, Animations
============================================================================ */
.cta-primary, .cta-secondary, button, a {
  transition: background .18s, color .16s, box-shadow .15s;
}
.card, .testimonial-card {
  transition: box-shadow .22s cubic-bezier(.68,.06,.19,1.02);
}
.card:active, .testimonial-card:active {
  box-shadow: 0 6px 18px rgba(36,51,77,0.07), 0 2px 5px rgba(36,51,77,0.08);
}
input, textarea {
  transition: border-color .18s;
}
input:focus, textarea:focus {
  border-color: var(--brand-secondary);
}

/* ============================================================================
   Print improvements
============================================================================ */
@media print {
  * { color: #111 !important; background: #fff !important; box-shadow: none !important; }
  a, a:visited { color: #111 !important; text-decoration: underline; }
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-overlay { display: none !important; }
}
