/* ------------------------------------------------------------
   CSS RESET & BASE STYLES
------------------------------------------------------------ */
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; background: #f8f8f6;}
ol, ul {list-style: none;}
blockquote, q {quotes: none;}
blockquote:before, blockquote:after,
q:before, q:after {content: ''; content: none;}
table {border-collapse: collapse; border-spacing: 0;}
img {max-width: 100%; height: auto; display: block;}

/* ------------------------------------------------------------
   CUSTOM PROPERTIES (FALLBACKS PROVIDED VIA RAW COLORS)
------------------------------------------------------------ */
:root {
  --color-primary: #356A74;
  --color-secondary: #E9F6F8;
  --color-bg: #ffffff;
  --color-accent: #F6D1DE;
  --color-green: #527870;
  --color-earth: #b39479;
  --color-brown: #81674a;
  --color-text: #2c2c24;
  --color-heading: #222821;
  --color-muted: #729689;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --shadow-card: 0 4px 16px rgba(53, 106, 116, 0.08);
  --shadow-hover: 0 4px 28px rgba(53, 106, 116, 0.16);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

/* ------------------------------------------------------------
   TYPOGRAPHY
------------------------------------------------------------ */
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: #F6F9F3;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-heading);
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 6px;
}
p, ul, ol, blockquote {
  margin-bottom: 18px;
  font-size: 1rem;
}
strong {font-weight: 600;}
.subtitle {
  color: var(--color-green);
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: color .2s;
}
a:hover, a:focus {
  color: var(--color-green);
  text-decoration-thickness: 2px;
}

/* Visual hierarchy for cards/headlines */
.section h2, .content-wrapper h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--color-green);
}

/* ------------------------------------------------------------
   LAYOUT - CONTAINERS & SPACING / FLEXBOX ONLY
------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: var(--radius-md);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
.card {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  transition: box-shadow .18s;
}
.card:hover, .card:focus-within {
  box-shadow: var(--shadow-hover);
}
.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: 16px;
  padding: 24px 20px;
  background: #FFF;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 16px rgba(82, 120, 112, 0.09);
  border-left: 7px solid var(--color-primary);
  margin-bottom: 20px;
}
.testimonial-card blockquote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-text);
  font-style: italic;
  line-height: 1.48;
  margin-bottom: 8px;
}
.testimonial-author {
  font-family: var(--font-body);
  color: var(--color-green);
  font-size: 0.98rem;
  font-weight: 600;
  margin-top: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.services-list,
.services-overview,
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.services-list li,
.services-overview li,
.feature-list li {
  background: var(--color-secondary);
  border-radius: var(--radius-sm);
  padding: 20px 18px;
  color: var(--color-text);
  box-shadow: 0 1px 8px rgba(53, 106, 116, 0.05);
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.03rem;
}
.services-list li strong,
.services-overview li strong {
  color: var(--color-primary);
  font-weight: 700;
}
.services-list li .service-cta {
  margin-left: auto;
  background: var(--color-accent);
  color: var(--color-green);
  font-family: var(--font-display);
  border-radius: var(--radius-sm);
  padding: 7px 18px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: none;
  border: none;
  outline: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .18s, color .18s;
}
.services-list li .service-cta:hover, .services-list li .service-cta:focus {
  background: var(--color-primary);
  color: #fff;
}

/**** Cards & General Flex Containers (Spacing) ****/
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/**** Pricing Table ****/
.pricing-table {
  width: 100%;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  box-shadow: var(--shadow-card);
  border: none;
  margin-bottom: 18px;
  font-size: 1rem;
  overflow: hidden;
}
.pricing-table th, .pricing-table td {
  padding: 18px 10px;
  text-align: left;
  border-bottom: 1px solid #ddebe6;
}
.pricing-table th {
  background: var(--color-secondary);
  color: var(--color-green);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.pricing-table tr:last-child td {
  border-bottom: none;
}

/**** CTA BANNERS ****/
.cta-banner {
  background: var(--color-accent);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 20px rgba(237, 179, 200, 0.12);
  text-align: center;
  padding: 38px 20px;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.cta-banner h2 {
  color: var(--color-green);
  font-size: 2rem;
  margin-bottom: 10px;
}
.cta, .primary-btn, .secondary-btn, .mini-cta {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.11rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  margin: 0 8px;
  padding: 13px 36px;
  cursor: pointer;
  box-shadow: 0 1.5px 18px rgba(53, 106, 116, 0.04);
  border: none;
  outline: none;
  text-decoration: none;
  transition: background .22s, color .18s, box-shadow .18s;
  letter-spacing: 0.02em;
}
.primary-btn {
  background: var(--color-primary);
  color: #fff;
}
.primary-btn:hover, .primary-btn:focus {
  background: var(--color-green);
  color: #fff;
  box-shadow: var(--shadow-hover);
}
.secondary-btn {
  background: var(--color-green);
  color: #fff;
}
.secondary-btn:hover, .secondary-btn:focus {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-hover);
}
.mini-cta {
  font-size: 1rem;
  background: none;
  border-bottom: 2px solid var(--color-primary);
  color: var(--color-primary);
  padding: 0 0 4px 0;
  margin: 8px 0 0 0;
  transition: color .2s, border-color .2s;
}
.mini-cta:hover, .mini-cta:focus {
  color: var(--color-green);
  border-color: var(--color-green);
}
.thank-you-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/**** BLOG CARDS ****/
.blog-post-preview {
  background: #fff;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(53, 106, 116, 0.05);
  padding: 20px 22px;
  transition: box-shadow .16s;
}
.blog-post-preview:hover { box-shadow: var(--shadow-hover); }
.read-more {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1rem;
  border-bottom: 1.5px solid var(--color-primary);
  padding-bottom: 1px;
  text-decoration: none;
  transition: color .18s, border-color .18s;
}
.read-more:hover, .read-more:focus {
  color: var(--color-green);
  border-color: var(--color-green);
}

/**** NEWSLETTER BLOCK ****/
.newsletter {
  background: var(--color-secondary);
  border-radius: var(--radius-md);
  padding: 32px 16px;
  box-shadow: 0 2px 8px rgba(53, 106, 116, 0.04);
  text-align: center;
}
.newsletter-signup-note {
  font-family: var(--font-body);
  color: var(--color-brown);
  font-size: 0.98rem;
  margin-top: 15px;
}

/**** FOOTER ****/
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 38px 0 16px 0;
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.footer-nav a {
  color: #fff;
  font-size: 1rem;
  opacity: 0.92;
  text-decoration: underline;
  transition: color .18s, opacity .14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-accent);
  opacity: 1;
}
.footer-info {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.95rem;
  color: #e0f6e6;
  gap: 8px;
  flex-wrap: wrap;
  text-align: center;
}


