/* ---------------------------------------------------
   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;
}
html {
  -webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape */
  height: 100%;
}
body {
  background: #fff;
  min-height: 100vh;
  color: #21503C;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #E88A25;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #B05B00;
  outline: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
li {
  margin-bottom: 8px;
}
strong {
  font-weight: 700;
}
hr {
  border: none;
  border-top: 1.5px solid #DFE8D8;
  margin: 32px 0;
}
input, button, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
}

/* ---------------------------------------------------
   THEME COLORS & TYPOGRAPHY
--------------------------------------------------- */
:root {
  --primary: #2D6A50;
  --secondary: #DFE8D8;
  --accent: #E88A25;
  --primary-dark: #21503C;
  --white: #fff;
  --black: #141E19;
  --grey: #F7F7F7;
  --shadow-default: 0 2px 8px rgba(33,80,60, 0.12);
  --shadow-bold: 0 4px 16px rgba(46, 106, 80, 0.15);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 7px;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  src: local('Montserrat-Bold'), local('Montserrat Bold'), url('https://fonts.gstatic.com/s/montserrat/v24/JTURjIg1_i6t8kCHKm45_cJD3gnD-w.woff2') format('woff2');
  unicode-range: U+0000-00FF;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto Regular'), local('Roboto-Regular'), url('https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Me5WZLCzYlKw.woff2') format('woff2');
  unicode-range: U+0000-00FF;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 24px;
  line-height: 1.12;
}
h2 {
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
  line-height: 1.16;
}
h3 {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 14px;
}
h4, h5, h6 {
  color: var(--primary-dark);
  font-size: 1.1rem;
  margin-bottom: 10px;
}
p {
  margin-bottom: 18px;
  font-size: 1rem;
  color: var(--primary-dark);
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--secondary);
  border-radius: var(--radius-lg);
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  margin-bottom: 12px;
}

/* ---------------------------------------------------
   HEADER / NAVIGATION
--------------------------------------------------- */
header {
  background: var(--white);
  padding: 0 0;
  box-shadow: 0 2px 16px rgba(33,80,60, 0.16);
  width: 100%;
  z-index: 90;
  position: sticky;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  min-height: 66px;
}
header > a img {
  height: 48px;
  margin: 12px 17px 12px 32px;
  display: block;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  margin-right: 0;
}
header nav a {
  color: var(--primary-dark);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.17s, color 0.17s;
}
header nav a:hover,
header nav a:focus {
  background: var(--accent);
  color: var(--white);
}
.cta-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 12px 32px;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  margin-left: 36px;
  margin-right: 24px;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-default);
  transition: background 0.18s, transform 0.13s, box-shadow 0.19s;
  display: inline-block;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px) scale(1.04);
  box-shadow: var(--shadow-bold);
}
.cta-secondary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  background: var(--primary-dark);
  color: var(--white);
  border: none;
  padding: 11px 30px;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  margin-top: 16px;
  transition: background 0.19s, transform 0.13s, box-shadow 0.16s;
  box-shadow: var(--shadow-default);
  text-align: center;
  cursor: pointer;
  display: inline-block;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-1px) scale(1.035);
  box-shadow: var(--shadow-bold);
}
.mobile-menu-toggle {
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.55rem;
  width: 48px;
  height: 48px;
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: 32px;
  cursor: pointer;
  transition: background 0.16s, color 0.15s, transform 0.13s;
  z-index: 102;
}
.mobile-menu-toggle:hover {
  background: var(--primary-dark);
  color: var(--accent);
}

