/* --- CSS RESET & BASE --- */
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 {
  scroll-behavior: smooth;
  background: #F9FAFC;
}
body {
  font-family: 'Roboto', Georgia, 'Times New Roman', Times, serif;
  color: #1D2640;
  background: #F9FAFC;
  line-height: 1.65;
  font-size: 16px;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #21487E;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #21A179;
  outline: none;
}
button, .cta-btn {
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.25s, color 0.2s, box-shadow 0.2s;
}
ul, ol {
  list-style: none;
}
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* --- TYPOGRAPHY --- */
h1 {
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1.12;
  color: #21487E;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}
h2 {
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 700;
  font-size: 2rem;
  color: #1D2640;
  margin-bottom: 20px;
}
h3 {
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: #21487E;
}
h4, h5, h6 {
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 500;
  color: #21487E;
  margin-bottom: 12px;
}
.subheadline {
  font-size: 1.2rem;
  color: #3e4a60;
  margin-bottom: 28px;
  font-family: 'Roboto', Georgia, serif;
  font-style: italic;
  max-width: 32em;
}
p, li, blockquote, span, table, th, td {
  font-size: 1rem;
  color: #2b3244;
}
strong {
  font-weight: 700;
}
blockquote {
  font-style: italic;
  border-left: 4px solid #21487E;
  padding-left: 16px;
  color: #2B3244;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.1rem;
  margin-bottom: 10px;
  letter-spacing: -.03em;
}

/* --- HEADER & NAV --- */
header {
  background: #ffffff;
  border-bottom: 1.5px solid #F1F3F7;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}
header img[alt="Quantum Glide"] {
  height: 40px;
  display: block;
}
.main-nav {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
}
.main-nav a {
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 500;
  font-size: 1rem;
  color: #21487E;
  padding: 6px 0;
  position: relative;
  transition: color 0.18s;
  letter-spacing: .01em;
}
.main-nav a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #21A179;
  transition: width 0.3s;
  position: absolute;
  left: 0;
  bottom: -2px;
}
.main-nav a:hover:after,
.main-nav a:focus:after {
  width: 100%;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #17724F;
}
.cta-btn {
  display: inline-block;
  background: #21A179;
  color: #fff;
  font-size: 1.05rem;
  padding: 10px 28px;
  border-radius: 32px;
  box-shadow: 0 2px 12px rgba(33,72,126,0.04);
  margin-left: 20px;
  text-align: center;
  transition: background 0.22s, color 0.20s, box-shadow 0.23s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #17724F;
  color: #fff;
  box-shadow: 0 4px 22px rgba(33,161,121,0.10);
}

.mobile-menu-toggle {
  background: none;
  color: #21487E;
  font-size: 2rem;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1.5px solid #F1F3F7;
  margin-left: 16px;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 120;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #F1F3F7;
  color: #21A179;
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #ffffff;
  box-shadow: 0 2px 40px rgba(33,72,126,0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100%);
  transition: opacity 0.22s, transform 0.32s cubic-bezier(.42,.11,.33,1.23);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 0;
}
.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #21487E;
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 18px 22px 10px 0;
  cursor: pointer;
  border: 1.5px solid #F1F3F7;
  border-radius: 8px;
  padding: 4px 10px;
  transition: background 0.18s, color 0.12s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #F1F3F7;
  color: #21A179;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 18px 35px 0 35px;
  gap: 22px;
}
.mobile-nav a {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.25rem;
  color: #1D2640;
  padding: 15px 0;
  border-bottom: 1px solid #F1F3F7;
  transition: color 0.16s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #17724F;
}

