/* --- CSS RESET & BASE STYLES --- */
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 {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #18181b;
  background: #fff;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
ol, ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #13a572;
  outline: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
  appearance: none;
}

/* --- TYPOGRAPHY SCALE --- */
h1, .h1 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: #18181b;
}
h2, .h2 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: #1e293b;
}
h3, .h3 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: #18181b;
}
h4, .h4 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
}
p {
  margin-bottom: 16px;
}
strong {
  font-weight: 600;
}

/* --- GENERAL LAYOUT CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* --- HEADER / NAVIGATION --- */
header {
  background: #fff;
  border-bottom: 1px solid #f1f1f2;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 20px;
  position: relative;
}
.main-nav > a > img {
  height: 36px;
  width: auto;
  margin-right: 18px;
}
.main-nav ul {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.main-nav ul li {
  margin: 0;
}
.main-nav ul li a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #1e293b;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.main-nav ul li a:hover, .main-nav ul li a:focus {
  background: #f1f5f9;
  color: #13a572;
}
.btn-primary {
  display: inline-block;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  background: #2563eb;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 32px;
  padding: 10px 32px;
  box-shadow: 0 2px 12px 0 rgba(37,99,235,0.04);
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  outline: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: #1743a3;
  box-shadow: 0 3px 20px 0 rgba(19,165,114,0.07);
  transform: translateY(-2px) scale(1.025);
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  background: #f8fafc;
  border-radius: 50%;
  font-size: 2rem;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: none;
  color: #2563eb;
  cursor: pointer;
  box-shadow: 0 1px 6px 0 rgba(0,0,0,0.06);
  transition: background .17s;
  z-index: 102;
}
.mobile-menu-toggle:focus {
  background: #e0e7ef;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 4px 64px 4px rgba(37,99,235,0.04);
  z-index: 3000;
  transform: translateX(-110%);
  transition: transform .32s cubic-bezier(.6,.1,0,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0 0 32px 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.5rem;
  color: #2563eb;
  background: none;
  border: none;
  padding: 28px 28px 12px 12px;
  align-self: flex-end;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #13a572;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 18px;
  gap: 6px;
}
.mobile-nav a {
  width: 100%;
  display: block;
  padding: 16px 32px;
  font-size: 1.1rem;
  color: #1e293b;
  border-radius: 0;
  font-weight: 500;
  transition: background .16s, color .16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #f8fafc;
  color: #2563eb;
}

/* --- HERO & MAIN SECTIONS --- */
.hero {
  background: #f8fafc;
  padding: 60px 0 48px 0;
  border-radius: 0 0 52px 52px;
  box-shadow: 0 4px 18px 0 rgba(37, 99, 235, 0.025);
  margin-bottom: 48px;
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 740px;
  gap: 18px;
}

/* --- FEATURES, CARDS, LISTS --- */
.features .content-wrapper, .services-home .content-wrapper, .contact-offer .content-wrapper, .faq .content-wrapper, .section .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}
.features ul, .services-home ul, .faq ol, section ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.features ul li, .services-home ul li, .faq ol li, section ul li {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px 0 rgba(24, 24, 27, 0.06);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 210px;
  min-height: 185px;
  max-width: 290px;
  flex: 1 1 225px;
  margin-bottom: 20px;
  transition: box-shadow 0.23s, transform 0.16s;
  position: relative;
}
.features ul li:hover, .services-home ul li:hover,
.faq ol li:hover, section ul li:hover {
  box-shadow: 0 7px 32px 0 rgba(37,99,235,0.08);
  transform: translateY(-3px) scale(1.02);
}
.features ul li img, .services-home ul li img, .faq ol li img {
  width: 44px;
  height: 44px;
  margin-bottom: 2px;
}

/* --- TESTIMONIALS --- */
.testimonials {
  background: #fff;
  padding: 52px 0 44px 0;
  margin-bottom: 60px;
}
.testimonials .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
}
.testimonial-card {
  background: #f8fafc;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(37,99,235,0.05);
  padding: 20px 28px;
  min-width: 260px;
  max-width: 340px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  color: #1e293b;
  font-size: 1rem;
  font-weight: 400;
  transition: box-shadow .19s, transform .19s;
}
.testimonial-card:hover {
  box-shadow: 0 7px 32px 0 rgba(19,165,114,0.10);
  transform: translateY(-2px) scale(1.015);
}
.testimonial-card p {
  color: #18181b;
  font-size: 1.07rem;
}
.testimonial-card span {
  color: #2563eb;
  font-weight: 500;
  font-size: 1rem;
}
.rating-summary {
  align-items: flex-start;
  justify-content: flex-start;
}
.rating-summary h3 {
  margin-bottom: 7px;
}

