/* --- 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,
main, 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-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  background: #F8FAFC;
  font-family: 'Roboto', Arial, sans-serif;
  color: #2A344C;
  font-size: 16px;
  line-height: 1.6;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #2A344C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #135285;
}
ul, ol, li {
  list-style: none;
}
button {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* --- BRAND COLORS --- */
:root {
  --primary: #2A344C;
  --primary-dark: #1a2032;
  --primary-light: #3e4a6d;
  --secondary: #8CB6C9;
  --secondary-dark: #6193b0;
  --accent: #FFE9B0;
  --gray-bg: #F8FAFC;
  --gray-border: #E2E7EF;
  --white: #fff;
  --shadow: 0 2px 12px rgba(42,52,76,.07);
  --radius: 12px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.15;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, ul, ol {
  margin-bottom: 16px;
  color: #2A344C;
}
strong {
  font-weight: bold;
}
em {
  font-style: italic;
}
.subheadline {
  font-size: 1.20rem;
  color: var(--primary-light);
  margin-bottom: 24px;
}

/* --- GENERAL LAYOUT CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

/* --- HEADER --- */
header {
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 18px;
}
header nav {
  display: flex;
  gap: 20px;
}
header nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  color: var(--primary);
  padding: 6px 0;
  border-radius: 3px;
  transition: background 0.16s, color 0.2s;
}
header nav a:hover,
header nav a:focus {
  background: var(--secondary);
  color: var(--primary-dark);
}
header a img {
  height: 36px;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius);
  padding: 11px 30px;
  margin-left: 10px;
  border: none;
  box-shadow: var(--shadow);
  transition: background 0.16s, transform 0.18s;
  outline: none;
  display: inline-block;
  cursor: pointer;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary-dark);
  transform: translateY(-2px) scale(1.03);
}
.btn-secondary {
  background: var(--secondary);
  color: var(--primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border-radius: var(--radius);
  font-weight: 700;
  padding: 11px 30px;
  margin-top: 16px;
  box-shadow: var(--shadow);
  transition: background 0.18s, color 0.18s, transform 0.18s;
  border: none;
  outline: none;
  cursor: pointer;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--secondary-dark);
  color: var(--white);
  transform: translateY(-2px) scale(1.03);
}
/* Hide mobile menu open button on desktop */
.mobile-menu-toggle {
  display: none;
}

/* --- MAIN SECTIONS --- */
main {
  min-height: 64vh;
  background: var(--gray-bg);
  padding-top: 24px;
  padding-bottom: 24px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* --- Feature Grid --- */
.feature-grid, .features, .feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div, .feature-item {
  background: #F4F8FA;
  border-radius: var(--radius);
  padding: 28px 22px 22px 22px;
  box-shadow: 0 1px 8px rgba(42,52,76,.04);
  flex: 1 1 270px;
  min-width: 240px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-grid img {
  height: 48px;
  margin-bottom: 2px;
}

/* --- Cards --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  min-width: 220px;
  padding: 20px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

/* --- Service Lists --- */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 12px;
  margin-bottom: 28px;
}
.service-list li {
  background: #F4F8FA;
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(42,52,76,0.07);
  padding: 22px 20px 14px 22px;
  color: var(--primary);
  font-size: 1rem;
  line-height: 1.55;
}
.service-list .price {
  display: inline-block;
  color: var(--primary);
  background: var(--accent);
  font-weight: bold;
  padding: 3px 12px;
  border-radius: 6px;
  font-size: 1rem;
  margin-top: 6px;
  margin-left: 6px;
}

/* --- Testimonials --- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--gray-bg);
  border-radius: var(--radius);
  box-shadow: 0 1px 8px rgba(42,52,76,.05);
  margin-bottom: 20px;
  border-left: 5px solid var(--secondary);
}
.testimonial-card p {
  color: #263553;
  font-size: 1.08rem;
  margin-bottom: 0;
  font-style: italic;
}
.testimonial-card span {
  color: #485471;
  font-size: 0.97rem;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
}

/* --- Contact Information Teaser --- */
.contact-info-teaser {
  background: #F4F8FA;
  border-left: 4px solid var(--primary);
  padding: 18px 22px;
  margin: 0 0 16px 0;
  border-radius: var(--radius);
  color: var(--primary);
  font-size: 1rem;
}

/* --- Text and Map Sections --- */
.text-section {
  margin-bottom: 18px;
  font-size: 1.09rem;
}
.map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  background: #EEF3F8;
  border-radius: 10px;
  color: var(--primary-light);
  font-style: italic;
  margin-top: 12px;
  padding: 18px 0;
}

