/* CSS RESET & BASE TYPOGRAPHY */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #fff;
  color: #222B35;
  line-height: 1.6;
  min-height: 100vh;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
ul, ol {
  margin-left: 1.25em;
  margin-bottom: 1.25em;
}
ul li, ol li {
  margin-bottom: .5em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #222B35;
  font-weight: 700;
  margin-bottom: 0.5em;
  letter-spacing: -0.02em;
}
h1 {
  font-size: 2.75rem;
  line-height: 1.1;
}
h2 {
  font-size: 2rem;
  line-height: 1.15;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
}
p, blockquote {
  font-size: 1rem;
  color: #222B35;
  margin-bottom: 1.15em;
}
blockquote {
  border-left: 3px solid #6F4C1B;
  padding-left: 16px;
  margin: 24px 0;
  font-style: italic;
  color: #6F4C1B;
}
strong {
  font-weight: 700;
}

/* GENERAL LAYOUT STRUCTURE */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
main {
  flex: 1 0 auto;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(34,43,53,0.03);
  transition: box-shadow .25s;
}
.section:last-child {
  margin-bottom: 0;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

/* HEADER & NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(34,43,53,0.05);
  padding: 0;
  position: relative;
  z-index: 25;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}
header img {
  height: 42px;
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #222B35;
  padding: 5px 0;
  position: relative;
  transition: color 0.2s;
}
.main-nav a:after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: #F9E5C0;
  border-radius: 2px;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  transform: scaleX(.2);
}
.main-nav a:hover, .main-nav a:focus {
  color: #6F4C1B;
}
.main-nav a:hover:after, .main-nav a:focus:after {
  opacity: 1;
  transform: scaleX(1);
}

.cta-btn {
  background: #6F4C1B;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  border: none;
  border-radius: 8px;
  padding: 13px 25px;
  box-shadow: 0 3px 12px rgba(111,76,27,0.08);
  margin-left: 28px;
  cursor: pointer;
  transition: background .2s, box-shadow .25s, color .2s;
  outline: none;
  display: inline-block;
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus {
  background: #222B35;
  color: #fff;
  box-shadow: 0 3px 24px rgba(34,43,53,0.10);
}

/* Mobile nav toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #6F4C1B;
  margin-left: 22px;
  cursor: pointer;
  z-index: 30;
  transition: color .2s;
}
.mobile-menu-toggle:focus {
  color: #222B35;
}

/* Mobile menu styles */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  transform: translateX(-100%);
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 6px 48px rgba(34,43,53,0.10);
  z-index: 99;
  transition: transform .35s cubic-bezier(.8,0,.16,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 30px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #6F4C1B;
  padding: 0 5px;
  margin-bottom: 24px;
  cursor: pointer;
  transition: color .2s;
}
.mobile-menu-close:focus {
  color: #222B35;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  color: #222B35;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  padding: 10px 0;
  border-radius: 6px;
  transition: background .12s, color .18s;
  outline: none;
  display: block;
  min-width: 100px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F9E5C0;
  color: #6F4C1B;
}

@media (max-width: 1050px) {
  .main-nav {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 11px;
  }
  .cta-btn {
    padding: 11px 18px;
    margin-left: 12px;
    font-size: 0.96rem;
  }
  header img {
    height: 36px;
  }
}
@media (max-width: 820px) {
  .main-nav {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* HERO SECTIONS */
.hero {
  background: #F9E5C0;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 10px 36px rgba(34,43,53,0.05);
  padding: 48px 0 56px 0;
  margin-bottom: 60px;
}
.hero .container {
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 26px;
}
.hero h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #222B35;
  font-size: 2.5rem;
  margin-bottom: 0.2em;
}
.hero .subheadline {
  font-size: 1.15rem;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #6F4C1B;
  margin-bottom: 1.2em;
}
.hero .cta-btn {
  background: #6F4C1B;
  color: #fff;
}
.hero .cta-btn:hover, .hero .cta-btn:focus {
  background: #222B35;
}

/* CTA SECTIONS */
.cta {
  background: #F9E5C0;
  border-radius: 18px;
  box-shadow: 0 4px 28px rgba(34,43,53,0.07);
  margin-bottom: 42px;
  padding: 48px 18px 44px 18px;
  text-align: left;
}
.cta h2 {
  color: #222B35;
}
.cta .cta-btn {
  margin-top: 18px;
  background: #6F4C1B;
}

/* FEATURES */
.features {
  margin-bottom: 60px;
}
.features .content-wrapper > h2 {
  margin-bottom: 1.8em;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(34,43,53,0.055);
  flex: 1 1 230px;
  min-width: 230px;
  max-width: 320px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  transition: box-shadow .18s;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 28px rgba(34,43,53,0.13);
}
.feature-grid img {
  height: 46px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* SERVICES LISTS */
ul.service-list, .service-list {
  list-style: none;
  margin: 0 0 24px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.service-list li {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(34,43,53,0.05);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  margin-bottom: 20px;
  transition: box-shadow .16s;
}
.service-list li:hover {
  box-shadow: 0 6px 28px rgba(34,43,53,0.12);
}
.service-list h3, .service-list h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  color: #222B35;
  margin-bottom: 0.2em;
}
.service-list strong, .service-price {
  color: #6F4C1B;
  font-weight: 700;
  font-size: 1.08rem;
}

/***** Price Table *****/
.price-table {
  margin-top: 12px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(34,43,53,0.045);
  padding: 14px 18px 18px 18px;
}
.price-table h3 {
  margin-bottom: 14px;
  font-size: 1.13rem;
}
.price-table table {
  width: 100%;
  border-collapse: collapse;
}
.price-table th, .price-table td {
  padding: 10px 6px;
  text-align: left;
  font-size: 0.98rem;
}
.price-table th {
  color: #222B35;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-bottom: 1px solid #eee;
}
.price-table tr:not(:last-child) td {
  border-bottom: 1px solid #f3f3f3;
}

/***** Testimonial Card & Slider *****/
.testimonials {
  margin-bottom: 60px;
}
.testimonials .content-wrapper > h2 {
  margin-bottom: 1.25em;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 26px 22px 16px 22px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1.5px 12px rgba(34,43,53,0.06);
  margin-bottom: 20px;
  min-width: 250px;
  max-width: 420px;
  transition: box-shadow .18s, border .16s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 36px rgba(34,43,53,0.16);
  border-color: #F9E5C0;
}
.testimonial-card p {
  color: #222B35;
  font-size: 1.03rem;
  line-height: 1.5;
}
.testimonial-card .testimonial-author {
  color: #6F4C1B;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  margin-top: 10px;
}

/************* FLEXBOX LAYOUT PATTERNS *************/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(34,43,53,0.05);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s;
}
.card:hover {
  box-shadow: 0 6px 28px rgba(34,43,53,0.13);
}

.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;
}

/************************** FOOTER ****************************/
footer {
  background: #fff;
  min-height: 80px;
  box-shadow: 0px -2px 12px rgba(34,43,53,0.045);
  padding: 22px 0 22px 0;
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 26px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #6F4C1B;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 3px 0;
  border-radius: 3px;
  transition: background .16s, color .18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #F9E5C0;
  color: #222B35;
}
.address-block {
  color: #78797A;
  font-size: 0.98rem;
  font-family: 'Open Sans', Arial, sans-serif;
  margin-top: 0px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/************************* FORMS, MAP PLACEHOLDER, ETC *************************/
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  color: #222B35;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 7px;
  padding: 12px;
  transition: border .2s;
  outline: none;
  margin-bottom: 18px;
}
input:focus, textarea:focus, select:focus {
  border-color: #6F4C1B;
}
.map-placeholder {
  font-size: 1rem;
  color: #6f4c1b;
  background: #F9E5C0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  min-height: 150px;
  margin: 18px 0 0 0;
}

/************************** COOKIE CONSENT BANNER ******************************/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #222B35;
  color: #fff;
  padding: 20px 18px 20px 18px;
  box-shadow: 0 -4px 32px rgba(34,43,53,.20);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
  z-index: 120;
  font-size: 1rem;
  animation: bannerSlideIn .5s cubic-bezier(.8,0,.16,1) 1;
}
@keyframes bannerSlideIn {
  0% { transform: translateY(100%); opacity:0; }
  100% { transform: translateY(0); opacity:1; }
}
.cookie-banner .cookie-text {
  flex: 1 1 auto;
  color: #fff;
  font-size: 1.01rem;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 9px 17px;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  font-size: 1.02rem;
  transition: background .18s, color .18s, box-shadow .18s;
  background: #F9E5C0;
  color: #222B35;
  box-shadow: 0 2px 8px rgba(111,76,27,0.05);
}
.cookie-btn.accept {
  background: #6F4C1B;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #916127;
  color: #fff;
}
.cookie-btn.reject {
  background: transparent;
  border: 1.5px solid #F9E5C0;
  color: #F9E5C0;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #F9E5C0;
  color: #222B35;
}
.cookie-btn.settings {
  background: #F9E5C0;
  color: #222B35;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #fff;
  color: #6F4C1B;
}