/* ---------------------------------------------------
   HERO SECTION
--------------------------------------------------- */
.hero {
  background: linear-gradient(98deg, var(--secondary) 60%, #fff 100%);
  padding: 60px 0 36px 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  min-height: 260px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 220px;
  gap: 0;
}
.hero .content-wrapper {
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 680px;
}
.hero h1 {
  color: var(--primary-dark);
  font-size: 2.3rem;
  text-shadow: 0 4px 20px rgba(33,106,80,0.08);
}
.hero p {
  font-size: 1.22rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 10px;
}

/* ---------------------------------------------------
   FLEXBOX CONTAINERS & LAYOUTS
--------------------------------------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  padding: 30px 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-default);
  margin-bottom: 20px;
  flex: 1 1 230px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 250px;
  transition: box-shadow 0.15s, transform 0.11s;
}
.card:hover, .card:focus-within {
  box-shadow: var(--shadow-bold);
  transform: translateY(-3px) scale(1.016);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.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;
  margin-bottom: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: var(--white);
  color: var(--primary-dark);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 10px rgba(88,105,80,0.08);
  margin-bottom: 20px;
  min-width: 250px;
  max-width: 520px;
  font-size: 1.09rem;
  position: relative;
}
.testimonial-card span {
  font-weight: bold;
  color: var(--accent);
  font-size: 0.97rem;
  margin-top: 5px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--secondary);
  padding: 20px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-default);
}

/* Mandatory spacing between cards & sections */
section {
  margin-bottom: 60px;
}

/* ---------------------------------------------------
   FEATURE GRID / SPECIALTY GRID
--------------------------------------------------- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: stretch;
  justify-content: flex-start;
}
.feature-grid > div {
  background: var(--white);
  padding: 28px 18px 26px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 10px rgba(33, 80, 60, 0.09);
  width: 235px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  transition: box-shadow 0.14s, transform 0.14s;
  border: 2.5px solid transparent;
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: var(--shadow-bold);
  border: 2.5px solid var(--accent);
  transform: translateY(-3px) scale(1.025);
}
.feature-grid img {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
}

/* ---------------------------------------------------
   CTA & BUTTONS
--------------------------------------------------- */
button, .cta-primary, .cta-secondary {
  outline: none;
}
button:active, .cta-primary:active, .cta-secondary:active {
  transform: scale(0.96);
}
button:focus-visible {
  outline: 3px solid var(--accent);
}

/* Custom input style for search fields etc. */
input[type="text"], input[type="email"], textarea {
  border: 2px solid var(--secondary);
  border-radius: var(--radius-md);
  padding: 9px 15px;
  font-size: 1rem;
  margin-right: 8px;
  background: var(--grey);
  transition: border 0.17s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border: 2px solid var(--accent);
}

/* Topic tags for blog */
.topic-tag {
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 0.97rem;
  font-weight: 670;
  display: inline-block;
  margin: 0 6px 8px 0;
  letter-spacing: 0.01em;
  transition: box-shadow 0.12s;
  box-shadow: 0 1px 6px rgba(232,138,37,0.10);
}

/* ---------------------------------------------------
   FOOTER
--------------------------------------------------- */
footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 38px 0 0 0;
  font-size: 0.99rem;
  box-shadow: 0 -2px 10px rgba(33,80,60,0.09);
}
footer .container {
  padding: 0 22px;
}
footer .content-wrapper {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 14px;
}
footer nav a {
  color: var(--secondary);
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 2px 9px;
  border-radius: var(--radius-sm);
  transition: color 0.16s, background 0.16s;
}
footer nav a:hover {
  background: var(--accent);
  color: var(--white);
}
footer .text-section {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
footer .text-section p{
  color: var(--white);
}
footer a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: bold;
}
footer a:hover {
  color: var(--white);
  background: var(--accent);
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 2.5px 4.5px;
}

/* ---------------------------------------------------
   MOBILE MENU
--------------------------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(33, 80, 60, 0.97);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.43,.21,.2,1.17);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  overflow-y: auto;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: var(--accent);
  color: var(--white);
  border: none;
  font-size: 2.1rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  margin: 28px 22px 18px 0;
  align-self: flex-end;
  box-shadow: 0 2px 12px rgba(88,105,80,0.14);
  transition: background 0.13s, color 0.13s, transform 0.12s;
  cursor: pointer;
  z-index: 210;
}
.mobile-menu-close:hover {
  background: var(--primary-dark);
  color: var(--accent);
  transform: scale(1.08);
}
.mobile-nav {
  width: 100vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  align-items: flex-start;
  padding: 16px 36px;
}
.mobile-nav a {
  color: var(--white);
  font-size: 1.3rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: var(--radius-md);
  padding: 12px 7px;
  transition: background 0.16s, color 0.13s, transform 0.08s;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: var(--primary-dark);
  transform: translateX(6px) scale(1.06);
}

/* Hide menu & show burger on mobile */
@media (max-width: 991px) {
  header nav, .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 992px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ---------------------------------------------------
   COOKIE CONSENT BANNER & MODAL
--------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: var(--white);
  box-shadow: 0 -2px 16px rgba(33,80,60,0.13);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 32px;
  z-index: 9999;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  animation: cookieSlideUp 0.45s cubic-bezier(.49,.03,.26,1.13) 1;
}
@keyframes cookieSlideUp {
  from { transform: translateY(120%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  flex: 1 1 auto;
  margin: 0;
  font-size: 1.05rem;
  color: var(--primary-dark);
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-md);
  border: none;
  padding: 11px 20px;
  cursor: pointer;
  transition: background 0.17s, color 0.16s, transform 0.1s;
  box-shadow: var(--shadow-default);
}
.cookie-accept {
  background: var(--accent);
  color: var(--white);
}
.cookie-accept:hover, .cookie-accept:focus {
  background: var(--primary-dark);
}
.cookie-reject {
  background: var(--secondary);
  color: var(--primary-dark);
  border: 2px solid var(--accent);
}
.cookie-reject:hover, .cookie-reject:focus {
  background: var(--secondary);
  color: var(--accent);
  border-color: var(--primary-dark);
}
.cookie-settings {
  background: var(--white);
  color: var(--primary-dark);
  border: 2px solid var(--accent);
}
.cookie-settings:hover, .cookie-settings:focus {
  background: var(--secondary);
  color: var(--accent);
}

.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(44,60,45,0.55);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInModal 0.26s;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--white);
  padding: 34px 28px 28px 28px;
  border-radius: var(--radius-lg);
  max-width: 380px;
  width: 96vw;
  box-shadow: 0 2px 28px rgba(33,80,60,0.13);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal h2 {
  color: var(--primary);
  font-size: 1.35rem;
  margin-bottom: 12px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  font-size: 1.01rem;
  color: var(--primary-dark);
}
.cookie-category label {
  font-weight: 500;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 12px;
  right: 10px;
  font-size: 1.55rem;
  background: transparent;
  color: var(--primary-dark);
  border: none;
  cursor: pointer;
  padding: 2.5px 8px;
  z-index: 10;
  border-radius: var(--radius-sm);
  transition: background 0.13s, color 0.13s;
}
.cookie-modal .close-modal:hover {
  background: var(--accent);
  color: var(--white);
}

