/* --- CSS RESET & NORMALIZE --- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: linear-gradient(135deg, #f6e9d2 0%, #fff 100%);
  font-family: 'Roboto', Arial, sans-serif;
  color: #273647;
  min-height: 100vh;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.5s;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #8e5d26;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #273647;
  outline: none;
}
ul, ol {
  padding-left: 24px;
}
li:not(:last-child) {
  margin-bottom: 8px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #273647;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
  font-weight: 500;
}
p {
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 18px;
  color: #273647;
}
.subheadline {
  font-size: 1.125rem;
  color: #8e5d26;
  margin-bottom: 32px;
  font-weight: 400;
}
strong {
  font-weight: 600;
}

/* --- GLOBAL CONTAINERS & LAYOUT --- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* --- HEADER & NAVIGATION --- */
header {
  background: linear-gradient(90deg, #f6e9d2 65%, rgba(246,233,210,0.7) 100%);
  box-shadow: 0 2px 16px rgba(39,54,71,0.07);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}
.logo img {
  height: 46px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #273647;
  transition: color 0.2s, border-bottom 0.2s;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: #8e5d26;
  border-bottom: 2px solid #8e5d26;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #8e5d26;
  cursor: pointer;
  z-index: 30;
  margin-left: 8px;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #8e5d26;
}

/* --- MOBILE MENU --- */
.mobile-menu {
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #fff;
  z-index: 1000;
  padding: 0 32px;
  box-shadow: 0 8px 32px rgba(39,54,71,0.13);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.61,.01,.35,1);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2rem;
  color: #8e5d26;
  margin: 28px 0;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:focus {
  outline: 2px solid #8e5d26;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  margin-top: 20px;
}
.mobile-nav a {
  font-size: 1.15rem;
  font-family: 'Montserrat', sans-serif;
  color: #273647;
  padding: 12px 0 12px 8px;
  width: 100%;
  border-radius: 4px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: #f6e9d2;
  color: #8e5d26;
}

/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(120deg, #f6e9d2 55%, #ffeee1 100%);
  border-radius: 0 0 32px 32px;
  min-height: 360px;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  box-shadow: 0 4px 24px rgba(39,54,71,0.06);
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 640px;
  margin: 0 auto;
  gap: 0;
  padding: 64px 0 48px 0;
}

/* --- BUTTONS & CTA --- */
.cta, .button, button, input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 32px;
  border: none;
  background: linear-gradient(90deg, #8e5d26 60%, #e6b17d 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 16px rgba(39,54,71,0.05);
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
  letter-spacing: 0.01em;
  margin-top: 16px;
  outline: none;
  text-align: center;
  min-width: 180px;
}
.cta.primary {
  background: linear-gradient(90deg, #273647 60%, #8e5d26 100%);
  color: #fff;
}
.cta:hover,.button:hover,button:hover,.cta:focus, .button:focus, button:focus {
  background: linear-gradient(90deg, #8e5d26 60%, #273647 100%);
  color: #fff;
  box-shadow: 0 4px 24px rgba(39,54,71,0.10);
}

/* --- CARD STYLING --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(39,54,71,0.09);
  padding: 28px 24px 24px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.23s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 24px rgba(39,54,71,0.15);
}

/* --- FLEXIBLE LAYOUTS --- */
.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: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(39,54,71,0.07);
  margin-bottom: 24px;
  font-size: 1.125rem;
  color: #273647;
  position: relative;
  min-width: 240px;
  max-width: 460px;
  width: 100%;
}
.testimonial-card p {
  color: #273647;
  margin-bottom: 8px;
}
.testimonial-card strong {
  color: #8e5d26;
  font-size: 1rem;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 16px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.feature-grid > div {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 10px rgba(39,54,71,0.08);
  padding: 24px 18px;
  flex: 1 1 210px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 200px;
  max-width: 320px;
  transition: box-shadow 0.18s;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 24px rgba(39,54,71,0.18);
}
.feature-grid img {
  margin-bottom: 12px;
  width: 44px;
  height: 44px;
}

.feature-icons {
  display: flex;
  gap: 18px;
  margin-top: 14px;
}
.feature-icons img {
  width: 36px;
  height: 36px;
}

/* --- SERVICES / LISTS / OL --- */
.service-list, .category-list ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 0;
  list-style: none;
  margin: 18px 0 0 0;
}
.service-list li, .category-list ul li {
  padding-left: 28px;
  position: relative;
  font-size: 1.05rem;
}
.service-list li:before, .category-list ul li:before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: #8e5d26;
  font-size: 1.4rem;
  top: 0.08em;
}

.service-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0 0 0;
  padding-left: 0;
  list-style-position: inside;
}
.service-steps li {
  counter-increment: step;
  position: relative;
  min-height: 24px;
  padding-left: 36px;
  font-size: 1.08rem;
}
.service-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  background: #8e5d26;
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
}

