/* ===============================================================================
   CSS RESET & BASE NORMALIZATION
============================================================================== */
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;
  box-sizing: border-box;
  vertical-align: baseline;
}
footer p {
  color: white;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }

body {
  line-height: 1.5;
  background: #F5F7F4;
  color: #1B3A2F;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a { color: inherit; text-decoration: none; transition: color 0.2s; }
button { font-family: inherit; }

ul, ol { margin: 0 0 16px 22px; }
li { margin-bottom: 8px; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #1B3A2F;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: 2.25rem; margin-bottom: 24px; line-height: 1.15; }
h2 { font-size: 1.5rem; margin-bottom: 20px; line-height: 1.20; }
h3 { font-size: 1.13rem; margin-bottom: 14px; line-height: 1.22; }
.subheadline { font-size: 1.125rem; color: #5C665B; margin-bottom: 28px; font-weight: 500; }

strong { font-weight: 700; }

p { margin-bottom: 16px; color: #273D34; }

/* ===============================================================================
   COLOR PALETTE
     primary:   #1B3A2F    - Deep pine green
     secondary: #D6B56B    - Wheat/golden beige
     accent:    #F5F7F4    - Soft light grey (BG)
============================================================================== */
:root {
  --primary: #1B3A2F;
  --secondary: #D6B56B;
  --accent: #F5F7F4;
  --grey-light: #E6EAEB;
  --grey-medium: #C2C8C4;
  --text-dark: #1B3A2F;
  --text-light: #FFFFFF;
}


/* ===============================================================================
   LAYOUT WRAPPERS & SPACING
============================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
@media (max-width: 992px) {
  .section { padding: 32px 10px; margin-bottom: 40px; }
}
@media (max-width: 600px) {
  .section { padding: 22px 4px; margin-bottom: 30px; }
}

.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(27,58,47,0.04);
  padding: 36px 30px;
  margin-bottom: 16px;
}
@media (max-width: 768px) {
  .text-section {
    padding: 22px 10px;
    border-radius: 12px;
  }
}


/* ===============================================================================
   HEADER & NAVIGATION
============================================================================== */
header {
  background: #fff;
  border-bottom: 1px solid var(--grey-light);
  box-shadow: 0 2px 12px 0 rgba(27,58,47,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px;
  gap: 24px;
  min-height: 70px;
}
header img {
  height: 44px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 26px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.01rem;
  color: var(--primary);
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 5px;
  transition: background 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--accent);
  color: var(--secondary);
  outline: none;
}

.cta-primary {
  padding: 10px 28px;
  background: var(--primary);
  color: var(--text-light);
  border: none;
  border-radius: 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.07rem;
  box-shadow: 0 1px 8px rgba(27,58,47,0.10);
  transition: background 0.16s, box-shadow 0.26s, transform 0.18s;
  cursor: pointer;
  text-align: center;
  margin-left: 24px;
  min-width: 140px;
  letter-spacing: 0.01em;
  display: inline-block;
  outline: none;
}
.cta-primary:hover, .cta-primary:active, .cta-primary:focus {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(214,181,107, 0.18);
  transform: translateY(-2px) scale(1.045);
  outline: none;
}

.cta-secondary {
  padding: 10px 28px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 1px 8px rgba(27,58,47,0.05);
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
  margin-top: 18px;
  display: inline-block;
  outline: none;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--primary);
  color: var(--text-light);
  border-color: var(--secondary);
  outline: none;
}

/* Hide mobile menu controls on desktop */
.mobile-menu-toggle,
.mobile-menu {
  display: none;
}

@media (max-width: 900px) {
  .main-nav, .cta-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 2.3rem;
    color: var(--primary);
    position: absolute;
    top: 23px;
    right: 24px;
    z-index: 102;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
  }
  .mobile-menu-toggle:focus {
    color: var(--secondary);
    outline: 2px solid var(--secondary);
    border-radius: 4px;
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1050;
    background: rgba(27,58,47,0.96);
    transform: translateX(-100%);
    transition: transform 0.38s cubic-bezier(0.22, 0.61, 0.36, 1);
    opacity: 1;
    pointer-events: all;
  }
  .mobile-menu.open { /* Add open class with JS */
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-menu-close {
    background: none;
    border: none;
    font-size: 2.2rem;
    color: var(--secondary);
    align-self: flex-end;
    margin: 24px 24px 4px 0;
    cursor: pointer;
    transition: color 0.16s;
    z-index: 1080;
  }
  .mobile-menu-close:focus {
    color: var(--accent);
    outline: 2px solid var(--accent);
    border-radius: 4px;
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
    margin-top: 36px;
  }
  .mobile-nav a {
    font-size: 1.2rem;
    font-family: 'Montserrat', Arial, sans-serif;
    color: var(--text-light);
    padding: 16px 32px;
    border-radius: 9px;
    transition: background 0.13s, color 0.13s;
    text-align: center;
    font-weight: 600;
    min-width: 200px;
    margin-bottom: 6px;
  }
  .mobile-nav a:hover, .mobile-nav a:focus {
    background: var(--secondary);
    color: var(--primary);
    outline: none;
  }
}

/* ===============================================================================
   HOMEPAGE HERO & GENERAL SECTIONS
============================================================================== */
.hero {
  background: var(--accent);
  padding: 64px 0;
  border-radius: 0 0 36px 36px;
}
.hero .container {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.hero h1 {
  font-size: 2.5rem;
  color: var(--primary);
}

.feature-grid { /* Index highlights icons */
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 6px;
}
.feature-grid > div {
  flex: 1 1 235px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 16px rgba(27,58,47,0.08);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 190px;
  max-width: 308px;
  margin-bottom: 10px;
  border: 1px solid #E4E7E3;
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.14s;
}
.feature-grid > div:hover {
  border-color: var(--secondary);
  box-shadow: 0 8px 32px rgba(214,181,107,0.20);
  transform: translateY(-4px) scale(1.02);
}
.feature-grid img {
  width: 46px;
  height: 46px;
  margin-bottom: 3px;
}
.feature-grid h3 {
  color: var(--primary);
  margin-bottom: 3px;
  font-size: 1.17rem;
}
.feature-grid p {
  color: #5C665B;
  font-size: 1.05rem;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .feature-grid {
    gap: 16px;
    justify-content: flex-start;
  }
  .feature-grid > div {
    min-width: 140px;
    max-width: 90vw;
    padding: 17px 10px;
  }
}
@media (max-width: 600px) {
  .feature-grid {
    flex-direction: column;
    gap: 14px;
  }
  .feature-grid > div {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 14px 8px;
  }
}


.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-left: -8px;
}
.service-list > div {
  flex: 1 1 260px;
  min-width: 200px;
  padding: 28px 22px;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 16px rgba(27,58,47,0.052);
  border: 1px solid #E4E7E3;
  color: var(--primary);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: box-shadow 0.14s, border-color 0.14s, transform 0.13s;
}
.service-list > div:hover {
  border-color: var(--secondary);
  box-shadow: 0 8px 32px rgba(214,181,107,0.20);
  transform: translateY(-3px) scale(1.01);
}
.service-list h3 {
  margin-bottom: 2px;
  color: var(--primary);
  font-size: 1.1rem;
}
.service-list p {
  color: #273D34;
  font-size: 1.02rem;
  margin-bottom: 0;
}
@media (max-width:900px){
  .service-list{gap:13px;}
}
@media (max-width: 600px) {
  .service-list {
    flex-direction: column;
    gap: 10px;
  }
  .service-list > div {
    width: 100%;
    min-width: 0;
    padding: 16px 9px;
  }
}

/* ===============================================================================
   FLEXBOX LAYOUT CLASSES (MANDATORY PATTERNS)
============================================================================== */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; align-items: center; gap: 20px; padding: 20px; margin-bottom: 24px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

@media (max-width: 768px) {
  .text-image-section, .content-grid, .card-container {
    flex-direction: column;
    gap: 12px;
  }
}

/* ===============================================================================
   TESTIMONIALS & REVIEWS (HIGH CONTRAST)
============================================================================== */
.testimonial-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 1px 12px rgba(27,58,47,0.08);
  border: 1px solid #EAECE7;
  color: var(--primary);
  font-size: 1.07rem;
  max-width: 690px;
  margin-bottom: 26px;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  transition: box-shadow 0.14s, transform 0.14s;
}
.testimonial-card p {
  color: #273D34;
  margin-bottom: 0;
  font-style: italic;
  line-height: 1.44;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: var(--secondary);
  font-weight: 600;
  margin-left: auto;
}
.testimonial-card strong {
  color: var(--primary);
}
.testimonial-card:hover {
  box-shadow: 0 6px 30px rgba(214,181,107, 0.18);
  transform: translateY(-2px) scale(1.01);
}
@media (max-width: 600px) {
  .testimonial-card {
    flex-direction: column;
    gap: 9px;
    padding: 16px;
  }
}

/* ===============================================================================
   CONTACT BRIEF WIDGETS
============================================================================== */
.contact-brief {
  background: #F5F7F4;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(27,58,47,0.05);
  padding: 30px 24px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 18px;
  min-width: 220px;
  max-width: 440px;
}
.contact-brief img {
  width: 1.3em;
  height: 1.3em;
  vertical-align: middle;
  margin-right: 7px;
}
.contact-brief p {
  margin-bottom: 8px;
  color: #273D34;
  font-size: 1.01rem;
}
.contact-brief a.cta-secondary {
  margin-top: 10px;
  align-self: flex-start;
}
@media (max-width:600px){
  .contact-brief{padding:16px 9px;}
}

/* ===============================================================================
   FAQ PAGE
============================================================================== */
.faq-list h2 {
  font-size: 1.17rem;
  margin-top: 22px;
  margin-bottom: 7px;
  color: var(--primary);
}
.faq-list p {
  font-size: 1.01rem;
  color: #273D34;
  margin-bottom: 6px;
}
@media (max-width:600px){
  .faq-list h2{font-size:1.07rem;}
}

/* ===============================================================================
   FOOTER
============================================================================== */
footer {
  background: #1B3A2F;
  color: #fff;
  padding: 43px 0 24px 0;
  font-size: 0.99rem;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 13px;
}
.footer-nav a {
  color: var(--accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.01rem;
  padding: 2px 8px;
  border-radius: 5px;
  transition: background 0.15s, color 0.14s;
}
.footer-nav a:hover {
  background: var(--secondary);
  color: var(--primary);
}
.footer-legal {
  color: var(--secondary);
  margin-bottom: 8px;
  font-size: 0.97rem;
  text-align: center;
  opacity: 0.88;
}
.footer-legal a{
  color: var(--secondary);
  text-decoration: underline;
  border-radius: 3px;
  padding: 1px 2px;
  transition: background 0.12s, color 0.11s;
}
.footer-legal a:hover {
  background: var(--accent);
  color: var(--primary);
}
.footer-contact {
  color: #D2D6DB;
  opacity: 0.95;
  text-align: center;
}
@media (max-width: 800px) {
  footer .container {padding:0 8px;}
  .footer-nav {gap: 13px;}
}


/* ===============================================================================
   COOKIE BANNER & COOKIE MODAL
============================================================================== */
.cookie-banner {
  position: fixed;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  left: 0;
  bottom: 0;
  width: 100%;
  background: #fffbe8;
  color: #1B3A2F;
  box-shadow: 0 -2px 14px rgba(27,58,47,0.11);
  padding: 28px 24px 18px 24px;
  z-index: 1180;
  border-top: 2px solid #d6b56b33;
  animation: cookie-slidein 0.53s cubic-bezier(.55,.22,.31,1.1);
  font-size: 1.07rem;
}
@keyframes cookie-slidein { from {transform: translateY(100%); opacity:0;} to {transform: translateY(0); opacity:1;} }
.cookie-banner p {margin-bottom: 10px;}
.cookie-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.cookie-banner button {
  padding: 9px 22px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 19px;
  margin-right: 0;
  margin-bottom: 0;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.14s, color 0.14s, box-shadow 0.16s;
  outline: none;
}
.cookie-banner .cookie-accept {
  background: var(--primary);
  color: #fff;
}
.cookie-banner .cookie-accept:hover, .cookie-banner .cookie-accept:focus {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-banner .cookie-reject {
  background: #fff;
  color: var(--primary);
  border: 1.7px solid var(--primary);
}
.cookie-banner .cookie-reject:hover, .cookie-banner .cookie-reject:focus {
  background: #F5F7F4;
  color: var(--secondary);
  border-color: var(--secondary);
}
.cookie-banner .cookie-settings {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  background: #e4c883;
  color: #1B3A2F;
}

/* ===================== Cookie Modal ========================== */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(27,58,47, 0.44);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookie-fadein 0.44s;
}
@keyframes cookie-fadein { from {opacity: 0;} to {opacity: 1;} }
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  padding: 42px 30px 30px 30px;
  box-shadow: 0 2px 36px rgba(27,58,47,0.21);
  max-width: 425px;
  min-width: 260px;
  width: 92vw;
  position: relative;
  font-size: 1rem;
  animation: modal-slidein 0.31s cubic-bezier(.55,.22,.31,1.1);
}
@keyframes modal-slidein {from {transform:translateY(48px); opacity:0;}to{transform:none;opacity:1;}}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 2rem;
  cursor: pointer;
}
.cookie-modal h2 {
  color: var(--primary);
  font-size: 1.18rem;
  margin-bottom: 24px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.cookie-modal .cookie-category-label {
  font-weight: 600;
  color: var(--primary);
  font-size: 1.05rem;
}
.cookie-modal input[type=checkbox]:not(:disabled) {
  accent-color: var(--secondary);
}
.cookie-modal input[type=checkbox][disabled] {
  accent-color: var(--primary);
  cursor: not-allowed;
}
.cookie-modal .cookie-description {
  color: #4B5A60;
  font-size: 0.97rem;
  margin-left: 36px;
  margin-bottom: 8px;
}
.cookie-modal .cookie-modal-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}
.cookie-modal .cookie-accept, .cookie-modal .cookie-reject, .cookie-modal .cookie-settings-save {
  border-radius: 19px;
  border: none;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  transition: background 0.14s, color 0.14s;
  padding: 9px 22px;
  cursor: pointer;
}
.cookie-modal .cookie-accept {
  background: var(--primary);
  color: #fff;
}
.cookie-modal .cookie-accept:hover, .cookie-modal .cookie-accept:focus {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-modal .cookie-reject {
  background: #fff;
  color: var(--primary);
  border: 1.7px solid var(--primary);
}
.cookie-modal .cookie-reject:hover, .cookie-modal .cookie-reject:focus {
  background: #F5F7F4;
  color: var(--secondary);
  border-color: var(--secondary);
}
.cookie-modal .cookie-settings-save {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-modal .cookie-settings-save:hover, .cookie-modal .cookie-settings-save:focus {
  background: #e4c883;
}
@media (max-width:600px){
  .cookie-modal {padding: 23px 6px 16px 8px;}
}

/* ===============================================================================
   RESPONSIVE TYPOGRAPHY SCALE
============================================================================== */
@media (max-width: 600px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.07rem; }
  h3 { font-size: 1.01rem; }
  .subheadline { font-size: 1rem; }
  body { font-size: 15px; }
}

/* ===============================================================================
   MICRO-INTERACTIONS & ANIMATIONS
============================================================================== */
a, button, .cta-primary, .cta-secondary, .mobile-menu-toggle, .mobile-menu-close, .cookie-banner button, .cookie-modal button {
  transition: background 0.15s, color 0.14s, box-shadow 0.14s, border 0.15s, opacity 0.16s, transform 0.16s;
}

/* ===============================================================================
   ADDITIONAL UTILITY CLASSES
============================================================================== */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 18px; }
.mt-3 { margin-top: 26px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 18px; }
.mb-3 { margin-bottom: 32px; }
.text-center { text-align: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* ===============================================================================
   FOCUS STYLES (A11Y)
============================================================================== */
:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  ::selection {
    background: var(--secondary);
    color: var(--primary);
  }
}

/* ===============================================================================
   ENSURE NO ELEMENT OVERLAPPING (SPACING)
============================================================================== */
section, .content-wrapper, .card-container, .feature-grid, .service-list, .testimonial-card, .contact-brief {
  margin-bottom: 24px;
}

/* ===============================================================================
   PRINT FRIENDLINESS
============================================================================== */
@media print {
  .mobile-menu, .cookie-banner, .cookie-modal-overlay, .mobile-menu-toggle, .mobile-menu-close { display: none !important; }
  header, footer, nav, .cta-primary, .cta-secondary { color-adjust: exact; -webkit-print-color-adjust: exact; }
}