@media (max-width: 1040px) {
  .main-nav {
    gap: 18px;
  }
  .container {
    padding: 0 8px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 13px;
  }
  .cta-btn {
    margin-left: 8px;
    padding: 10px 18px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .cta-btn {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  header .container {
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* --- HERO SECTION --- */
.hero-section {
  background-color: #F1F3F7;
  padding: 60px 0 40px 0;
}
.hero-section .container {
  align-items: center;
  justify-content: center;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  margin: 0 auto;
  max-width: 700px;
}
.hero-section h1 {
  color: #21487E;
  margin-bottom: 10px;
}
.hero-section .cta-btn {
  margin-top: 8px;
  min-width: 200px;
}

/* --- FEATURE GRID/CARDS --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
  justify-content: space-between;
}
.feature-grid li {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 22px rgba(33,72,126,0.06);
  padding: 28px 20px 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 320px;
  gap: 10px;
  margin-bottom: 20px;
}
.feature-grid li img {
  width: 36px;
  margin-bottom: 8px;
  opacity: 0.93;
}

.trust-signals {
  margin: 26px 0 0 0;
  width: 100%;
}
.trust-signals ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}
.trust-signals li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #787b8a;
  font-size: 1rem;
  font-style: italic;
}
.trust-signals img {
  width: 26px;
  opacity: 0.7;
}

/* --- SERVICE CARDS & LIST --- */
.services-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 22px;
}
.service-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 24px rgba(33,72,126,0.07);
  padding: 30px 18px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 210px;
  flex: 1 1 210px;
}
.service-card h3 {
  margin-bottom: 3px;
}
.service-card span {
  font-size: 1.04rem;
  color: #21A179;
  font-weight: bold;
  font-family: 'Montserrat', Georgia, serif;
  margin-top: 4px;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.service-list li {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 24px rgba(33,72,126,0.07);
  padding: 28px 20px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  border-left: 6px solid #21A179;
}
.service-list span {
  font-size: 1.02rem;
  color: #21A179;
  font-family: 'Montserrat', Georgia, serif;
  margin-top: 4px;
  font-weight: 600;
}

/* --- PRICING TABLE --- */
.pricing-table {
  width: 100%;
  margin: 24px 0 0 0;
  border-collapse: collapse;
  background: #fff;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 2px 18px rgba(33, 72, 126, 0.06);
}
.pricing-table th, .pricing-table td {
  font-size: 1rem;
  padding: 13px 20px;
  text-align: left;
  font-family: 'Roboto', Georgia, serif;
}
.pricing-table th {
  background: #F1F3F7;
  color: #21487E;
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 700;
}
.pricing-table tbody tr {
  border-bottom: 1px solid #F1F3F7;
}
.pricing-table tbody tr:last-child {
  border-bottom: none;
}

/* --- CONTACT INFO --- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0 20px 0;
}
.contact-info li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  color: #21487E;
  font-family: 'Montserrat', Georgia, serif;
}
.contact-info img {
  width: 25px;
  opacity: 0.85;
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  background: #F1F3F7;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(33, 72, 126, 0.06);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  margin-bottom: 20px;
  min-width: 220px;
}
.testimonial-card blockquote {
  color: #1d2640; /* dark on light bg for contrast */
  font-size: 1.01rem;
  padding-left: 0;
  border-left: 0;
}
.testimonial-card footer {
  color: #21487E;
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 500;
  font-size: 1rem;
}

/* --- CASE STUDY --- */
.case-study {
  margin-bottom: 40px;
  padding-bottom: 18px;
  border-bottom: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.before-after-description {
  color: #3e4a60;
  font-style: italic;
}

/* --- SECTIONS --- */
.section, .cta-section, .contact-cta-section, .thank-you-section, .contact-section, .hours-section, .privacy-policy-section, .rodo-section, .cookies-policy-section, .terms-section, .advice-section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.cta-section, .contact-cta-section {
  background: #21487E;
  color: #fff;
  border-radius: 22px;
}
.cta-section h2, .contact-cta-section h2 {
  color: #fff;
}
.cta-section .cta-btn, .contact-cta-section .cta-btn {
  background: #fff;
  color: #21487E;
  margin-top: 18px;
  margin-bottom: 0;
  transition: background 0.2s, color 0.2s, box-shadow 0.18s;
}
.cta-section .cta-btn:hover, .contact-cta-section .cta-btn:hover {
  background: #21A179;
  color: #fff;
  box-shadow: 0 3px 16px rgba(33, 161, 121, 0.10);
}
.contact-cta-section p, .contact-cta-section li, .cta-section p {
  color: white;
}

/* --- FEATURE & CONTENT GRID FLEXBOX UTILS --- */
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- TABLES, QUICK TIPS, OTHER LISTS --- */
.common-questions, .quick-tips ul, .core-values, .steps-overview, .tip-categories ul, .how-to-guides ul, .next-steps ul, .contact-info, .case-study ul {
  margin-bottom: 20px;
}
.quick-tips h2, .how-to-guides h2 {
  color: #21487E;
  margin-bottom: 9px;
  font-size: 1.1rem;
}
.quick-tips ul, .how-to-guides ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 0;
}
.next-steps ul {
  gap: 8px;
}

/* --- FOOTER --- */
footer {
  background: #F1F3F7;
  padding: 45px 0 20px 0;
  border-top: 1px solid #e9edf4;
  margin-top: 60px;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1rem;
}
footer .container {
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  gap: 40px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  flex-direction: row;
}
.footer-nav a {
  color: #21487E;
  font-size: 1rem;
  opacity: .88;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #17724F;
}
.footer-contact {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: flex-start;
  font-size: 0.99rem;
  color: #787b8a;
  line-height: 1.7;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 7px;
}
.footer-contact img {
  width: 18px;
  opacity: 0.7;
}
footer p:last-child {
  font-size: 0.98rem;
  color: #b3b7be;
  margin-top: 8px;
}

/* --- MODALS & OVERLAYS --- */
body.modal-open {
  overflow: hidden;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 900px) {
  .content-wrapper { max-width: 98vw; }
  .feature-grid, .services-preview {
    gap: 18px;
  }
  .footer-contact {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  .hero-section { padding: 32px 0 16px 0; }
  .content-wrapper { gap: 18px; padding: 0; }
  .feature-grid, .services-preview {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid li, .service-card, .service-list li {
    max-width: 100%;
    min-width: 150px;
  }
  .footer-nav { gap: 16px; }
  .testimonial-card { padding: 14px 8px; }
  .trust-signals ul { gap: 12px; font-size: 13px; }
  .privacy-policy-section, .cookies-policy-section, .rodo-section, .terms-section, .thank-you-section { padding: 22px 5px; }
  .content-grid, .card-container { gap: 10px; }
  .text-image-section { flex-direction: column; gap: 15px; }
}
@media (max-width: 540px) {
  .container { padding: 0 2vw; }
  .section, .cta-section, .contact-cta-section { padding: 18px 2vw; margin-bottom: 32px; }
  .footer-contact { flex-direction: column; gap: 4px; }
}

/* --- ANIMATIONS & MICRO-INTERACTIONS --- */
.cta-btn, button, .main-nav a, .mobile-nav a {
  transition: all 0.19s cubic-bezier(.42,.11,.33,1.23);
}
.card, .service-card, .feature-grid li, .testimonial-card, .case-study {
  transition: box-shadow 0.22s, transform 0.1s;
}
.card:hover, .service-card:hover, .feature-grid li:hover, .testimonial-card:hover, .case-study:hover {
  box-shadow: 0 4px 32px rgba(33,161,121,0.16);
  transform: translateY(-2px) scale(1.01);
  z-index: 2;
}

/* --- COOKIE CONSENT --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -1.5px 24px rgba(33, 72, 126, 0.12);
  border-top: 2px solid #F1F3F7;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 20px;
  gap: 20px;
  font-family: 'Roboto', Georgia, serif;
  transition: transform 0.33s, opacity 0.22s;
}
.cookie-banner.hide {
  transform: translateY(160%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  font-size: 1rem;
  color: #21487E;
  margin: 0;
  max-width: 510px;
}
.cookie-actions {
  display: flex;
  gap: 14px;
  margin-left: 18px;
}
.cookie-btn {
  background: #21487E;
  color: #fff;
  font-family: 'Montserrat', Georgia, serif;
  border-radius: 18px;
  border: none;
  padding: 8px 22px;
  font-size: 0.98rem;
  box-shadow: 0 2px 8px rgba(33,72,126,0.07);
  transition: background 0.17s, color 0.13s;
  cursor: pointer;
}
.cookie-btn.cookie-settings {
  background: #F1F3F7;
  color: #21487E;
  border: 1px solid #21A179;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #21A179;
  color: #fff;
}
.cookie-btn.cookie-settings:hover, .cookie-btn.cookie-settings:focus {
  background: #21487E;
  color: #fff;
}

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(33,72,126,0.13);
  z-index: 13000;
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 48px rgba(33,72,126,0.18);
  padding: 32px 22px 26px 22px;
  min-width: 330px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  font-family: 'Roboto', Georgia, serif;
  animation: fadeModalIn 0.32s cubic-bezier(.48,.15,.22,1);
}
@keyframes fadeModalIn {
  from { opacity: 0; transform: scale(.95); }
  to { opacity: 1; transform: scale(1); }
}
.cookie-modal h2 {
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 700;
  color: #21487E;
  font-size: 1.13rem;
  margin-bottom: 10px;
}
.cookie-modal .category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.cookie-modal label {
  font-size: 1rem;
  color: #17724F;
  font-weight: 600;
  margin-left: 0;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #21A179;
  width: 19px;
  height: 19px;
}
.cookie-modal .category.essential label {
  color: #21487E;
  font-style: italic;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 12px;
  align-self: flex-end;
  margin-top: 14px;
}
.cookie-modal-close {
  background: none;
  color: #21487E;
  border: none;
  font-size: 1.8rem;
  position: absolute;
  top: 22px;
  right: 18px;
  cursor: pointer;
  transition: color 0.18s;
  z-index: 2;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #21A179;
}

@media (max-width: 540px) {
  .cookie-modal {
    padding: 18px 6px 13px 12px;
    min-width: 90vw;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 5px;
  }
}

/* --- MISC UTILS --- */
::-webkit-scrollbar {
  width: 7px;
  background: #F1F3F7;
}
::-webkit-scrollbar-thumb {
  background: #dde3ec;
  border-radius: 5px;
}
::-webkit-input-placeholder { color: #b3b7be; }
:-ms-input-placeholder { color: #b3b7be; }
::placeholder { color: #b3b7be; }

input:focus, textarea:focus, select:focus {
  outline: 2px solid #21A179;
  outline-offset: 2px;
}

/* --- END CSS --- */
