/* ===================== CSS Reset and Normalize ====================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  background: linear-gradient(135deg, #F4F2EE 45%, #D3E4E1 100%);
  color: #205252;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg {
  max-width: 100%;
  display: block;
}
a {
  color: #205252;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #B4762B;
  outline-offset: 2px;
}
button {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  background: none;
  cursor: pointer;
}

/* ===================== Brand Font Imports ===================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Open+Sans:wght@400;600&display=swap');

h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Arial Black', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.1;
  color: #205252;
}
h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
h4 { font-size: 1.125rem; }

p, ul, ol, li, span {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #233;
  font-size: 1rem;
}
ul, ol { margin-left: 24px; margin-bottom: 18px; }
strong { font-weight: 600; }

/* ===================== Layout Containers ===================== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
/* Additional Flex Containers (from requirements) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(32,82,82,0.10);
  margin-bottom: 20px;
  padding: 28px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 6px 28px rgba(32, 82, 82, 0.16);
}
.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;
  background: #f9fafb;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(32,82,82,0.07);
  margin-bottom: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===================== Brand & Hero Styles =================*/
header {
  width: 100%;
  background: linear-gradient(90deg, #F4F2EE 70%, #D3E4E1 100%);
  box-shadow: 0 2px 12px rgba(180,118,43,0.05);
}
header .container {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
header nav {
  display: flex;
  gap: 16px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 7px;
  color: #205252;
  transition: background 0.16s, color 0.18s;
}
header nav a:hover,
header nav a:focus {
  background: #20525222;
  color: #B4762B;
}
.cta-primary {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  background: linear-gradient(90deg, #B4762B, #915600 95%);
  color: #fff;
  font-weight: 700;
  border-radius: 32px;
  padding: 13px 28px;
  margin-left: 12px;
  box-shadow: 0 4px 16px rgba(180,118,43,0.08);
  font-size: 1.06rem;
  letter-spacing: 0.01em;
  transition: background 0.22s, box-shadow 0.18s, color 0.20s;
  border: none;
}
.cta-primary:hover,
.cta-primary:focus {
  background: linear-gradient(90deg, #205252 30%, #B4762B 100%);
  color: #fffbe6;
  box-shadow: 0 2px 28px rgba(32,82,82,0.12);
}

.hero {
  background: linear-gradient(120deg, #F4F2EE 65%, #E2F2ED 100%);
  padding: 60px 0 50px 0;
}

.hero h1 {
  font-size: 2.4rem;
  color: #205252;
}
.hero p {
  margin: 22px 0 28px 0;
  font-size: 1.16rem;
  color: #234;
  max-width: 700px;
}

/* ================== Feature, Service & Card Grids ===================== */
.feature-grid, .problem-solution-grid, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.feature-grid > div, 
.problem-solution-grid > div,
.service-list > div {
  background: #fff;
  flex: 1 1 280px;
  min-width: 240px;
  border-radius: 14px;
  padding: 22px 18px;
  box-shadow: 0 2px 12px rgba(32,82,82,0.08);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.feature-grid > div:hover, 
.problem-solution-grid > div:hover,
.service-list > div:hover {
  box-shadow: 0 6px 28px rgba(180,118,43,0.10);
  transform: translateY(-3px) scale(1.012);
}
.service-list > div span {
  display: block;
  font-family: 'Montserrat', sans-serif;
  color: #B4762B;
  margin-top: 8px;
  font-weight: 700;
  font-size: 1.06rem;
}

.service-price {
  display: inline-block;
  font-size: 1.08rem;
  color: #B4762B;
  font-weight: 600;
  margin: 14px 0 10px 0;
}

/* =============== Testimonial Styles =================== */
.testimonial-card {
  background: #fff;
  box-shadow: 0 2px 8px rgba(32,82,82,0.07);
  border-radius: 16px;
  color: #205252;
  font-size: 1.04rem;
  margin-bottom: 20px;
  gap: 18px;
}
.testimonial-card strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.06rem;
  font-weight: 600;
  color: #233;
}
.testimonial-card span {
  font-family: 'Open Sans', sans-serif;
  color: #205252;
  letter-spacing: 0.01em;
  display: block;
  margin-top: 7px;
  font-size: 0.96rem;
}

/* ================= Contact Cards / Blocks =================== */
.contact-snippet, .address-block, .phone-block, .mail-block, .hours-block, .map-block {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  font-size: 1rem;
}
.contact-snippet {
  flex-wrap: wrap;
  gap: 25px;
}
.contact-snippet > div, .contact-snippet > a {
  min-width: 230px;
}
.contact-snippet > a.cta-primary {
  margin-left: 0;
  margin-top: 10px;
}

/* ==================== Footer ============================ */
footer {
  background: linear-gradient(90deg, #205252 70%, #B4762B 100%);
  color: #fff;
  padding: 38px 0 28px 0;
  margin-top: 60px;
}
footer .container {
  flex-direction: column;
  gap: 18px;
  display: flex;
  align-items: flex-start;
}
footer nav {
  display: flex;
  gap: 20px;
}
footer nav a {
  color: #fff;
  opacity: 0.92;
  font-size: 1rem;
  border-radius: 8px;
  padding: 7px 13px;
  transition: background 0.20s, color 0.16s;
}
footer nav a:hover, footer nav a:focus {
  background: #fff2;
  color: #FFDCA6;
}
.footer-contact {
  font-size: 0.96rem;
  letter-spacing: 0.02em;
  color: #fffbe1;
  opacity: 0.95;
  font-family: 'Open Sans', sans-serif;
}

/* ====================== Mobile Burger Menu ====================== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1012;
  background: #fff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  box-shadow: 0 4px 16px rgba(32,82,82,0.15);
  font-size: 1.7rem;
  color: #205252;
  border: 1px solid #E2F2ED;
  transition: background 0.16s, color 0.18s;
}
.mobile-menu-toggle:active {
  background: #D3E4E1;
  color: #B4762B;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #205252;
  z-index: 2000;
  transform: translateX(-110vw);
  transition: transform 0.32s cubic-bezier(0.37,0.28,0.21,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0 0 0 0;
  box-shadow: 0 0 50px 0 rgba(32,82,82,0.13);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 26px;
  font-size: 2rem;
  color: #FFDCA6;
  background: none;
  border: none;
  z-index: 2010;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #FFDCA6;
  color: #205252;
}
.mobile-nav {
  margin-top: 100px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 90vw;
  align-items: flex-start;
  padding-left: 30px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.27rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
  padding: 15px 0;
  border-bottom: 1px solid #24617044;
  width: 100%;
  transition: color 0.2s, background 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #FFDCA6;
  background: #ffffff09;
  border-radius: 7px;
}

/* Hide desktop nav on mobile, show burger */
@media (max-width: 992px) {
  header nav {
    display: none;
  }
  .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 678px) {
  .hero {
    padding: 35px 0 30px 0;
  }
}

/* ======================== Cookie Consent Banner ===================== */
.cookie-banner {
  position: fixed;
  z-index: 4000;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #FFFFFF 80%, #E2F2ED 100%);
  border-top: 1px solid #E7E7E7;
  box-shadow: 0 -2px 12px rgba(32,82,82,0.10);
  padding: 18px 28px;
  gap: 22px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.03rem;
  color: #233;
  transition: transform 0.32s;
}
.cookie-banner.hide {
  transform: translateY(120px);
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: 18px;
}
.cookie-banner button {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 32px;
  padding: 9px 22px;
  margin: 0 2px;
  transition: background 0.19s, color 0.16s, border 0.16s;
  box-shadow: 0 1px 8px rgba(180,118,43,0.07);
  border: 1.5px solid #B4762B;
}
.cookie-btn-accept {
  background: linear-gradient(90deg, #B4762B, #915600);
  color: #fff;
  border: none;
}
.cookie-btn-accept:hover, .cookie-btn-accept:focus {
  background: #205252;
  color: #FFDCA6;
}
.cookie-btn-reject {
  background: #fff;
  color: #205252;
  border-color: #205252;
}
.cookie-btn-reject:hover, .cookie-btn-reject:focus {
  background: #F4F2EE;
  color: #B4762B;
}
.cookie-btn-settings {
  background: #F4F2EE;
  color: #B4762B;
  border: 1.5px solid #B4762B;
}
.cookie-btn-settings:hover, .cookie-btn-settings:focus {
  background: #B4762B;
  color: #fff;
}

/* Cookie Consent Modal */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 4100;
  background: rgba(32,82,82,0.19);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.23s;
  opacity: 1;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 20px;
  padding: 36px 24px;
  box-shadow: 0 6px 40px rgba(32,82,82,0.13);
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 95vw;
  min-width: 320px;
  max-width: 420px;
  align-items: stretch;
}
.cookie-modal-content h3 {
  margin-bottom: 6px;
  font-size: 1.27rem;
  color: #205252;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #F4F2EE;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-toggle {
  width: 38px;
  height: 20px;
  border-radius: 10px;
  background: #D3E4E1;
  position: relative;
  transition: background 0.16s;
}
.cookie-toggle.active {
  background: linear-gradient(90deg, #B4762B, #915600);
}
.cookie-toggle-switch {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 5px rgba(32,82,82,0.13);
  transition: left 0.18s;
}
.cookie-toggle.active .cookie-toggle-switch {
  left: 20px;
}
.cookie-modal-actions {
  display: flex;
  gap: 15px;
  margin-top: 8px;
  justify-content: flex-end;
}
.cookie-modal-actions button {
  padding: 8px 18px;
}
.cookie-modal-close {
  position: absolute;
  right: 24px;
  top: 18px;
  color: #915600;
  font-size: 1.9rem;
  background: none;
  border: none;
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #B4762B;
}

/* ====================== List and OL Styles ==================== */
ul, ol {
  margin-bottom: 20px;
  color: #234;
}
ul li, ol li {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.5;
}
ul li::marker, ol li::marker {
  color: #B4762B;
}

/* ================= SPACING, GAP, AND ALIGNMENTS (Flexbox) ================= */
.card-container, .feature-grid, .problem-solution-grid, .service-list, .content-grid, .text-image-section, .testimonial-card, .contact-snippet {
  gap: 20px;
}
.section {
  margin-bottom: 60px; 
  padding: 40px 20px;
}
.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;
}
.feature-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 15px;
}

/* Ensure min gap between all cards/sections for mobile/desktops */
.feature-grid > div, .problem-solution-grid > div, .service-list > div, .testimonial-card {
  margin-bottom: 20px;
}

/* Prevent overlap for all content containers */
.section > .container, footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

/* ================ Responsive: Mobile First ================ */
@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }
  .content-wrapper, .feature-grid, .problem-solution-grid, .service-list, .content-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column !important;
    align-items: flex-start;
    gap: 18px;
  }
  .contact-snippet, .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .feature-grid > div, .problem-solution-grid > div, .service-list > div {
    min-width: 100%;
  }
  header .container {
    flex-direction: row;
    justify-content: space-between;
    padding: 0 10px;
  }
  footer .container {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 1.4rem;
  }
  h2 {
    font-size: 1.1rem;
  }
  h3 {
    font-size: 1rem;
  }
  .hero {
    padding: 24px 0 18px 0;
  }
  .section {
    padding: 24px 8px;
    margin-bottom: 40px;
  }
}

/* =========== Animations for micro-interactions ============= */
.cta-primary, .card, .feature-grid > div, .testimonial-card, .mobile-menu, .cookie-banner, .cookie-modal-content {
  transition: box-shadow 0.22s, background 0.22s, color 0.18s, transform 0.16s;
}

.cta-primary:active {
  transform: scale(0.98);
}
.card:active {
  transform: scale(0.99);
}
.feature-grid > div:active {
  transform: scale(0.99);
}

/* =============== Utility: Prevent image overflow ============== */
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* =============== Utility: Hide visually ============== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

/* ========== Hide/Show Cookie Banner and Modal Dynamically ========= */
.cookie-banner.hide { display: none; }
.cookie-modal.hide { display: none; }

/* ===================== END OF CSS ===================== */