.category-list {
  margin: 18px 0;
}
.category-list ul {
  gap: 10px;
}

.search-bar {
  display: flex;
  align-items: center;
  margin: 16px 0 10px 0;
}
.search-bar input {
  padding: 10px 16px;
  border-radius: 16px;
  border: 1px solid #e3d1bc;
  background: #ffeee1;
  font-size: 1rem;
  color: #273647;
  width: 230px;
  transition: border 0.2s;
}
.search-bar input:focus {
  border-color: #8e5d26;
  outline: none;
}
.input[disabled], select[disabled] {
  opacity: 0.8;
  cursor: not-allowed;
}
.filter-options {
  margin: 0 0 14px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.filter-options select {
  padding: 8px 16px;
  border-radius: 16px;
  border: 1px solid #e3d1bc;
  background: #ffeee1;
  color: #273647;
  font-size: 1rem;
  min-width: 130px;
}

/* --- TEXT STYLES & SECTIONS --- */
.text-section {
  margin-bottom: 26px;
}
.text-section h2,
.text-section h3 {
  margin-bottom: 10px;
}

/* --- FOOTER --- */
footer {
  background: linear-gradient(90deg, #f6e9d2 70%, #fff 100%);
  padding: 0 0 32px 0;
  box-shadow: 0 -1px 10px rgba(39,54,71,0.04);
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 40px 0 0 0;
}
.footer-brand img {
  height: 38px;
  margin-bottom: 18px;
}
.footer-contact {
  max-width: 260px;
  font-size: 1rem;
  color: #273647;
}
.footer-contact h3 {
  font-size: 1.1rem;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 8px;
  color: #8e5d26;
}
.footer-contact p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #273647;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  margin-right: 5px;
  vertical-align: text-bottom;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-menu a {
  color: #8e5d26;
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 2px;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.18s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: #273647;
}
.footer-social {
  display: flex;
  gap: 13px;
  margin-top: 18px;
}
.footer-social a img {
  width: 30px;
  height: 30px;
  filter: grayscale(0.22);
  transition: filter 0.25s;
}
.footer-social a:hover img {
  filter: grayscale(0) brightness(1.2) drop-shadow(0 0 2px #8e5d26);
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  background: #fff9f2;
  box-shadow: 0 -4px 32px rgba(39,54,71,0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  padding: 22px 24px;
  font-size: 1rem;
  transition: transform 0.3s, opacity 0.3s;
}
.cookie-banner .cookie-text {
  flex: 1 1 200px;
  color: #273647;
  font-size: 1rem;
  margin-right: 18px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 10px;
}
.cookie-banner .button {
  font-size: 1rem;
  padding: 10px 26px;
  border-radius: 24px;
  min-width: 120px;
}
.cookie-banner .accept {
  background: linear-gradient(90deg,#8e5d26 60%,#e6b17d 100%);
  color: #fff;
  border: none;
}
.cookie-banner .accept:hover,
.cookie-banner .accept:focus {
  background: linear-gradient(90deg,#273647 60%,#8e5d26 100%);
}
.cookie-banner .reject {
  background: #f6e9d2;
  color: #8e5d26;
  border: 1px solid #8e5d26;
}
.cookie-banner .reject:hover,
.cookie-banner .reject:focus {
  background: #fff;
  color: #273647;
  border: 1px solid #273647;
}
.cookie-banner .settings {
  background: none;
  color: #273647;
  border: 1px solid #273647;
}
.cookie-banner .settings:hover,
.cookie-banner .settings:focus {
  background: #8e5d26;
  color: #fff;
  border: 1px solid #8e5d26;
}
.cookie-banner.closed {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 1200;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(39,54,71,0.19);
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.active {
  display: flex;
  animation: fadeInCookieModal 0.32s;
}
@keyframes fadeInCookieModal {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  padding: 36px 30px 24px 30px;
  border-radius: 22px;
  box-shadow: 0 8px 44px rgba(39,54,71,0.19);
  max-width: 370px;
  min-width: 260px;
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: slideUpCookieModal 0.38s;
}
@keyframes slideUpCookieModal {
  from { transform: translateY(48px); opacity: 0; } to { transform: none; opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.38rem;
  margin-bottom: 8px;
  color: #8e5d26;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.cookie-category label {
  font-size: 1.02rem;
  color: #273647;
  font-weight: 500;
}
.cookie-category input[type="checkbox"] {
  appearance: none;
  width: 36px;
  height: 20px;
  border-radius: 14px;
  background: #e4decf;
  position: relative;
  transition: background 0.2s;
  outline: none;
  margin-left: 7px;
  cursor: pointer;
}
.cookie-category input[type="checkbox"]:checked {
  background: #8e5d26;
}
.cookie-category input[type="checkbox"]::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.2s;
}
.cookie-category input[type="checkbox"]:checked::before {
  left: 19px;
}
.cookie-category input[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.cookie-modal .modal-buttons {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  justify-content: flex-end;
}
.cookie-modal .modal-close {
  background: none;
  border: none;
  color: #273647;
  font-size: 1.36rem;
  cursor: pointer;
  position: absolute;
  top: 12px;
  right: 20px;
}
.cookie-modal .accept, .cookie-modal .reject {
  font-size: 1rem;
  padding: 10px 22px;
  border-radius: 16px;
  border: none;
}
.cookie-modal .accept {
  background: #8e5d26;
  color: #fff;
}
.cookie-modal .accept:hover {
  background: #273647;
}
.cookie-modal .reject {
  background: #f6e9d2;
  color: #8e5d26;
  border: 1px solid #8e5d26;
}
.cookie-modal .reject:hover {
  background: #fff;
}

/* --- ANIMATIONS & MICROINTERACTIONS --- */
.hero,
.cta,
.card,
.feature-grid > div,
.button,
footer,
.cookie-banner,
.cookie-modal,
.mobile-menu {
  transition: box-shadow 0.2s, background 0.2s, color 0.2s, transform 0.28s cubic-bezier(.6,-0.28,.74,.05);
}

/* --- MEDIA QUERIES FOR RESPONSIVENESS --- */
@media (max-width: 1024px) {
  h1 {
    font-size: 2rem;
  }
  .container {
    max-width: 96vw;
  }
  .feature-grid > div {
    min-width: 160px;
    max-width: 90vw;
    padding: 18px 10px;
  }
}

@media (max-width: 900px) {
  .footer-main {
    gap: 24px;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-wrap: wrap;
    min-height: 56px;
  }
  .logo img {
    height: 36px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 0 0 0;
  }
  .hero {
    border-radius: 0;
    min-height: 220px;
    margin-bottom: 36px;
    padding: 24px 0 0 0;
  }
  .hero .content-wrapper {
    justify-content: flex-start;
    align-items: flex-start;
    padding: 30px 0 22px 0;
    gap: 6px;
  }
  .section {
    padding: 20px 8px;
    margin-bottom: 36px;
  }
  .feature-grid,
  .testimonial-slider {
    gap: 12px;
    flex-direction: column;
  }
  .feature-grid > div, .testimonial-card {
    max-width: 100vw;
    min-width: 0;
  }
  .services .content-wrapper, .category-list ul, .service-list {
    gap: 8px !important;
  }
  .content-grid {
    flex-direction: column;
    gap: 8px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .cookie-modal {
    padding: 20px 10px;
    max-width: 92vw;
  }
}

@media (max-width: 480px) {
  .footer-contact, .footer-menu {
    font-size: 0.95rem;
  }
  .cta, .button, button {
    font-size: 1rem;
    padding: 10px 18px;
    min-width: 110px;
  }
  h1 {
    font-size: 1.36rem;
    margin-bottom: 12px;
  }
  h2 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }
  .container {
    padding: 0 6px;
    max-width: 99vw;
  }
}

/* --- UTILITY CLASSES & ACCESSIBILITY --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Prevent absolute positioning for content */
.card, .feature-grid > div, .testimonial-card, .category-list, .service-list, .service-steps, .footer-main {
  position: relative;
}

/* Consistent spacing between all elements */
section, .section, .feature-grid, .testimonial-slider, .service-list, .service-steps, .cards, .footer-main {
  margin-bottom: 24px;
}

/* Avoid content overlap */
.section, .feature-grid, .content-wrapper, .testimonial-slider, .footer-main {
  gap: 24px;
}

/* --- END OF STYLE.CSS --- */