/********* Cookie Modal *********/
.cookie-modal-overlay {
  position: fixed;
  z-index: 150;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(34,43,53,0.45);
  display: none;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn .38s cubic-bezier(.8,0,.16,1);
}
.cookie-modal-overlay.open {
  display: flex;
}
@keyframes modalFadeIn {
  0% { opacity:0; }
  100% { opacity:1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 116px rgba(34,43,53,0.13);
  width: 95%;
  max-width: 410px;
  padding: 30px 24px 26px 24px;
  color: #222B35;
  position: relative;
  animation: modalPopIn .33s cubic-bezier(.8,0,.16,1);
}
@keyframes modalPopIn {
  0% { transform: scale(0.95); opacity:0; }
  100% { transform: scale(1); opacity:1; }
}
.cookie-modal h3 {
  font-size: 1.11rem;
  color: #222B35;
  margin-bottom: 14px;
}
.cookie-modal .categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 18px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  background: #F9E5C0;
  border-radius: 6px;
  padding: 9px 11px;
}
.cookie-category label {
  font-size: 0.98rem;
  color: #222B35;
  user-select: none;
}
.cookie-category input[type="checkbox"] {
  accent-color: #6F4C1B;
  width: 18px; height: 18px;
}
.cookie-modal .category-essential {
  opacity: .52;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}