/* ------------------------------------------------------------
   HEADER / NAVIGATION (DESKTOP & MOBILE BURGER)
------------------------------------------------------------ */
header {
  background: var(--color-bg);
  box-shadow: 0 2px 16px rgba(53, 106, 116, 0.04);
  z-index: 80;
  position: relative;
  padding: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 16px;
}
.logo-link img {
  height: 46px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
}
.main-nav a {
  color: var(--color-primary);
  font-size: 1.02rem;
  font-family: var(--font-display);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 5px 4px;
  transition: color .18s, border-bottom .15s;
  border-bottom: 2px solid transparent;
  border-radius: 2px;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-green);
  border-bottom: 2px solid var(--color-green);
}
.mobile-menu-toggle {
  display: none;
  background: var(--color-accent);
  border: none;
  font-size: 2rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 14px rgba(53,106,116,0.06);
  padding: 6px 13px;
  color: var(--color-primary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background .16s, color .16s;
  margin-left: 18px;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--color-primary);
  color: #fff;
  outline: 2px solid var(--color-primary);
}

/* MOBILE MENU (Overlays full screen) */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(229, 246, 230, 0.98);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(.74,0,.14,1.01);
  box-shadow: 0 4px 32px rgba(53,106,116,0.10);
  padding: 0;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.4rem;
  color: var(--color-primary);
  align-self: flex-end;
  margin: 18px 22px 0 0;
  cursor: pointer;
  padding: 5px;
  transition: color .16s;
  z-index: 1002;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--color-green);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-left: 36px;
  margin-top: 18px;
}
.mobile-nav a {
  color: var(--color-green);
  font-size: 1.15rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  padding: 8px 0;
  transition: color .19s, background .17s;
  border-radius: 5px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-primary);
  background: var(--color-accent);
}

/* Hide nav on mobile */
@media (max-width: 990px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 991px) {
  .mobile-menu {
    display: none !important;
  }
}