/* Custom switches for cookie toggles */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--secondary);
  border-radius: 20px;
  transition: background 0.2s;
}
.cookie-switch input:checked + .cookie-slider {
  background: var(--accent);
}
.cookie-slider:before {
  content: '';
  position: absolute;
  height: 14px; width: 14px;
  left: 3px; bottom: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(33,80,60,0.14);
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(18px);
}

/*----------------------------------------------------
   MISC: LISTS, FILTERS, PROPERTY CLASSES
----------------------------------------------------*/
li > img {
  width: 23px;
  height: 23px;
  margin-right: 8px;
  vertical-align: middle;
}

/* Section spacing adjustments */
section > .container:not(:first-child) {
  margin-top: 20px;
}

/* List highlight */
ul > li > strong {
  color: var(--primary);
}
/* Inputs inside paragraphs (blog search) */
p input[type="text"] {
  display: inline-block;
  margin-left: 10px;
  vertical-align: middle;
  width: 210px;
  max-width: 95%;
}

/* ---------------------------------------------------
   RESPONSIVE DESIGN
--------------------------------------------------- */
@media (max-width: 1100px) {
  .container {
    padding: 0 14px;
  }
  .feature-grid > div,
  .card {
    min-width: 170px;
    width: 190px;
  }
}
@media (max-width: 900px) {
  .feature-grid > div,
  .card {
    width: 100%;
    min-width: 150px;
    max-width: 100%;
  }
  .feature-grid, .card-container, .content-grid {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .section, section {
    padding: 30px 6px;
    margin-bottom: 39px;
  }
  .hero {
    padding: 36px 0 24px 0;
    min-height: 140px;
  }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.3rem; }
  .footer .content-wrapper,
  footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .text-image-section, .content-grid, .card-container, .feature-grid {
    flex-direction: column;
    align-items: stretch !important;
    gap: 17px;
  }
  .feature-grid > div,
  .card {
    width: 100%;
    min-width: unset;
  }
  .testimonial-card {
    min-width: unset;
    max-width: 98vw;
  }
  .mobile-menu {
    padding-top: 0;
  }
}
@media (max-width: 600px) {
  header > a img {
    height: 34px;
    margin: 9px 5px 9px 13px;
  }
  .hero {
    padding: 18px 0 18px 0;
  }
  .container {
    padding: 0 6px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 8px;
    font-size: 0.98rem;
  }
}

/* ---------------------------------------------------
   UTILITIES & MICRO-INTERACTIONS
--------------------------------------------------- */
::-webkit-scrollbar { width: 8px; background: #DFE8D8; }
::-webkit-scrollbar-thumb { background: #E88A25; border-radius: 7px; }
::-webkit-selection { background: #E88A25; color: #fff; }
::selection { background: #E88A25; color: #fff; }

[tabindex]:focus:not(:focus-visible) {
  outline: none;
}

/* Card hover micro-animation */
.card, .feature-grid > div {
  will-change: box-shadow, transform;
}

@media (hover: none) {
  .card:hover, .feature-grid > div:hover {
    transform: none;
    box-shadow: var(--shadow-bold);
  }
}

/* ---------------------------------------------------
   PRINT OPTIMIZATIONS
--------------------------------------------------- */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal-overlay, footer {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .section, section {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
  }
}