.cookie-modal .close-modal {
  position: absolute;
  right: 13px; top: 12px;
  background: none;
  border: none;
  color: #6F4C1B;
  font-size: 1.7rem;
  cursor: pointer;
}
.cookie-modal .close-modal:hover {
  color: #222B35;
}

/******************** RESPONSIVE DESIGN **********************/
@media (max-width: 1150px) {
  .container {
    max-width: 97vw;
  }
  .feature-grid > div {
    min-width: 180px;
    max-width: 350px;
  }
}
@media (max-width: 920px) {
  .container {
    max-width: 98vw;
    padding-left: 12px;
    padding-right: 12px;
  }
  .feature-grid {
    gap: 16px;
  }
  .feature-grid > div {
    min-width: 160px;
    max-width: calc(45vw - 20px);
    padding: 18px 13px;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  header .container {
    padding: 0 10px;
  }
  .main-nav, .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div {
    min-width: unset;
    max-width: 98vw;
  }
  .hero {
    padding: 32px 0 28px 0;
    border-radius: 0 0 20px 20px;
  }
  .content-wrapper {
    padding: 0 !important;
    gap: 18px;
  }
  .section {
    margin-bottom: 40px;
    padding: 25px 10px;
  }
  .card-container, .content-grid, .testimonial-slider {
    flex-direction: column !important;
    gap: 18px;
  }
  .card, .testimonial-card {
    min-width: unset;
    max-width: 100vw;
    padding: 16px 12px;
  }
  .footer-nav {
    gap: 11px;
    flex-wrap: wrap;
  }
  .address-block {
    font-size: 0.93rem;
    flex-wrap: wrap;
    gap:4px;
  }
  .text-image-section {
    flex-direction: column !important;
    align-items: flex-start;
    gap: 16px;
  }
  .cta {
    padding: 28px 10px 28px 10px;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  html { font-size: 13.4px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  .container { padding-left: 5px; padding-right: 5px; }
  .hero {
    border-radius: 0 0 6px 6px;
    padding: 20px 0 15px 0;
  }
}

/* SMOOTH INTERACTIONS */
.card, .feature-grid > div, .testimonial-card, .service-list li, .price-table {
  transition: box-shadow .2s, border .18s;
}
a, button, .cta-btn {
  transition: background .17s, color .18s, border .17s, box-shadow .18s, transform .15s;
}
a:focus, button:focus, .cta-btn:focus {
  outline: 2px solid #F9E5C0;
  outline-offset: 2px;
}

/****************** MISC ********************/
::-webkit-scrollbar {
  width: 8px;
  background: #F9E5C0;
}
::-webkit-scrollbar-thumb {
  background: #e4d2a0;
  border-radius: 10px;
}

::selection { background: #F9E5C0; }

/* Accessibility: ensure contrast for testimonials */
.testimonial-card, .testimonial-card p {
  background: #fff;
  color: #222B35;
}

/****** Hide elements for JS-enhanced features by default ******/
.cookie-modal-overlay { display: none; }
.mobile-menu { display: none; }
.mobile-menu.open { display: flex; }

/* Utility classes */
.mt-24 { margin-top: 24px !important; }
.mb-16 { margin-bottom: 16px !important; }
.gap-10 { gap: 10px !important; }
.gap-18 { gap: 18px !important; }