/* --- Footer --- */
footer {
  background: var(--white);
  border-top: 1px solid var(--gray-border);
  box-shadow: var(--shadow);
  padding: 30px 0 12px 0;
}
footer .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  flex-direction: row;
}
footer nav {
  display: flex;
  gap: 16px;
}
footer nav a {
  color: #526080;
  font-size: 0.98rem;
  transition: color .16s;
}
footer nav a:hover,
footer nav a:focus {
  color: var(--primary-dark);
}
footer p {
  font-size: 0.97rem;
  color: #8493ae;
  margin-left: auto;
}
footer img {
  height: 32px;
}

/* --- BUTTONS --- */
.btn-primary, .btn-secondary {
  box-shadow: 0 2px 8px rgba(42,52,76,.08);
}
.btn-primary:active, .btn-secondary:active {
  transform: scale(0.98);
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  position: fixed;
  top: 19px;
  right: 22px;
  z-index: 300;
  width: 42px;
  height: 42px;
  background: var(--white);
  color: var(--primary);
  border-radius: 8px;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(42,52,76,.10);
  border: 1px solid var(--gray-border);
  transition: background 0.19s, color 0.19s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--secondary);
  color: var(--primary-dark);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100vh;
  background: var(--primary);
  color: var(--white);
  z-index: 500;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.37,0,.63,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 30px 0 30px;
  box-shadow: -4px 0 18px rgba(42,52,76,0.13);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: var(--white);
  border: none;
  font-size: 2.2rem;
  align-self: flex-end;
  margin-bottom: 30px;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus { color: var(--accent); }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 28px;
  width: 100%;
}
.mobile-nav a {
  color: var(--white);
  font-size: 1.25rem;
  padding: 12px 0;
  transition: color 0.21s, background 0.16s;
  border-radius: 6px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* Hide header/main nav on mobile */
@media (max-width: 992px) {
  header .container nav,
  header .btn-primary {
    display: none!important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 993px) {
  .mobile-menu { display: none!important; }
}

/* --- TEXT-IMAGE SECTION --- */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* --- CARDS / CARD-CONTAINER --- */
.card-container {
  gap: 24px;
  flex-wrap: wrap;
}
.card {
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 1px 10px rgba(30,50,70,0.06);
  transition: box-shadow 0.19s, transform 0.19s;
}
.card:hover {
  box-shadow: 0 4px 24px rgba(30,50,70,0.15);
  transform: translateY(-3px) scale(1.03);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* --- FEATURE ITEM --- */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 18px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #F4F8FA;
}

/* --- RESPONSIVE DESIGN (MOBILE-FIRST) --- */
@media (max-width: 768px) {
  section {
    padding: 26px 8px;
    margin-bottom: 38px;
  }
  .container {
    max-width: 100vw;
    padding: 0 6px;
  }
  .content-wrapper {
    gap: 12px;
    padding: 0 0 6px 0;
  }
  .feature-grid, .card-container, .content-grid, .testimonial-list, .features {
    gap: 14px;
  }
  .service-list li, .feature-grid > div {
    min-width: 44vw;
    padding: 16px 11px 10px 14px;
    font-size: 0.98rem;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.44rem;
  }
  header .container {
    padding: 10px 8px 10px 8px;
    gap: 10px;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    margin-left: 0;
    padding: 11px 0;
    font-size: 1.05rem;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px 8px;
  }
  footer .container {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
    padding: 0 8px;
  }
  footer nav {
    gap: 10px;
    flex-wrap: wrap;
  }
}

/* --- SPACING and ALIGNMENT (MANDATORY PATTERNS) --- */
.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;
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 -2px 14px rgba(40,50,76,0.11);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding: 20px 32px 20px 32px;
  font-size: 1rem;
  border-radius: 18px 18px 0 0;
  animation: cookieBannerSlideUp 0.4s 1;
}
@keyframes cookieBannerSlideUp {
  0% { transform: translateY(110%); opacity:0; }
  100% { transform: translateY(0); opacity:1; }
}
.cookie-banner-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner button,
.cookie-modal button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 9px 22px;
  margin: 0;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.18s;
}
.cookie-banner .accept {
  background: var(--primary);
  color: var(--white);
  margin-right: 4px;
  box-shadow: var(--shadow);
}
.cookie-banner .accept:hover,
.cookie-banner .accept:focus {
  background: var(--primary-dark);
}
.cookie-banner .reject {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-banner .reject:hover,
.cookie-banner .reject:focus {
  background: var(--secondary-dark);
  color: var(--white);
}
.cookie-banner .settings {
  background: var(--gray-bg);
  color: var(--primary-light);
  border: 1px solid var(--gray-border);
}
.cookie-banner .settings:hover,
.cookie-banner .settings:focus {
  background: var(--accent);
  color: var(--primary-dark);
}

/* --- Cookie Preferences Modal --- */
.cookie-modal {
  position: fixed;
  bottom: 0; left: 0; right: 0; top: 0;
  background: rgba(42,52,76, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10002;
  animation: fadeInModal 0.24s;
}
@keyframes fadeInModal {
  from { opacity:0; }
  to   { opacity:1; }
}
.cookie-modal-content {
  background: var(--white);
  padding: 36px 30px 26px 32px;
  border-radius: 14px;
  box-shadow: 0 4px 32px rgba(42,52,76,0.14);
  max-width: 375px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal-content h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.cookie-modal-category label {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 500;
}
.cookie-modal-category .switch {
  appearance: none;
  width: 36px;
  height: 20px;
  background: var(--gray-border);
  border-radius: 10px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.16s;
}
.cookie-modal-category .switch:checked {
  background: var(--secondary);
}
.cookie-modal-category .switch:before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 6px rgba(42,52,76,.13);
  position: absolute;
  left: 2px;
  top: 2px;
  transition: transform 0.23s cubic-bezier(.35,1.54,.69,1.2);
}
.cookie-modal-category .switch:checked:before {
  transform: translateX(16px);
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal .close {
  position: absolute;
  top: 15px;
  right: 24px;
  color: var(--primary-light);
  font-size: 1.45rem;
  background: transparent;
  border: none;
  cursor: pointer;
}
.cookie-modal .close:hover,
.cookie-modal .close:focus {
  color: var(--primary);
}

@media (max-width: 430px) {
  .cookie-modal-content {
    max-width: 95vw;
    padding: 22px 6vw 16px 6vw;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 17px 7vw 12px 7vw;
  }
}

/* --- Micro-Interactions (smooth hover) --- */
.btn-primary, .btn-secondary, .cookie-banner button, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.15s;
}
nav a, .mobile-nav a, .service-list li, .feature-grid > div, .card {
  transition: box-shadow 0.19s, color 0.17s, transform 0.15s, background 0.19s;
}
.card:hover, .feature-grid > div:hover {
  box-shadow: 0 6px 28px rgba(30,52,88,.15);
}

/* --- Misc Utility --- */
.mt-0 { margin-top: 0 !important;} .mb-0 { margin-bottom: 0 !important;} .mt-10 { margin-top: 10px !important; } .mb-10 { margin-bottom: 10px !important; }

/* --- FOCUS VISIBLE --- */
a:focus, button:focus, .btn-primary:focus, .btn-secondary:focus, .cookie-banner button:focus, .mobile-menu-toggle:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* --- ENSURE NO OVERLAP (for critical elements) ---*/
main, footer, header, section, .card, .feature-grid > div, .service-list li, .testimonial-card, .contact-info-teaser {
  box-sizing: border-box;
  z-index: 1;
}

/* --- Hide elements utility ---*/
.d-none { display: none!important; }