/* --- TABLES --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}
thead {
  background: #f8fafc;
}
thead th {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 14px 8px;
  color: #1e293b;
  border-bottom: 2px solid #e0e7ef;
}
tbody td {
  font-size: 1rem;
  color: #374151;
  padding: 14px 8px;
  border-bottom: 1px solid #f1f5f9;
}
tbody tr:last-child td {
  border-bottom: none;
}

/* --- QUICK CONTACT, MAP --- */
.quick-contact, .contact-offer, .location-map {
  background: #f8fafc;
  border-radius: 16px;
  margin-bottom: 40px;
  box-shadow: 0 1px 12px 0 rgba(19,165,114,0.02);
}
.location-map {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  color: #64748b;
  border-radius: 14px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  background: #f3f3f3;
  box-shadow: 0 1px 8px 0 rgba(0,0,0,0.04);
}

/* --- FAQ --- */
.faq details {
  margin-bottom: 18px;
  border-radius: 10px;
  box-shadow: 0 1px 7px 0 rgba(37,99,235,0.045);
  background: #fff;
  padding: 18px 22px;
  transition: box-shadow .16s;
}
.faq details[open] {
  box-shadow: 0 4px 24px 0 rgba(37,99,235,0.08);
}
.faq summary {
  color: #2563eb;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  margin-bottom: 10px;
  outline: none;
}
.faq p {
  font-size: 1rem;
  color: #1e293b;
  margin-top: 8px;
}

/* --- FOOTER --- */
footer {
  background: #fff;
  border-top: 1px solid #f1f5f9;
  padding: 32px 0 18px 0;
}
.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 16px;
}
.footer-nav a {
  color: #64748b;
  font-size: 0.97rem;
  transition: color 0.16s;
  padding: 2px 6px;
  border-radius: 6px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #2563eb;
  background: #f8fafc;
}
footer p {
  font-size: 0.97rem;
  color: #94a3b8;
  text-align: center;
}

/* --- BUTTONS --- */
button, .btn-primary {
  transition: background 0.19s, color 0.18s, box-shadow 0.18s, transform 0.15s;
}
.btn-primary:active {
  transform: scale(0.98);
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1e293b;
  color: #fff;
  box-shadow: 0 -2px 28px 0 rgba(37,99,235,0.09);
  z-index: 4000;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 22px 18px 22px 18px;
  gap: 26px;
  flex-wrap: wrap;
  font-size: 1rem;
  transition: transform .23s cubic-bezier(.6,.1,0,1);
}
.cookie-banner.hide {
  transform: translateY(120%);
  pointer-events: none;
}
.cookie-banner__text {
  flex: 1 1 220px;
  min-width: 160px;
  margin-bottom: 12px;
  color: #fff;
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.cookie-btn {
  padding: 9px 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.13s, box-shadow 0.16s;
  margin-right: 0;
}
.cookie-btn--accept {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 2px 8px 0 rgba(37,99,235,0.035);
}
.cookie-btn--accept:hover {
  background: #1743a3;
}
.cookie-btn--reject {
  background: #f8fafc;
  color: #2563eb;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px 0 rgba(19,165,114,0.03);
  margin-left: 0;
}
.cookie-btn--reject:hover {
  background: #e0e6ec;
  color: #1743a3;
}
.cookie-btn--settings {
  background: #f1f5f9;
  color: #1e293b;
}
.cookie-btn--settings:hover {
  background: #13a572;
  color: #fff;
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30,41,59,0.40);
  width: 100vw;
  height: 100vh;
  z-index: 4100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity .19s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 8px 44px 0 rgba(30,41,59,0.18);
  min-width: 330px;
  max-width: 98vw;
  padding: 28px 24px 18px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: #1e293b;
}
.cookie-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #868e9f;
  cursor: pointer;
  transition: color .13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #2563eb;
}
.cookie-modal h2 {
  font-size: 1.35rem;
  margin-bottom: 0.6em;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #1743a3;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  padding: 10px 0;
}
.cookie-modal .cookie-category input[type=checkbox] {
  width: 20px; height: 20px;
  border-radius: 5px; border: 1.5px solid #13a572;
  margin-right: 5px;
  outline: none;
  accent-color: #13a572;
}
.cookie-modal .cookie-category--required label {
  font-weight: 600;
  color: #1e293b;
}
.cookie-modal .cookie-category--required input[type=checkbox] {
  accent-color: #2563eb;
}
.cookie-modal .cookie-description {
  font-size: 0.95rem;
  color: #64748b;
  margin-top: -4px;
  margin-bottom: 2px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 10px;
}

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