/**** Responsive header wrapping ****/
@media (max-width: 700px) {
  header .container {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .logo-link img { height: 38px; }
}

/* ------------------------------------------------------------
   RESPONSIVE PATTERNS
------------------------------------------------------------ */
@media (max-width: 900px) {
  .container {
    max-width: 96vw;
    padding-left: 10px;
    padding-right: 10px;
  }
  .section {
    padding: 28px 7px;
  }
}
@media (max-width: 768px) {
  .content-wrapper, .card-container, .content-grid, .text-image-section {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 18px !important;
  }
  .cta-banner {
    padding: 24px 7px;
  }
  .feature-list,
  .services-list,
  .services-overview {
    gap: 13px;
  }
  .testimonial-card {
    padding: 18px 10px;
  }
  .pricing-table th, .pricing-table td {
    padding: 10px 4px;
    font-size: 0.98rem;
  }
  .newsletter {
    padding: 18px 6px;
  }
}
@media (max-width: 600px) {
  h1 {font-size: 1.65rem;}
  h2 {font-size: 1.25rem;}
  .cta, .primary-btn, .secondary-btn {
    padding: 10px 18px;
    font-size: 1rem;
  }
  .logo-link img { height: 29px; }
}

/* ------------------------------------------------------------
   COOKIE CONSENT BANNER + MODAL
------------------------------------------------------------ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: #fefcea;
  color: #444820;
  box-shadow: 0 -2px 16px rgba(82,120,112,0.06);
  padding: 22px 12px 16px 12px;
  z-index: 3000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
  flex-direction: row;
  flex-wrap: wrap;
  font-size: 1rem;
  border-radius: 23px 23px 0 0;
  opacity: 1;
  transition: opacity .25s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-text {
  flex: 2 1 270px;
  max-width: 420px;
}
.cookie-banner-buttons {
  flex: 1 1 140px;
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: none;
  outline: none;
  cursor: pointer;
  padding: 10px 16px;
  box-shadow: 0 2px 7px rgba(82,120,112,0.08);
  margin: 2px 0;
  background: var(--color-secondary);
  color: var(--color-primary);
  transition: background .16s, color .14s;
}
.cookie-btn.accept {
  background: var(--color-green);
  color: #fff;
}
.cookie-btn.reject {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-btn.settings {
  background: #f4ecdd;
  color: var(--color-text);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-primary);
  color: #fff;
}

/* Cookie Settings Modal */
.cookie-modal-overlay {
  position: fixed; z-index: 5000;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(53, 106, 116, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity .22s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fffaf5;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 32px rgba(53,106,116,.13);
  max-width: 95vw;
  width: 370px;
  padding: 28px 18px 20px 18px;
  position: relative;
  font-family: var(--font-body);
  color: var(--color-text);
  animation: modalShow .34s cubic-bezier(.8,0,.18,1.12);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@keyframes modalShow {
  from {opacity:0;transform:scale(.93) translateY(60px);}
  to {opacity:1;transform:scale(1) translateY(0);}
}
.cookie-modal h3 {
  font-size: 1.18rem;
  margin-bottom: 6px;
  font-family: var(--font-display);
  color: var(--color-green);
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #e4eae1;
  font-size: 1rem;
}
.cookie-modal-category:last-child {border-bottom:none;}
.cookie-modal-category label {
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--color-text);
}
.cookie-toggle {
  position: relative;
  display: inline-flex;
  width: 37px; height: 22px;
  background: #deeede;
  border-radius: 22px;
  transition: background .15s;
}
.cookie-toggle input {
  opacity: 0;
  width: 0; height: 0;
  position: absolute;
}
.cookie-toggle span {
  position: absolute;
  width: 16px; height: 16px;
  left: 3px; top: 3px;
  border-radius: 50%;
  background: var(--color-primary);
  transition: left .17s cubic-bezier(.61,.3,.27,.98), background .12s;
}
.cookie-toggle input:checked + span {
  left: 18px;
  background: var(--color-green);
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 16px;
  border: none;
  background: none;
  font-size: 1.68rem;
  color: var(--color-primary);
  cursor: pointer;
  transition: color .14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--color-green);
}
.cookie-modal-actions {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
/* Responsive for cookie banner */
@media (max-width: 550px) {
  .cookie-banner { flex-direction: column; gap: 14px; align-items: stretch; }
  .cookie-banner-buttons { justify-content: stretch; }
}

/* ------------------------------------------------------------
   ORGANIC VISUAL DETAILS
------------------------------------------------------------ */
section {
  /* subtle leafy shadow */
  box-shadow: 0 2px 28px rgba(127,169,142,0.04);
}
.card, .testimonial-card, .blog-post-preview, .newsletter, .cta-banner {
  background: linear-gradient(122deg,#fffdf9 85%,#e8f1e4 105%);
  /* subtle organic brush border */
  border-bottom-right-radius: 65px 25px;
  border-top-left-radius: 60px 19px;
}
.feature-list li img, .services-overview li img, .services-list li img {
  min-width: 33px;
  max-width: 33px;
  margin-right: 9px;
}

/* ------------------------------------------------------------
   MISC SMALL ELEMENTS
------------------------------------------------------------ */
.contact-details p strong, .contact-block p strong {
  color: var(--color-primary);
}
.contact-block p, .contact-details p {
  font-size: 1rem;
  margin-bottom: 7px;
}

/**** Spacing rules enforcement ****/
section, .card, .card-container > *, .content-wrapper > *, .testimonial-card, .blog-post-preview, .services-list > *, .services-overview > *, .feature-list > * {
  margin-bottom: 20px;
}

/**** Prevent absolute pos for cards/text blocks except decoration (already default) ****/

/**** Prevent overlapping, ensure white space ****/
@media (max-width: 420px) {
  .container {
    padding-left: 2px; padding-right: 2px;
  }
  .testimonial-card, .card {
    padding-left: 7px; padding-right: 7px;
  }
}

/**** Focus visible outline for accessiblity ****/
*:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

/**** Animate buttons, links ****/
.cta, .primary-btn, .secondary-btn, .mini-cta, .cookie-btn {
  transition: background .18s, color .16s, box-shadow .18s, border .14s;
}
a, .main-nav a, .mobile-nav a, .service-cta, .read-more {
  transition: color .14s, background .13s, border .13s;
}

/**** Hide visually but accessible for ava ****/
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}
