/* --- 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, 
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background: linear-gradient(135deg, #9FB5C5 0%, #ffffff 100%);
  color: #29465B;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #29465B;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #F5A623;
  text-decoration: underline;
  outline: none;
}
ul, ol {
  margin-left: 1.4em;
  margin-bottom: 1em;
  padding-left: 0.5em;
}
li {
  margin-bottom: 8px;
}
img {
  max-width: 100%;
  height: auto;
}
table {
  width: 100%;
  margin-bottom: 24px;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 18px 0 rgba(41, 70, 91, 0.05);
}
th, td {
  padding: 16px 12px;
  text-align: left;
  border-bottom: 1px solid #e5e9ed;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #29465B;
}
th {
  background: #9FB5C5;
  color: #29465B;
  font-weight: 700;
}
tr:last-child td {
  border-bottom: none;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: #29465B;
  background: none;
  border: none;
  outline: none;
  transition: background 0.18s, color 0.2s, border 0.2s;
}

/* --- VARIABLES (with fallbacks) --- */
:root {
  --brand-primary: #29465B;
  --brand-secondary: #9FB5C5;
  --brand-accent: #F5A623;
  --gradient-main: linear-gradient(98deg, #29465B 0%, #9FB5C5 80%);
  --gradient-btn: linear-gradient(98deg, #F5A623 5%, #FFC46D 90%);
  --white: #fff;
  --radius: 14px;
  --shadow-main: 0 4px 22px 0 rgba(41, 70, 91, 0.07);
  --shadow-card: 0 2px 10px 0 rgba(41, 70, 91, 0.11);
  --shadow-btn: 0 2px 8px 0 rgba(245, 166, 35, 0.10);
}

/* --- TYPOGRAPHY --- */
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #29465B;
  background: var(--gradient-main);
}
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #29465B;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 18px;
  margin-top: 12px;
  color: #29465B;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.325rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #29465B;
}
h4, .h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}
p {
  margin-bottom: 16px;
  font-size: 1rem;
  color: #29465B;
}
strong, b {
  font-weight: 700;
}
.text-section ul {
  margin-bottom: 8px;
  margin-left: 1.3em;
}
.text-section li {
  margin-bottom: 6px;
}