/* --- RESPONSIVE STYLES --- */
@media (max-width: 1024px) {
  .container {
    max-width: 95vw;
  }
  .main-nav ul {
    gap: 16px;
  }
  .features ul li, .services-home ul li, .faq ol li {
    max-width: 245px;
  }
}
@media (max-width: 900px) {
  .main-nav ul {
    flex-wrap: wrap;
    gap: 12px;
  }
  .features .content-wrapper, .services-home .content-wrapper, .faq .content-wrapper {
    gap: 14px;
  }
  .features ul li, .services-home ul li, .faq ol li {
    flex-basis: 175px;
    min-width: 160px;
    max-width: 99vw;
    padding: 22px 12px;
  }
  .testimonial-card {
    min-width: 180px;
    padding: 18px 10px;
  }
}
@media (max-width: 768px) {
  .main-nav ul {
    display: none;
  }
  .main-nav .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    margin-left: auto;
  }
  .hero {
    padding: 28px 0 24px 0;
    border-radius: 0px 0px 32px 32px;
    margin-bottom: 34px;
  }
  .container {
    padding: 0 9px;
  }
  .features ul, .services-home ul, .faq ol, section ul {
    flex-direction: column;
    gap: 12px;
  }
  .features ul li, .services-home ul li, .faq ol li {
    min-width: 0;
    max-width: 100vw;
    width: 100%;
    padding: 18px 8px;
  }
  .testimonials .content-wrapper {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    min-width: 0;
    max-width: 100vw;
    width: 100%;
    padding: 14px 7px;
    gap: 9px;
  }
  .footer-nav {
    gap: 12px;
    margin-bottom: 12px;
  }
  .section {
    padding: 20px 7px;
    margin-bottom: 38px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
@media (max-width: 550px) {
  h1, .h1 {
    font-size: 2rem;
    margin-bottom: 14px;
  }
  h2, .h2 {
    font-size: 1.3rem;
    margin-bottom: 8px;
  }
  .testimonials, .features, .hero, .section {
    padding: 10px 0;
  }
  .container {
    padding: 0 3px;
  }
  .cookie-modal {
    min-width: 94vw;
    padding: 17px 7px 10px 7px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    font-size: .98rem;
    padding-right: 7px;
    padding-left: 7px;
  }
}

/* --- ANIMATIONS AND MICRO-INTERACTIONS --- */
.hero, .features, .services-home, .testimonials, .quick-contact, .faq, .section, .contact-offer {
  animation: fadeInSection .7s cubic-bezier(.4,0,.2,1);
}
@keyframes fadeInSection {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Style for ::selection */
::selection {
  background: #2563eb22;
  color: #1e293b;
}

/* SCROLLBAR STYLING for visual cleanliness */
body, html {
  scrollbar-width: thin;
  scrollbar-color: #e0e7ef #fff;
}
body::-webkit-scrollbar {
  width: 7px;
  background: #fff;
}
body::-webkit-scrollbar-thumb {
  background: #e0e7ef;
  border-radius: 7px;
}

/* Print minimalistic error feedback if .alert or .error */
.alert, .error {
  border-radius: 10px;
  padding: 12px 18px;
  margin-bottom: 16px;
  background: #fff;
  color: #cf2d1c;
  border: 1.5px solid #f87171;
  font-weight: 500;
  font-size: 1.07rem;
}

/* Hide visually not-needed outline but keep a11y focus */
:focus {
  outline: 2px solid #2563eb88;
  outline-offset: 1px;
}
[tabindex="-1"]:focus {
  outline: none !important;
}

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