/* --- CONTAINER & SECTION LAYOUTS (FLEXBOX ONLY) --- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(98deg, #9FB5C5 10%, #fff 90%);
  border-radius: var(--radius);
  margin-bottom: 60px;
  box-shadow: var(--shadow-main);
  position: relative;
}
.hero .container {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero h1 {
  color: #29465B;
  font-size: 2.6rem;
}
.hero p {
  font-size: 1.25rem;
  margin-bottom: 20px;
  color: #29515b;
}

/* --- HEADER & NAVIGATION --- */
header {
  background: linear-gradient(90deg, #29465B 75%, #9FB5C5 120%);
  color: var(--white);
  box-shadow: 0 2px 20px 0 rgba(41, 70, 91, 0.07);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 16px;
}
header img {
  max-height: 40px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  color: var(--white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 8px;
  border-radius: 6px;
  transition: background .18s, color .18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F5A623;
  color: #29465B;
  text-decoration: none;
}
.cta-button {
  background: var(--gradient-btn);
  color: #29465B;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.11rem;
  padding: 11px 32px;
  border-radius: 24px;
  box-shadow: var(--shadow-btn);
  outline: none;
  border: none;
  transition: background 0.2s, color 0.2s, box-shadow .18s;
  cursor: pointer;
  margin-left: 14px;
  text-align: center;
  display: inline-block;
}
.cta-button:hover, .cta-button:focus {
  background: linear-gradient(98deg, #FFC46D 0%, #F5A623 100%);
  color: #183346;
  box-shadow: 0 4px 20px 0 rgba(245, 166, 35, 0.17);
  text-decoration: none;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  color: #fff;
  font-size: 2rem;
  border: none;
  cursor: pointer;
  padding: 7px 15px;
  margin-left: 14px;
  border-radius: 40px;
  transition: background 0.12s;
  z-index: 80;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #F5A623;
  color: #29465B;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(112deg, #29465B 60%, #9FB5C5 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.52,.19,.04,.87);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}
.mobile-menu-close {
  color: #fff;
  font-size: 2rem;
  background: none;
  border: none;
  align-self: flex-end;
  margin: 24px 26px 0 0;
  cursor: pointer;
  z-index: 1310;
  padding: 12px 17px;
  border-radius: 35px;
  transition: background 0.18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #F5A623;
  color: #29465B;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin: 36px 0 0 34px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  color: #fff;
  padding: 10px 8px 10px 3px;
  border-radius: 4px;
  transition: background .16s, color .16s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #F5A623;
  color: #29465B;
}

/* --- MAIN LAYOUT --- */
main {
  width: 100%;
  margin: 0 auto;
  padding-bottom: 40px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* --- CARDS & GRIDS --- */
.service-preview-grid, .service-grid, .testimonial-list, .testimonials-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.service-teaser, .service-item {
  background: #fff;
  color: #29465B;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  flex: 1 1 270px;
  min-width: 240px;
  max-width: 340px;
  padding: 32px 22px 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: transform 0.16s, box-shadow 0.17s;
  border: 1px solid #e5e9ed;
}
.service-teaser:hover, .service-item:hover {
  transform: translateY(-6px) scale(1.025);
  box-shadow: 0 6px 24px 0 rgba(41, 70, 91, 0.12);
  border: 1px solid #F5A623;
  z-index: 3;
}
.service-teaser img, .service-item img {
  width: 44px;
  height: 44px;
  margin-bottom: 3px;
}
.service-teaser h3, .service-item h3 {
  color: #29465B;
  font-size: 1.15rem;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
}
.service-teaser a, .service-item a {
  color: #F5A623;
  font-weight: 600;
  margin-top: auto;
  font-size: 1rem;
  transition: color .16s;
}
.service-teaser a:hover, .service-item a:hover { color: #29465B; }

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
}

/* --- TESTIMONIALS --- */
.testimonials-preview, .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  color: #29465B;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  min-width: 255px;
  max-width: 350px;
  margin-bottom: 20px;
}
.testimonial-card p {
  font-size: 1rem;
  color: #29465B;
  margin-bottom: 9px;
}
.testimonial-card span {
  color: #183346;
  font-size: 0.98rem;
  font-style: italic;
}
.rating-summary {
  font-size: 1.08rem;
  color: #29465B;
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 12px;
}

/* --- BADGE --- */
.badge {
  display: flex;
  align-items: center;
  background: var(--gradient-btn);
  color: #29465B;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: .97rem;
  font-weight: 600;
  margin: 23px 0 10px 0;
  box-shadow: 0 2px 8px 0 rgba(245, 166, 35, 0.14);
}

/* --- LAYOUT HELPERS --- */
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- FAQ ACCORDION --- */
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-card);
  margin-bottom: 10px;
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
  border-left: 4px solid #9FB5C5;
}
.faq-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #29465B;
  margin-bottom: 8px;
}
.faq-answer {
  font-size: 0.97rem;
  color: #29465B;
  margin-bottom: 5px;
}
.faq-item.active, .faq-item:hover {
  box-shadow: 0 4px 16px 0 rgba(41, 70, 91, 0.14);
  border-left: 4px solid #F5A623;
  background: #f7f8fa;
}

/* --- MAP PLACEHOLDER --- */
.map-placeholder {
  background: #e8eef2;
  color: #29465B;
  border-radius: var(--radius);
  text-align: center;
  padding: 23px 6px;
  font-style: italic;
  font-size: 1.06rem;
  margin: 16px 0;
}

/* --- FOOTER --- */
footer {
  background: linear-gradient(90deg, #29465B 75%, #9FB5C5 120%);
  color: #fff;
  margin-top: 30px;
  font-size: 1rem;
}
footer .container {
  padding-top: 32px;
  padding-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 13px;
}
.footer-menu a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
  opacity: 0.96;
  transition: color 0.15s, opacity 0.15s;
  padding: 2px 10px;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: #F5A623;
  opacity: 1;
}
.contact-snippet {
  color: #e7ecf4;
  font-size: 0.98rem;
  margin-bottom: 11px;
}
.contact-snippet a {
  color: #F5A623;
}
.brand-credits {
  color: #b6bed2;
  font-size: 0.95rem;
  margin-top: 6px;
}

/* --- COOKIE BANNER & MODAL --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(92deg, #29465B 80%, #F5A623 130%);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 22px 18px;
  z-index: 1400;
  box-shadow: 0 -2px 18px 0 rgba(41,70,91,0.09);
  font-size: 1rem;
  transition: transform 0.28s;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-banner button {
  border-radius: 17px;
  padding: 9px 20px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  background: #fff;
  color: #29465B;
  margin: 0 2px;
  transition: background 0.17s, color 0.17s, box-shadow 0.16s;
  outline: none;
  box-shadow: 0 1px 3px rgba(245,166,35,0.09);
}
.cookie-banner button.accept {
  background: var(--gradient-btn);
  color: #29465B;
}
.cookie-banner button.settings {
  background: #F5A623;
  color: #29465B;
}
.cookie-banner button.reject {
  background: #e8eef2;
  color: #29465B;
}
.cookie-banner button:focus, .cookie-banner button:hover {
  box-shadow: 0 2px 8px 0 rgba(245, 166, 35, 0.17);
  background: #FFC46D;
  color: #29465B;
}

.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(41, 70, 91, 0.53);
  z-index: 1500;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.2s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  color: #29465B;
  padding: 32px 26px 26px 26px;
  border-radius: 18px;
  max-width: 362px;
  min-width: 248px;
  box-shadow: 0 4px 28px 0 rgba(41, 70, 91, 0.16);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.35rem;
  color: #29465B;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 8px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
}
.cookie-modal .category-label {
  font-size: 1rem;
  font-weight: 600;
}
.cookie-modal .category-toggle {
  margin-left: auto;
}
.cookie-modal .category-toggle input[type="checkbox"] {
  width: 34px;
  height: 18px;
  accent-color: #F5A623;
  cursor: pointer;
}
.cookie-modal .category-toggle input[disabled] {
  accent-color: #b1b9c8;
  cursor: not-allowed;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}
.cookie-modal button {
  border-radius: 14px;
  padding: 8px 16px;
  font-size: 1rem;
  border: none;
  background: #29465B;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.14s;
}
.cookie-modal button:focus, .cookie-modal button:hover {
  background: #F5A623;
  color: #29465B;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 11px; right: 13px;
  background: none;
  color: #29465B;
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 14px;
  transition: background 0.13s;
}
.cookie-modal .close-modal:hover {
  background: #F5A623;
  color: #29465B;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
  .container {
    max-width: 98vw;
    padding-left: 14px; padding-right: 14px;
  }
  .service-preview-grid, .service-grid, .testimonial-list, .testimonials-preview {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  header .container { flex-direction: row; }
  .main-nav { gap: 12px; }
  .service-preview-grid, .service-grid, .testimonial-list, .testimonials-preview {
    justify-content: flex-start;
    gap: 16px;
  }
  .service-teaser, .service-item {
    flex-basis: 220px;
    min-width: 180px;
    max-width: 340px;
  }
}
@media (max-width: 768px) {
  header .container{
    flex-wrap: wrap;
    gap: 10px;
    flex-direction: row;
    min-height: 56px;
  }
  .main-nav {
    display: none;
  }
  .cta-button {
    margin-left: 0;
    margin-top: 0;
    padding: 10px 26px;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .hero .container {
    min-height: 180px;
  }
  .service-preview-grid, .service-grid, .testimonial-list, .testimonials-preview {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .section {
    margin-bottom: 36px;
    padding: 28px 6px;
  }
  .testimonial-card,
  .service-teaser,
  .service-item,
  .card {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
  .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .text-image-section { flex-direction: column; gap: 18px; }
  .footer-menu { gap: 10px; font-size: 1rem; }
}
@media (max-width: 500px) {
  h1, .h1 { font-size: 1.65rem; }
  h2, .h2 { font-size: 1.19rem; }
  .content-wrapper { gap: 14px; }
  .hero {
    margin-bottom: 24px;
    border-radius: 0 0 17px 17px;
  }
  .card,
  .service-teaser,
  .service-item,
  .testimonial-card {
    padding: 17px 9px 18px 12px;
  }
  .cookie-banner { font-size: .94rem; padding: 15px 5px; }
}

/* --- UTILITY --- */
.visually-hidden {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  white-space: nowrap !important;
}

/* --- END --- */
